Bug 440755

Summary: Segmentation Fault in QGuiApplication::screenAdded()
Product: [Applications] kstars Reporter: RD Beck <beck>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: crash CC: nate
Priority: NOR    
Version First Reported In: 3.5.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: gdb backtrace

Description RD Beck 2021-08-08 20:14:15 UTC
Created attachment 140590 [details]
gdb backtrace

SUMMARY
Kstars will not run because of a segmentation fault which appears to be coming from libQt5Core.so.5.15.2.

STEPS TO REPRODUCE
1. Try to start kstars on command line
2. Segmentation fault (core dumped) is the immediate response.
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 RD Beck 2021-08-09 12:02:59 UTC
Ubuntu 21.04
5.11.0-25-generic, AMD64
plasma-desktop 5.21.4-0ubuntu1
Qt5 5.15.2+dfsg-5ubuntu1
Comment 2 Nate Graham 2021-08-09 16:41:30 UTC
Crashing in QGuiApplication::screenAdded()

I bet the missing symbol says it's in QScreen::name(). If I'm right, I believe this is an upstream bug in Qt whereby sometimes the name of a newly-added or removed screen is empty and it crashes trying to retrieve it.

Reminds me of https://bugreports.qt.io/browse/QTBUG-42985, though that was supposedly fixed ages ago.
Comment 3 RD Beck 2021-08-09 17:25:31 UTC
(In reply to Nate Graham from comment #2)
> Crashing in QGuiApplication::screenAdded()
> 
> I bet the missing symbol says it's in QScreen::name(). If I'm right, I
> believe this is an upstream bug in Qt whereby sometimes the name of a
> newly-added or removed screen is empty and it crashes trying to retrieve it.
> 
> Reminds me of https://bugreports.qt.io/browse/QTBUG-42985, though that was
> supposedly fixed ages ago.

I compiled kstars locally, and the bug did not occur.  I suspect this is an issue in the PPA build.
Comment 4 Jasem Mutlaq 2022-10-10 06:13:35 UTC
Please check against KStars 3.6.1 and report back.
Comment 5 RD Beck 2022-10-10 11:58:17 UTC
(In reply to Jasem Mutlaq from comment #4)
> Please check against KStars 3.6.1 and report back.

This has been fixed for some time.  I confirm 3.6.1 starts as expected.