问题描述
我曾经在我的 Linux Deepin 操作系统中运行 Flutter 桌面,但今天当从 vscode 运行时,程序正确运行,给我一个带有此日志的黑色窗口
Launching lib/main.dart on Linux in debug mode...
lib/main.dart:1
(test0:6623): GLib-GObject-CRITICAL **: 21:27:19.095: g_value_set_Boxed: assertion 'G_VALUE_HOLDS_BoxED (value)' Failed
(test0:6623): Gtk-WARNING **: 21:27:19.139: Theme parsing error: gtk.css:3611:22: 'none' is not a valid color name
libEGL warning: MESA-LOADER: Failed to open swrast (search paths /snap/Flutter/current/usr/lib/x86_64-linux-gnu/dri)
** (test0:6623): WARNING **: 21:27:19.197: Failed to start Flutter renderer: Failed to initialze EGL
(test0:6623): Gdk-CRITICAL **: 21:27:19.197: gdk_window_get_scale_factor: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.198: gdk_window_get_scale_factor: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.198: gdk_window_show_internal: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.250: gdk_window_move_resize_internal: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.250: gdk_window_get_scale_factor: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.250: gdk_window_get_position: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.250: gdk_window_invalidate_maybe_recurse_full: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gdk-CRITICAL **: 21:27:19.262: gdk_window_get_parent: assertion 'GDK_IS_WINDOW (window)' Failed
(test0:6623): Gtk-CRITICAL **: 21:27:19.262: gtk_cairo_should_draw_window: assertion 'GDK_IS_WINDOW (window)' Failed
请注意,除了 linux run 之外,此项目中的所有内容都可以正常运行 这里是颤振医生
Doctor summary (to see all details,run Flutter doctor -v):
[✓] Flutter (Channel stable,2.0.3,on Linux,locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (1 available)
! Doctor found issues in 2 categories
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)