go-flutter: Hover 0.44.0 segfault on `hover run` in Linux
hover doctor -v
13:59:12 doctor.go:39: hover: Hover version v0.44.0 running on linux
13:59:12 doctor.go:41: hover: Sharing flutter version
Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 198df796aa (5 days ago) • 2020-10-15 12:04:33 -0700
Engine • revision 1d12d82d9c
Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)
13:59:16 doctor.go:51: hover: Flutter engine commit: https://github.com/flutter/engine/commit/1d12d82d9cb54876f58044aa52198d53ec841c3d
13:59:17 doctor.go:63: hover: Finding out the C compiler version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13:59:17 doctor.go:70: hover: Sharing the content of go.mod
module trackself/go
go 1.14
require (
github.com/JanezStupar/flutter_systray/go v0.3.1
github.com/Xuanwo/go-locale v1.0.0 // indirect
github.com/getlantern/golog v0.0.0-20200929154820-62107891371a // indirect
github.com/getlantern/ops v0.0.0-20200403153110-8476b16edcd6 // indirect
github.com/getlantern/systray v1.0.5 // indirect
github.com/go-flutter-desktop/go-flutter v0.42.0
github.com/go-flutter-desktop/plugins/path_provider v0.4.0
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200707082815-5321531c36a2 // indirect
github.com/miguelpruivo/flutter_file_picker/go v0.0.0-20200913011135-405fd7f97798
github.com/pkg/errors v0.9.1
github.com/shurcooL/trayhost v0.0.0-20181020202213-114974ef9e16 // indirect
golang.org/x/sys v0.0.0-20201018230417-eeed37f84f13 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
)
13:59:17 doctor.go:84: hover: Sharing the content of hover.yaml
application-name: Track.Self
executable-name: trackself
package-name: trackself
license: UNLICENSED
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
13:59:17 doctor.go:93: hover: Sharing the content of go/cmd
go/cmd/import-file_picker-plugin.go go/cmd/import-flutter_systray-plugin.go go/cmd/import-path_provider-plugin.go go/cmd/main.go go/cmd/options.go
Output of hover run. Note that the same process works fine with hover 0.43.0
hover run
hover: Downloading engine for platform linux-debug_unopt at version 1d12d82d9cb54876f58044aa52198d53ec841c3d...
Download completed in 205.28s
hover: Cleaning the build directory
hover: Bundling flutter app
Running "flutter pub get" in desktopapp... 1.4s
Font subsetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
hover: Compiling 'go-flutter' and plugins
# github.com/shurcooL/trayhost
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/linux/tray.c:7,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/platform.h:8,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/trayhost.go:20:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/linux/tray.c:7,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/platform.h:8,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/trayhost.go:20:
/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here
679 | {
| ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:126,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/linux/tray.c:7,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/platform.h:8,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/trayhost.go:20:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
73 | GTimeVal last_popdown;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/linux/tray.c:7,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/platform/platform.h:8,
from /home/janez/go/pkg/mod/github.com/shurcoo!l/trayhost@v0.0.0-20181020202213-114974ef9e16/trayhost.go:20:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
hover: Successfully compiled executable binary for linux
hover: Build finished, starting app...
hover: Running trackself in debug_unopt mode
go-flutter: calculated pixelRatio limited to a minimum of 1.0. metrics: {"dpi":93.78461538461538,"monitorWidthMm":520,"monitorWidthSc":1920,"mscpi":93.78461538461538,"pixelRatio":0.5861538461538461,"ppsc":1,"windowWidthPx":360,"windowWidthSc":360}
flutter: Observatory listening on http://127.0.0.1:50300/
hover: Connecting hover to 'trackself' for hot reload
hover: App 'trackself' exited with error: signal: segmentation fault (core dumped)
Error connecting to the service protocol: failed to connect to http://127.0.0.1:50300/
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (16 by maintainers)
I only use it for building
A fix for this issue would be changing back the debug builds to the official engine builds which are used prior to hover 0.44.0. That would also fix another issue with cross-compilation for darwin.
If that doesn’t work please create a new flutter project and add hover to. Then try to run it
Please run
flutter clean,rm go/build -rfandrm ~/.cache/hover/engineand try again. In my experience that fixes it