Bug 492306 - NeoChat crashes when last window state was maximized
Summary: NeoChat crashes when last window state was maximized
Status: RESOLVED DUPLICATE of bug 492733
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.08.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-28 07:44 UTC by SigHunter
Modified: 2024-09-18 12:48 UTC (History)
1 user (show)

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


Attachments
backtrace for segmentation fault (49.09 KB, text/plain)
2024-08-28 07:44 UTC, SigHunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SigHunter 2024-08-28 07:44:37 UTC
Created attachment 173033 [details]
backtrace for segmentation fault

SUMMARY
After upgrading to NeoChat 24.08.0 (from 24.05.2) it started crashing for me. It briefly shows the "Welcome to NeoChat" login window and then closes. After investigating, I narrowed it down to the [Window] Window-Maximized=true part in ~/.local/state/neochatstaterc. 

When I quit NeoChat while it is maximized, neochatstaterc contains
[Window] 
1707x960 screen: Window-Maximized=true
and it crashes on next start

However, when I quit NeoChat while it is windowed, next time I start it, it successfully starts. 
neochatstaterc in this moment contains 
[Window]
1707x960 screen: Height=876
1707x960 screen: Width=1704

This is on resolution 2560x1440 with 150% DPI scaling. 
I suspect somehow "neochat window size" is larger than "screen resolution" and it crashes 

When I change the dimensions to anything smaller, while "Window-Maximized=true", it successfully starts.
Also, when I just remove ": Window-Maximized=true" in the file, it successfully starts too.

I included a backtrace, hope it is meaningful

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ i9-10850K CPU @ 3.60GHz
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2

ADDITIONAL INFORMATION:
Does not happen on my other desktop PC which also has 2560x1440 and 150% scaling
Comment 1 Tobias Fella 2024-09-18 12:48:30 UTC

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