flutter-elinux icon indicating copy to clipboard operation
flutter-elinux copied to clipboard

App crashes on any touch input

Open lionelmennig opened this issue 2 years ago • 9 comments

First of all, thank you for your amazing work!

Steps to Reproduce

  1. Build and launch any Flutter app with flutter-elinux run on Wayland (Ubuntu 20.04 LTS)
  2. Touch the screen
  3. App crashes

Error message

[FATAL:flutter/lib/ui/window/pointer_data_packet_converter.ccc(188)] Check failed: iter != states_.end().

Additional infos

This crash won't occur with classic Linux build of the same app, and I can reproduce it with the Flutter demo app (Counter app).

Thank you for your help!

lionelmennig avatar Aug 25 '22 13:08 lionelmennig

Can you please put the whole log message?

Build and launch any Flutter app with flutter-elinux run on Wayland (Ubuntu 20.04 LTS)

Did you use Weston?

HidenoriMatsubayashi avatar Aug 25 '22 13:08 HidenoriMatsubayashi

X86_64 or arm64?

HidenoriMatsubayashi avatar Aug 25 '22 13:08 HidenoriMatsubayashi

@HidenoriMatsubayashi

  1. Weston was not installed
  2. x64

Indeed, installing Weston and running the app in this context won't crash on touch, which basically is a fix for my issue. Thank you, I should've tried that before.

lionelmennig avatar Aug 25 '22 13:08 lionelmennig

Still, I'm not sure.

flutter-elinux run on Wayland (Ubuntu 20.04 LTS)

What kind of Wayland compositor do you use?

HidenoriMatsubayashi avatar Aug 25 '22 20:08 HidenoriMatsubayashi

I simply used to log in Ubuntu with Wayland mode (from the cogs menu on launch screen), and since the title bar of my app was looking different when built with eLinux against default Linux, I thought it was sufficient to consider being in a Wayland context window.

lionelmennig avatar Aug 26 '22 08:08 lionelmennig

Understood. Thanks, but I have never seen this error message/crash.

HidenoriMatsubayashi avatar Aug 26 '22 12:08 HidenoriMatsubayashi

Can I provide you anything to help you out about this? The only error message I get in the console is the one I shared, is there any place I can find more details about the crash?

lionelmennig avatar Aug 27 '22 10:08 lionelmennig

Can you please try the following commands and get the log messages?

$ flutter-elinux build elinux --debug
$ FLUTTER_LOG_LEVELS=TRACE ./build/elinux/<target_arch_name>/debug/bundle/<appname> -b .

HidenoriMatsubayashi avatar Aug 27 '22 13:08 HidenoriMatsubayashi

I think you might be interested by this one, occuring with the build command:

Determining if the CXX compiler works failed with the following output: Change Dir: /home/dev/Projects/hello_app/build/elinux/x64/debug/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_c8aad/fast && /usr/bin/make -f CMakeFiles/cmTC_c8aad.dir/build.make CMakeFiles/cmTC_c8aad.dir/build make[1]: Entering directory '/home/dev/Projects/hello_app/build/elinux/x64/debug/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c8aad.dir/testCXXCompiler.cxx.o /usr/bin/clang++ --target=aarch64-linux-gnu -o CMakeFiles/cmTC_c8aad.dir/testCXXCompiler.cxx.o -c /home/dev/Projects/hello_app/build/elinux/x64/debug/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_c8aad /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c8aad.dir/link.txt --verbose=1 /usr/bin/clang++ --target=aarch64-linux-gnu CMakeFiles/cmTC_c8aad.dir/testCXXCompiler.cxx.o -o cmTC_c8aad /usr/bin/ld: unrecognised emulation mode: aarch64linux Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [CMakeFiles/cmTC_c8aad.dir/build.make:87: cmTC_c8aad] Error 1 make[1]: Leaving directory '/home/dev/Projects/hello_app/build/elinux/x64/debug/CMakeFiles/CMakeTmp' make: *** [Makefile:121: cmTC_c8aad/fast] Error 2

lionelmennig avatar Aug 30 '22 08:08 lionelmennig

Sorry for no updates for a long time. But I was able to reproduce this issue and made a change. https://github.com/sony/flutter-embedded-linux/pull/371 will fix it. Thank you.

HidenoriMatsubayashi avatar Aug 16 '23 13:08 HidenoriMatsubayashi