-
Notifications
You must be signed in to change notification settings - Fork 28.4k
linux can't run example app, i got libflutter_linux_glfw.so segfault error #47954
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
Comments
Can you get a backtrace running the binary under gdb? |
@stuartmorgan Can you explain me how to do ? |
If you aren't familiar with gdb, never mind the backtrace. Can you describe your configuration? For instance, you say "Devices: emulator"; does that mean this is a VM rather than an actual machine? If so, does OpenGL content in general work in this emulator? |
I m working on ubuntu 18.04 Desktop and flutter is working on the same machine, No VM or container. I've never had any issue with opengl in my desktop environment. |
@stuartmorgan
|
Thanks, that's very helpful. It'll need more investigation, but between that and the information in google/flutter-desktop-embedding#632 there's much more to go on. |
@theyough What version of libglvnd do you have? Based on the other bug it seems like this crash may be related to that library. |
It was not installed on my computer
…On Wed, Jan 15, 2020, 2:03 PM stuartmorgan ***@***.***> wrote:
@theyough <https://github.com/theyough> What version of libglvnd do you
have? Based on the other bug it seems like this crash may be related to
that library.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#47954?email_source=notifications&email_token=ABWH65AIXNDGDS4TV6B2LA3Q52YLNA5CNFSM4KA7X2Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI7I5OI#issuecomment-574525113>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWH65HXVKIEPWR2Q22A5M3Q52YLNANCNFSM4KA7X2QQ>
.
|
@stuartmorgan I can confirm that on arch linux package libglvnd-1.3.0-2 crashes and libglvnd-1.2.0-5 works. (using https://github.com/go-flutter-desktop/go-flutter) here is the stacktrace from the coredump using gdb.
|
Pulling the important bits from a comment of mine from the closed bug: The crash is in Skia, so it seems like this is either a Skia bug, or in (based on the above) libglvnd. I think the best next step would be for someone who can reproduce this and has a backtrace to file a Skia bug for further investigation by the Skia team as a starting point; they would better be able to tell if it's an issue in Skia or in the underlying library. |
Ubuntu Focal (20.04) has libglvnd 1.3.0 as well and we're seeing this crash. Can you guide me through getting a backtrace with debug symbols? I have a backtrace, but it would be better with symbols. Thread 8 "io.flutter.io" received signal SIGSEGV, Segmentation fault. |
Debian Sid here with libglvnd 1.3.1-1
|
Currently the only way I know of offhand is to build the engine from source, and run with that local engine ( |
To avoid this getting overly long: more copies of the stack trace aren't necessary at this point; they aren't adding new information. Again, the next step here is for someone who can reproduce this, and ideally is willing to do some more debugging if requested by the Skia team, to file a Skia bug and link to it from here. |
I've setup a debug build for flutter engine and ran the example application with gdb. here is what i got. let me know if you need more debug outputs.
GrGLExtensions.cpp:53
GrGLExtensions.cpp:117
Updated |
Skia expects an EGL context, but GLFW was defaulting to non-EGL, which causes eglGetCurrentDisplay to fail--since the context wasn't made current via EGL--with new versions of libglvnd. (It may have worked only by accident with previous versions). Fixes flutter/flutter#47954
Skia expects an EGL context, but GLFW was defaulting to non-EGL, which causes eglGetCurrentDisplay to fail--since the context wasn't made current via EGL--with new versions of libglvnd. (It may have worked only by accident with previous versions). Fixes flutter/flutter#47954
This fixes the crash on Ubuntu Focal, however now I'm seeing this crash on 18.04: GLFW error 65542: EGL: Failed to get EGL display: Success For reference, focal has libglvnd 1.3.1 and 18.04 has libgvlnd 1.0.0 |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
Target Platform: Linux
Target OS version/browser: Linux Ubuntu 18.04
Devices: emulator
Logs
flutter run --verbose
flutter analyze
flutter doctor -v
also when i looked into /var/log/syslog i got this error:
The text was updated successfully, but these errors were encountered: