DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
26.72k stars 1.43k forks source link

GUI does not load correctly on KDE/Wayland #1317

Open Peter-Ries opened 1 month ago

Peter-Ries commented 1 month ago

Current behavior

Starting the app does not load the GUI to the end. No layout. Can't click on anything. It happens in most cases here.

Version: aur/devtoys-bin 2.0.3.0-1 (+7 3.55)

System Details: Operating System: EndeavourOS KDE Plasma Version: 6.1.2 KDE Frameworks Version: 6.4.0 Qt Version: 6.7.2 Kernel Version: 6.9.9-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics Memory: 30.6 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: LENOVO Product Name: 20UES00L00 System Version: ThinkPad T14 Gen 1

How to reproduce it (as minimally and precisely as possible)

Just start via Icon or from Terminal with DevToys

Expected behavior

show gui always correctly

Screenshots

image

Workaround

none. try several times.

Affected platforms

Linux

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Version 2.0-preview.3

Relevant Assets/Logs

2024-07-18T11:02:32.2635418+02:00   Information [DevToys.Core.FileHelper]   [0] Cleared temp files in 0.5974ms
2024-07-18T11:02:32.2719675+02:00   Information [DevToys.Core.Mef.MefComposer]  [LogDiscoveringPlugin]  Discovering plugin in '/opt/devtoys/devtoys/Plugins/DevToys.Tools'...
2024-07-18T11:02:32.4113793+02:00   Information [DevToys.Core.Mef.MefComposer]  [LogMefComposition] MEF composed 112 parts from 6 assemblies in 141.3019ms
2024-07-18T11:02:32.4314566+02:00   Information [DevToys.Linux.LinuxProgram]    [2] MEF, services and logging initialized in 427.4289 ms
2024-07-18T11:02:32.4315292+02:00   Information [DevToys.Linux.LinuxProgram]    [1] App is starting...
2024-07-18T11:02:32.4656187+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'Base64ImageEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4656762+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'Base64TextEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4656808+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'CertificateDecoder' tool instance manager.
2024-07-18T11:02:32.4656833+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'ColorBlindnessSimulator' tool instance manager.
2024-07-18T11:02:32.4656865+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'CronParser' tool instance manager.
2024-07-18T11:02:32.4656895+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'DateConverter' tool instance manager.
2024-07-18T11:02:32.4656919+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'EscapeUnescape' tool instance manager.
2024-07-18T11:02:32.4656949+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'GZipEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4656974+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'HashAndChecksumGenerator' tool instance manager.
2024-07-18T11:02:32.4657006+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'HtmlEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4657041+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'ImageConverter' tool instance manager.
2024-07-18T11:02:32.4657068+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'JsonFormatter' tool instance manager.
2024-07-18T11:02:32.4657091+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'JSONPathTester' tool instance manager.
2024-07-18T11:02:32.4657123+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'JsonTableConverter' tool instance manager.
2024-07-18T11:02:32.4657148+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'JsonWebTokenEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4657172+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'JsonYamlConverter' tool instance manager.
2024-07-18T11:02:32.4657205+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'ListCompare' tool instance manager.
2024-07-18T11:02:32.4657234+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'LoremIpsumGenerator' tool instance manager.
2024-07-18T11:02:32.4657259+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'MarkdownPreview' tool instance manager.
2024-07-18T11:02:32.4657290+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'NumberBaseConverter' tool instance manager.
2024-07-18T11:02:32.4657315+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'PasswordGenerator' tool instance manager.
2024-07-18T11:02:32.4657339+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'QRCodeEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4657374+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'RegExTester' tool instance manager.
2024-07-18T11:02:32.4657399+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'SqlFormatter' tool instance manager.
2024-07-18T11:02:32.4657422+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'TextAnalyzerAndUtilities' tool instance manager.
2024-07-18T11:02:32.4657452+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'TextCompare' tool instance manager.
2024-07-18T11:02:32.4657475+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'UrlEncoderDecoder' tool instance manager.
2024-07-18T11:02:32.4657500+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'UUIDGenerator' tool instance manager.
2024-07-18T11:02:32.4657530+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'XmlFormatter' tool instance manager.
2024-07-18T11:02:32.4657556+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'XMLTester' tool instance manager.
2024-07-18T11:02:32.4664908+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'Extensions Manager' tool instance manager.
2024-07-18T11:02:32.4665084+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'Settings' tool instance manager.
2024-07-18T11:02:32.4669335+02:00   Information [DevToys.Core.Tools.GuiToolInstance]    [LogInitialized]    Initialized 'NoSearchResults' tool instance manager.
2024-07-18T11:02:32.4689385+02:00   Information [DevToys.Core.Tools.GuiToolProvider]    [LogToolInstancesCreated]   Instantiated 32 tools in 6.0628ms
2024-07-18T11:02:33.3740947+02:00   Information [DevToys.Blazor.Core.Services.FontService]  [LogImportThirdPartyFontsAsync] Loaded 2 font(s) in 22.2233 ms and injected them in 217.7792 ms
2024-07-18T11:02:36.8419088+02:00   Information [DevToys.Core.Settings.SettingsProvider]    [LogSetSetting] Setting 'DevToys.Blazor.UserPreferredNavBarState' changed to 'Expanded'
2024-07-18T11:02:36.8479024+02:00   Information [DevToys.Core.FileHelper]   [0] Cleared temp files in 0.0166ms
RachidTagzen commented 1 month ago

I confirm that problem in :

The application autoscroll infinitely.

veler commented 1 month ago

Hello, I do not reproduce the issue on Mint 21.3 on my side. Does the issue happen all the time or occasionally? You said "in most case", so I assume it's not all the time, right?

badcel commented 1 month ago

As the initial bug report states that the distribution is KDE based I wonder if there are perhaps some packages not installed which result in this kind of rendering?

Perhaps installing some other libadwaita app helps here (from the distro not flathub) to ensure there is at least one other libadwaita app running without problems.

Peter-Ries commented 1 month ago

I could reproduce it on my Gnome machine, too. It's running Endeavour OS with Wayland and Gnome - all latest packages and same "visual misbehaviour".

First start, same look as in my first screenshot in post#1, second start okay. The ratio between works:does_not is better with Gnome than with Plasma.

But I cannot provide better logs that in post#1

Peter-Ries commented 1 month ago

As the initial bug report states that the distribution is KDE based I wonder if there are perhaps some packages not installed which result in this kind of rendering?

Perhaps installing some other libadwaita app helps here (from the distro not flathub) to ensure there is at least one other libadwaita app running without problems.

libadwaita is installed - and if the issue is a missing package then the error should be 100% reproduceable. But it works in 1 out of ~10 cases on Plasma and in 1 out of 2 under Gnome. When opening the program it seems as if loading of layout does not finish. I sometimes have seen this if a webpage does not load to the end (mayb be CSS missing or JavaScript sources) then it looks incomplete and like in my screenshot.

Can logging be set to a more verbose level to see this? Or may be in a next version to investigate further?

badcel commented 1 month ago

Ah you are right. I misunderstood your report. I thought it was never working.

I think there is some async code in DevToys. Perhaps there is still some problem @veler?

veler commented 1 month ago

Yeah, it definitely sounds like a race condition

SoftExpert commented 1 month ago

On my KDE 6.1 / X11 I get constantly this with v2.0.4.0: image

v2.0.3.0 loads correctly: image

maxs-rose commented 2 weeks ago

I am getting a similar issue after installing the latest version through the AUR running hyprland

image