Bug 428081 - Konsole on macOS crashes after --list-profiles and --list-profile-properties
Summary: Konsole on macOS crashes after --list-profiles and --list-profile-properties
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Other Other
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-22 00:44 UTC by Kurt Hindenburg
Modified: 2021-08-05 16:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
full crash log (3.80 KB, text/plain)
2020-10-22 00:58 UTC, Kurt Hindenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2020-10-22 00:44:42 UTC
After https://invent.kde.org/utilities/konsole/-/commit/9d8e47298c81fc1e47c998eda1b6e980589274eb

  --list-profiles and   --list-profile-properties 
crash after completing.

This is the latest macOS 10.15.7; building KF5 from source.

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [49187]

VM Regions Near 0:
--> 
    __TEXT                 000000010b1d5000-000000010b1e1000 [   48K] r-x/r-x SM=COW  /Applications/KDE/konsole.app/Contents/MacOS/konsole

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.qt-project.QtGui          	0x000000010d3e66c5 0x10d3c3000 + 145093
1   org.qt-project.QtGui          	0x000000010d3e663e QGuiApplication::font() + 30
2   org.qt-project.QtGui          	0x000000010d44308b QFont::QFont() + 41
3   org.qt-project.QtGui          	0x000000010d45946c QFontDatabase::systemFont(QFontDatabase::SystemFont) + 140
4   libkonsoleprivate.20.dylib    	0x000000010b492c99 Konsole::Profile::useFallback() + 1865 (Profile.cpp:193)
5   libkonsoleprivate.20.dylib    	0x000000010b49b9bb Konsole::ProfileManager::initFallbackProfile() + 139
Comment 1 Kurt Hindenburg 2020-10-22 00:58:03 UTC
Created attachment 132623 [details]
full crash log
Comment 2 tcanabrava 2020-10-22 10:32:14 UTC
That's... strange, it crashes inside of Qt.
Just tested on linux and things work. I don't have a Mac to test, but what about ignoring the font if on command line mode?
Comment 3 Kurt Hindenburg 2020-10-22 13:36:31 UTC
Well it worked before that patch.  It works fine on FreeBSD.
Comment 4 tcanabrava 2020-10-22 13:54:12 UTC
I'll try a patch, but I'll be shooting in the dark.
Comment 5 Kurt Hindenburg 2020-10-22 13:56:47 UTC
I suppose I can try to find the line in the patch that causing it
Comment 6 Kurt Hindenburg 2020-10-23 01:18:15 UTC
From testing removing parts of the patch, it seems to be the new konsoleprofile library.  I'm not sure what else to try.  

Note this isn't a show stopper.
Comment 7 Kurt Hindenburg 2021-03-25 03:44:57 UTC
I can't reproduce this now (even when going back to the commit where this first happened). I'm on a newer macOS version and I wonder if Qt is on a newer version.  I don't see the Qt version listed anywhere.  I'll leave this open for now.
Comment 8 Kurt Hindenburg 2021-08-05 16:44:28 UTC
closing as I can't reproduce any longer