-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flet 0.23 critical erreur when runing application / the application does not want to run ans stop #3490
Comments
hi , in my opinion ,the problem is not related to Flutter, not directly. it's my opinion |
it's a bug or something with version 0.23. meanwhile u can |
The thing is Flet 0.22.1 was built back then against Flutter 3.19.6 while this new 0.23.0 release is built against Flutter 3.22.2. |
But does the app work with those assertions or it crashes? |
I am not an expert in FLET but I like it a lot and I use it more and more, I dont know if the transition to Flutter 3.22.2 was an absolute necessity to evolve FLET (and I think not) but in in the present case there is no solution to this Bug because even if I correct this bug in my machine and in my package (FLET 0.23) the bug will reappear during the packaging of the application or during the execution of the application in an another machine.
Or
@FeodorFitsner: at my level of 'skill' I think it's not going to work, and even if I delve deeper into correcting the code of Flet 0.23 (or on my_application.cc), at best it will only work on my machine It's just my opinion and my analysis |
Does the app start with the assertions shown or crash? |
@FeodorFitsner : no , it crash |
I can reproduce the bug on my install of Ubuntu 22.04 (ARM) and looks like I'm going to have a fix for that... |
Flet 0.23.1 is out with the fix for Linux. Please give it another try and let me know. |
It works like a charm :) thank you for your work |
Duplicate Check
Describe the bug
the application does not want to run with FLET v0.23 but work perfectly with flet 0.22
Code
import flet as ft
def main(page: ft.Page):
ft.app(target=main)
To reproduce
** (flet:5945): CRITICAL **: 14:14:10.302: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
Expected behavior
a simple ' hello world ' text
Screenshots
** (flet:5615): CRITICAL **: 14:04:51.078: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlEventChannel *fl_event_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
package:media_kit_libs_linux registered.
** (flet:5615): CRITICAL **: 14:04:51.078: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.078: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlTextureRegistrar *fl_plugin_registrar_get_texture_registrar(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_handler_find: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.079: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): GLib-GObject-WARNING **: 14:04:51.079: invalid (NULL) pointer instance
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.079: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlView *fl_plugin_registrar_get_view(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
(flet:5615): Gtk-CRITICAL **: 14:04:51.080: gtk_container_forall: assertion 'GTK_IS_CONTAINER (container)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlBinaryMessenger *fl_engine_get_binary_messenger(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlTextureRegistrar *fl_engine_get_texture_registrar(FlEngine *): assertion 'FL_IS_ENGINE(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlPluginRegistrar *fl_plugin_registrar_new(FlView *, FlBinaryMessenger *, FlTextureRegistrar *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
(flet:5615): GLib-GObject-CRITICAL **: 14:04:51.080: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *): assertion 'FL_IS_PLUGIN_REGISTRAR(self)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: FlMethodChannel *fl_method_channel_new(FlBinaryMessenger *, const gchar *, FlMethodCodec *): assertion 'FL_IS_BINARY_MESSENGER(messenger)' failed
** (flet:5615): CRITICAL **: 14:04:51.080: void fl_method_channel_set_method_call_handler(FlMethodChannel *, FlMethodChannelMethodCallHandler, gpointer, GDestroyNotify): assertion 'FL_IS_METHOD_CHANNEL(self)' failed
Operating System
Linux
Operating system details
ubuntu 24 / flutter Flutter 3.22.2
Flet version
Name: flet Version: 0.23.0 Summary: Flet for Python - easily build interactive multi-platform apps in Python Home-page: Author: Appveyor Systems Inc. Author-email: [email protected] License: Apache-2.0 Location: /home/vox/.local/lib/python3.10/site-packages Requires: cookiecutter, fastapi, flet-runtime, packaging, qrcode, uvicorn, watchdog Required-by:
Regression
Yes, it used to work in a previous Flet version (please specify the version in additional details)
Suggestions
No response
Additional details
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (2 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
The text was updated successfully, but these errors were encountered: