Bug 440755 - Segmentation Fault in QGuiApplication::screenAdded()
Summary: Segmentation Fault in QGuiApplication::screenAdded()
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.5.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-08 20:14 UTC by RD Beck
Modified: 2022-10-10 12:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb backtrace (2.94 KB, text/plain)
2021-08-08 20:14 UTC, RD Beck
Details

Note You need to log in before you can comment on or make changes to this bug.
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.