ConverterNOW icon indicating copy to clipboard operation
ConverterNOW copied to clipboard

[BUG] Wayland bug with Flatpak

Open imLinguin opened this issue 2 years ago • 11 comments

Describe the bug On Flatpak version on Wayland there are graphical glitches and the window decoration is missing (titlebar, close minimize etc...)

To Reproduce Steps to reproduce the behavior:

  1. Launch the app on Wayland

Expected behavior No glitches, present window decoration.

Screenshots / gif https://user-images.githubusercontent.com/62100117/177170318-34ae6680-0fee-410f-b9bd-db110055ee46.mp4

Device

  • Device type: Linux
  • OS version: Manjaro KDE 5.24.5 Wayland
  • Device type: ThinkPad T490 Intel UHD 620 16GB ram

Additional context Add any other context about the problem here.

imLinguin avatar Jul 04 '22 14:07 imLinguin

Hi, thank you for filing this issue. I can't replicate this bug on my setup (Kubuntu 22.04 with KDE 5.24.4). Could you please try to launch the app with the command flatpak run io.github.ferraridamiano.ConverterNOW and paste here the output? Thank you!

ferraridamiano avatar Jul 04 '22 14:07 ferraridamiano

Log:

$ flatpak run io.github.ferraridamiano.ConverterNOW

(converternow:2): Gtk-WARNING **: 19:34:24.165: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.166: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.166: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.166: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.228: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.228: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.228: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:24.228: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype
flutter: Null check operator used on a null value
flutter: #0      getPropertyUiList (package:converterpro/utils/property_unit_list.dart:15)
flutter: #1      SplashScreen.build.<anonymous closure> (package:converterpro/pages/splash_screen.dart:24)
flutter: #2      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144)
flutter: #3      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089)
flutter: #4      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995)
flutter: #8      _invoke (dart:ui/hooks.dart:151)
flutter: #9      PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308)
flutter: #10     _drawFrame (dart:ui/hooks.dart:115)
flutter: (elided 3 frames from dart:async)

(converternow:2): Gtk-WARNING **: 19:34:26.111: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:26.112: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:26.112: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:26.112: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:30.700: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:30.700: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:30.700: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:30.700: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.033: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.033: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.033: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.033: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.769: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.769: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.769: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:32.769: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:33.608: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 19:34:33.608: drawing failure for widget 'GtkBox': error occurred in libfreetype

imLinguin avatar Jul 04 '22 18:07 imLinguin

OK, let's try to get rid of some of the culprits. Could you try to download converternow-linux.tar.gz, extract it and execute it from the terminal. Then, tell me if the issue persists, and eventually past here the output of the terminal. Thank you!

ferraridamiano avatar Jul 05 '22 08:07 ferraridamiano

Stops at this point

obraz

Log:

$ ./converternow 
flutter: Null check operator used on a null value
flutter: #0      getPropertyUiList (package:converterpro/utils/property_unit_list.dart:15)
flutter: #1      SplashScreen.build.<anonymous closure> (package:converterpro/pages/splash_screen.dart:24)
flutter: #2      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144)
flutter: #3      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089)
flutter: #4      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995)
flutter: #8      _invoke (dart:ui/hooks.dart:151)
flutter: #9      PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308)
flutter: #10     _drawFrame (dart:ui/hooks.dart:115)
flutter: (elided 3 frames from dart:async)

imLinguin avatar Jul 07 '22 10:07 imLinguin

Could you try deleting the Converter NOW folder that you can find in ~/.local/share/? Then try again both the flatpak version and the app from the archive. Tell me if it works

ferraridamiano avatar Jul 07 '22 12:07 ferraridamiano

Flatpak

$ flatpak run io.github.ferraridamiano.ConverterNOW

(converternow:2): Gtk-WARNING **: 14:13:22.329: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.330: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.330: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.330: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.390: drawing failure for widget 'GtkLabel': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.390: drawing failure for widget 'GtkBox': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.390: drawing failure for widget 'GtkHeaderBar': error occurred in libfreetype

(converternow:2): Gtk-WARNING **: 14:13:22.390: drawing failure for widget 'GtkApplicationWindow': error occurred in libfreetype
flutter: Null check operator used on a null value
flutter: #0      getPropertyUiList (package:converterpro/utils/property_unit_list.dart:15)
flutter: #1      SplashScreen.build.<anonymous closure> (package:converterpro/pages/splash_screen.dart:24)
flutter: #2      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144)
flutter: #3      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089)
flutter: #4      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995)
flutter: #8      _invoke (dart:ui/hooks.dart:151)
flutter: #9      PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308)
flutter: #10     _drawFrame (dart:ui/hooks.dart:115)
flutter: (elided 3 frames from dart:async)

Archive

$ ./converternow 
flutter: Null check operator used on a null value
flutter: #0      getPropertyUiList (package:converterpro/utils/property_unit_list.dart:15)
flutter: #1      SplashScreen.build.<anonymous closure> (package:converterpro/pages/splash_screen.dart:24)
flutter: #2      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144)
flutter: #3      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089)
flutter: #4      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995)
flutter: #8      _invoke (dart:ui/hooks.dart:151)
flutter: #9      PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308)
flutter: #10     _drawFrame (dart:ui/hooks.dart:115)
flutter: (elided 3 frames from dart:async)

Now flatpak version hangs in the same spot as archive one, still without window decorations.

imLinguin avatar Jul 09 '22 12:07 imLinguin

Does it work with X11?

Could you trying installing this app? It is an app built with the same framework (flutter) as Converter NOW. I need to be sure that it is not a flutter issue.

ferraridamiano avatar Jul 09 '22 12:07 ferraridamiano

ConverterNOW works with X11

Spotube works fine on both Wayland and X11

imLinguin avatar Jul 10 '22 13:07 imLinguin

Could you try updating to the latest flatpak version of the app? Otherwise I have no idea

ferraridamiano avatar Jul 11 '22 11:07 ferraridamiano

Same issue on latest

imLinguin avatar Jul 13 '22 06:07 imLinguin

I really can't underestand what the problem is, it seems an issue from the app side (because spotube does not have the same issue), but it is strange that it has also graphical glitches (that seems more like a flutter issue). Without being able to reproduce it I will leave this issue open. Let's see if other users experiences similar problems. I'm sorry and thank you!

ferraridamiano avatar Jul 13 '22 12:07 ferraridamiano