Bug 471275 - When OutputConfigurationStore::generateConfig() changes the output scale (from 200% to 250% in my case) due to Bug 470742, Firefox crashes
Summary: When OutputConfigurationStore::generateConfig() changes the output scale (fro...
Status: RESOLVED DUPLICATE of bug 471282
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: master
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-06-20 21:24 UTC by Nate Graham
Modified: 2023-06-21 08:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Journal log (52.87 KB, text/plain)
2023-06-20 21:24 UTC, Nate Graham
Details
Firefox crash backtrace (4.71 KB, text/plain)
2023-06-20 21:24 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2023-06-20 21:24:00 UTC
Created attachment 159792 [details]
Journal log

STEPS TO REPRODUCE
1. Use Plasma 6 Wayland on a laptop
2. Set a scale factor that is not identical to the scale factor that OutputConfigurationStore::generateConfig() generates as a default value
3. Open Firefox with some tabs
4. Close the lid
5. Wait a moment to make sure it's gone to sleep, and open the lid


OBSERVED RESULT
Screenlocker shows the default scale for your output, not the one you chose. After unlocking, Firefox freezes and then crashes. Both of things happen reproducibly, 100% of the time for me. Journalctl log and backtrace attached.

Despite the fact that both things happen every time, it's possible the Firefox issue is unrelated. If so, I can open a new bug report for it after the scale issue is fixed or investigated to not be connected.


EXPECTED RESULT
Scale not reset, Firefox doesn't crash.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.5.1
Kernel Version: 6.3.6-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Comment 1 Nate Graham 2023-06-20 21:24:17 UTC
Created attachment 159793 [details]
Firefox crash backtrace
Comment 2 Nate Graham 2023-06-21 03:36:34 UTC
Potential additional data points:
- When this happens, my Konsole window is also always re-positioned to be just out of view.
- Additional journalctl output that looks relevant for the Firefox case:

Jun 21 05:31:55 Liberator firefox[7449]: ../gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an integermultiple of scale (3)
Jun 21 05:31:54 Liberator firefox[7449]: ../gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an integermultiple of scale (3)
Jun 21 05:31:54 Liberator firefox[7449]: ../gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an integermultiple of scale (3)

- When this happens, if the scale factor does not actually reset because it was not any different from the auto-calculated default value, Firefox does not crash. But my Konsole window still gets relocated.
Comment 3 Nate Graham 2023-06-21 05:04:12 UTC
Let's make this just about the app behavior regressions when the bug happens, since 470742 is already tracking the "scale gets reset" issue.
Comment 4 Nate Graham 2023-06-21 06:16:38 UTC
Update: when this happens *all* my windows that were tiled to the right are moved offscreen.
Comment 5 Nate Graham 2023-06-21 08:43:25 UTC
This has been fixed by the fix for 471282. ...Well, worked around, because there's a bug in Firefox. I'll report it.

*** This bug has been marked as a duplicate of bug 471282 ***