Skip to content
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

App crashes on any touch input on Ubuntu 20.04 LTS with Wayland mode #126

Closed
lionelmennig opened this issue Aug 25, 2022 · 10 comments · Fixed by sony/flutter-embedded-linux#371
Labels
bug Something isn't working

Comments

@lionelmennig
Copy link

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!

@HidenoriMatsubayashi
Copy link
Collaborator

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
Copy link
Collaborator

X86_64 or arm64?

@lionelmennig
Copy link
Author

@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.

@HidenoriMatsubayashi
Copy link
Collaborator

Still, I'm not sure.

flutter-elinux run on Wayland (Ubuntu 20.04 LTS)

What kind of Wayland compositor do you use?

@lionelmennig
Copy link
Author

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.

@HidenoriMatsubayashi
Copy link
Collaborator

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

@lionelmennig
Copy link
Author

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?

@HidenoriMatsubayashi
Copy link
Collaborator

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 .

@lionelmennig
Copy link
Author

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

@HidenoriMatsubayashi HidenoriMatsubayashi changed the title App crashes on any touch input App crashes on any touch input on Ubuntu 20.04 LTS with Wayland mode Aug 11, 2023
HidenoriMatsubayashi added a commit to HidenoriMatsubayashi/flutter-embedded-linux that referenced this issue Aug 16, 2023
This change adds a touch pointer state check to fix sony/flutter-elinux#126.

Signed-off-by: Hidenori Matsubayashi <Hidenori.Matsubayashi@gmail.com>
HidenoriMatsubayashi added a commit to HidenoriMatsubayashi/flutter-embedded-linux that referenced this issue Aug 16, 2023
This change adds a touch pointer state check to fix sony/flutter-elinux#126.

Signed-off-by: Hidenori Matsubayashi <Hidenori.Matsubayashi@gmail.com>
@HidenoriMatsubayashi
Copy link
Collaborator

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

HidenoriMatsubayashi added a commit to sony/flutter-embedded-linux that referenced this issue Aug 16, 2023
This change adds a touch pointer state check and increase device id from touch inputs to fix sony/flutter-elinux#126.

Signed-off-by: Hidenori Matsubayashi <Hidenori.Matsubayashi@gmail.com>
@HidenoriMatsubayashi HidenoriMatsubayashi added bug Something isn't working wayland Topics related wayland and removed wayland Topics related wayland labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants