Bug 463358 - I updated KDE/Plasma on my Arch installation and now I can't start Konqueror anymore
Summary: I updated KDE/Plasma on my Arch installation and now I can't start Konqueror ...
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 22.12.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords: drkonqi
: 438207 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-12-22 21:18 UTC by Pietro Pizzi
Modified: 2023-08-30 07:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch which should avoid the crash (582 bytes, text/plain)
2022-12-28 15:24 UTC, Stefano Crocco
Details
The command line output from konqueror (1.25 MB, text/plain)
2023-07-02 19:35 UTC, Pietro Pizzi
Details
New konqueror log file. (74.59 KB, text/plain)
2023-07-03 20:50 UTC, Pietro Pizzi
Details
Patch for Konqueror 23.04 to increase debug output (3.95 KB, patch)
2023-07-09 15:51 UTC, Stefano Crocco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pietro Pizzi 2022-12-22 21:18:14 UTC
Application: konqueror (22.12.0)

Qt Version: 5.15.7
Frameworks Version: 5.101.0
Operating System: Linux 6.1.1-arch1-1 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.26.4 [KCrashBackend]

-- Information about the crash:
> konqueror                                                                                                                                                                                                                                                                   [0]
MEGASYNCOVERLAYPLUGIN: Loading plugin ... 
MEGASYNCOVERLAYPLUGIN: connected to Notify Server
MEGASYNCOVERLAYPLUGIN: connected to Ext Server
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
kf.kio.core: Url QUrl("file:///home/pietro/Download/SABnzbd/") already represents a local file, cancelling job.
23 -- exe=/usr/bin/konqueror
13 -- platform=xcb
11 -- display=:0
18 -- appname=konqueror
17 -- apppath=/usr/bin
10 -- signal=11
10 -- pid=25984
19 -- appversion=22.12.0
22 -- programname=Konqueror
31 -- bugaddress=submit@bugs.kde.org
12 -- startupid=0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = konqueror path = /usr/bin pid = 25984
KCrash: Arguments: /usr/bin/konqueror 
KCrash: Attempting to start /usr/lib/drkonqi
zsh: suspended (signal)  konqueror

The crash can be reproduced every time.

-- Backtrace:
Application: Konqueror (konqueror), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f8dbd11e36e in ?? () from /usr/lib/libkdeinit5_konqueror.so
#5  0x00007f8dbd180044 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#6  0x00007f8dbc86e145 in ?? () from /usr/lib/libKF5XmlGui.so.5
#7  0x00007f8dbb1e8a51 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f8dbb59053a in QGuiApplication::saveStateRequest(QSessionManager&) () from /usr/lib/libQt5Gui.so.5
#9  0x00007f8dbb5909c0 in QGuiApplicationPrivate::saveState() () from /usr/lib/libQt5Gui.so.5
#10 0x00007f8db5a622e7 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#11 0x00007f8db5a62417 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#12 0x00007f8db59835c5 in _SmcProcessMessage () from /usr/lib/libSM.so.6
#13 0x00007f8db5972e15 in IceProcessMessages () from /usr/lib/libICE.so.6
#14 0x00007f8dbb1e8c00 in ?? () from /usr/lib/libQt5Core.so.5
#15 0x00007f8dbb1ea904 in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) () from /usr/lib/libQt5Core.so.5
#16 0x00007f8dbb1eaa48 in QSocketNotifier::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#17 0x00007f8dbbcb5b1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007f8dbb1b7f98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#19 0x00007f8dbb201aa6 in ?? () from /usr/lib/libQt5Core.so.5
#20 0x00007f8db8d8587b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007f8db8ddcc89 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007f8db8d84132 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00007f8dbb202c4c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#24 0x00007f8dbb1b073c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#25 0x00007f8dbc258c0e in KJob::exec() () from /usr/lib/libKF5CoreAddons.so.5
#26 0x00007f8d9c917ca9 in ?? () from /usr/lib/qt/plugins/kf5/parts/dolphinpart.so
#27 0x00007f8dbd13c1a5 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#28 0x00007f8dbd14a16c in ?? () from /usr/lib/libkdeinit5_konqueror.so
#29 0x00007f8dbd1494fd in ?? () from /usr/lib/libkdeinit5_konqueror.so
#30 0x00007f8dbd1494fd in ?? () from /usr/lib/libkdeinit5_konqueror.so
#31 0x00007f8dbd1494fd in ?? () from /usr/lib/libkdeinit5_konqueror.so
#32 0x00007f8dbd14a389 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#33 0x00007f8dbd13d2b7 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#34 0x00007f8dbd13d892 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#35 0x00007f8dbd188a78 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#36 0x00007f8dbd197696 in ?? () from /usr/lib/libkdeinit5_konqueror.so
#37 0x00007f8dbd19b0bc in ?? () from /usr/lib/libkdeinit5_konqueror.so
#38 0x00007f8dbd195b7a in kdemain () from /usr/lib/libkdeinit5_konqueror.so
#39 0x00007f8dbcf21290 in ?? () from /usr/lib/libc.so.6
#40 0x00007f8dbcf2134a in __libc_start_main () from /usr/lib/libc.so.6
#41 0x0000561d7264f055 in ?? ()
[Inferior 1 (process 28090) detached]

Reported using DrKonqi
Comment 1 Stefano Crocco 2022-12-22 21:37:44 UTC
Unfortunately, you seem not to have debug symbols for Konqueror istalled, which causes your backtrace miss essential information: all the question marks in the backtrace are placeholders for function names and without them it's impossible to find out what is happening. Could you please try to install the missing debug symbols? I don't use Arch, so I don't know the best way to do so. A quick search lead me to this page: https://wiki.archlinux.org/title/Debugging/Getting_traces. Maybe it could be useful.
Comment 2 Pietro Pizzi 2022-12-23 00:12:07 UTC
I managed to get the debug symbols :)

Application: Konqueror (konqueror), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  KonqView::url (this=0x0) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqview.cpp:873
#7  KonqMainWindow::isPreloaded (this=0x55a7b5938310) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqmainwindow.cpp:3810
#8  0x00007f311a974044 in KonqMainWindow::saveGlobalProperties (this=<optimized out>, sessionConfig=0x55a7b5b29e70) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqmainwindow.cpp:5580
#9  0x00007f311a062145 in KMWSessionManager::saveState (this=<optimized out>, sm=...) at /usr/src/debug/kxmlgui/kxmlgui-5.101.0/src/kmainwindow.cpp:136
#10 0x00007f31189dca51 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x7ffcfd8ad800, signal_index=18, argv=0x7ffcfd8abcc0) at kernel/qobject.cpp:3919
#12 0x00007f3118d8453a in QGuiApplication::saveStateRequest (this=<optimized out>, _t1=...) at .moc/moc_qguiapplication.cpp:451
#13 0x00007f3118d849c0 in QGuiApplicationPrivate::saveState (this=0x55a7b52848b0) at kernel/qguiapplication.cpp:3964
#14 0x00007f31132562e7 in sm_performSaveYourself (sm=0x55a7b531a270) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbsessionmanager.cpp:247
#15 0x00007f3113256417 in sm_saveYourselfCallback (interactStyle=<optimized out>, shutdown=<optimized out>, saveType=<optimized out>, clientData=<optimized out>, smcConn=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbsessionmanager.cpp:182
#16 sm_saveYourselfCallback (smcConn=<optimized out>, clientData=<optimized out>, saveType=<optimized out>, shutdown=<optimized out>, interactStyle=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbsessionmanager.cpp:165
#17 0x00007f31131775c5 in _SmcProcessMessage (iceConn=0x55a7b59025a0, clientData=0x55a7b54e0200, opcode=<optimized out>, length=1, swap=0, replyWait=0x0, replyReadyRet=0x7ffcfd8ac2e0) at /usr/src/debug/libsm/libSM-1.2.4/src/sm_process.c:354
#18 0x00007f3113166e15 in IceProcessMessages () from /usr/lib/libICE.so.6
#19 0x00007f31189dcc00 in doActivate<false> (sender=0x55a7b5900db0, signal_index=3, argv=0x7ffcfd8ac400) at kernel/qobject.cpp:3931
#20 0x00007f31189de904 in QSocketNotifier::activated (this=this@entry=0x55a7b5900db0, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#21 0x00007f31189dea48 in QSocketNotifier::event (this=0x55a7b5900db0, e=<optimized out>) at kernel/qsocketnotifier.cpp:302
#22 0x00007f31194a9b1c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55a7b5900db0, e=0x7ffcfd8ac520) at kernel/qapplication.cpp:3637
#23 0x00007f31189abf98 in QCoreApplication::notifyInternal2 (receiver=0x55a7b5900db0, event=0x7ffcfd8ac520) at kernel/qcoreapplication.cpp:1064
#24 0x00007f31189f5aa6 in socketNotifierSourceDispatch (source=0x55a7b53b22f0) at kernel/qeventdispatcher_glib.cpp:107
#25 0x00007f311657987b in g_main_dispatch (context=0x7f310c005010) at ../glib/glib/gmain.c:3454
#26 g_main_context_dispatch (context=0x7f310c005010) at ../glib/glib/gmain.c:4172
#27 0x00007f31165d0c89 in g_main_context_iterate.constprop.0 (context=0x7f310c005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#28 0x00007f3116578132 in g_main_context_iteration (context=0x7f310c005010, may_block=1) at ../glib/glib/gmain.c:4313
#29 0x00007f31189f6c4c in QEventDispatcherGlib::processEvents (this=0x55a7b53c58d0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f31189a473c in QEventLoop::exec (this=0x7ffcfd8ac7a0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#31 0x00007f3119a4cc0e in KJob::exec (this=this@entry=0x55a7b5b4ede0) at /usr/include/qt/QtCore/qflags.h:121
#32 0x00007f30fa183ca9 in DolphinPart::urlToLocalFilePath (url=..., this=0x55a7b5df9390) at /usr/src/debug/dolphin/dolphin-22.12.0/src/dolphinpart.cpp:290
#33 DolphinPart::openUrl (this=0x55a7b5df9390, url=...) at /usr/src/debug/dolphin/dolphin-22.12.0/src/dolphinpart.cpp:309
#34 0x00007f311a9301a5 in KonqView::restoreHistory (this=0x55a7b5a8b860) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqview.cpp:838
#35 0x00007f311a93e16c in KonqView::loadHistoryConfig (prefix=..., config=..., this=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqview.cpp:1332
#36 KonqViewManager::loadItem (this=this@entry=0x55a7b597fbd0, cfg=..., parent=<optimized out>, parent@entry=0x55a7b5cabb70, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=-1) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1173
#37 0x00007f311a93d4fd in KonqViewManager::loadItem (this=this@entry=0x55a7b597fbd0, cfg=..., parent=parent@entry=0x55a7b5c89980, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1237
#38 0x00007f311a93d4fd in KonqViewManager::loadItem (this=this@entry=0x55a7b597fbd0, cfg=..., parent=parent@entry=0x55a7b5e7bf40, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1237
#39 0x00007f311a93d4fd in KonqViewManager::loadItem (this=this@entry=0x55a7b597fbd0, cfg=..., parent=<optimized out>, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1237
#40 0x00007f311a93e389 in KonqViewManager::loadItem (this=0x55a7b597fbd0, cfg=..., parent=<optimized out>, name=..., defaultURL=..., openUrl=<optimized out>, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=-1) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1262
#41 0x00007f311a9312b7 in KonqViewManager::loadRootItem (this=this@entry=0x55a7b597fbd0, cfg=..., parent=parent@entry=0x55a7b5938360, defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=-1) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1087
#42 0x00007f311a931892 in KonqViewManager::openSavedWindow (configGroup=...) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:370
#43 0x00007f311a97ca78 in KonqSessionManager::restoreSession (sessionFilePath=..., openTabsInsideCurrentWindow=false, parent=0x0, this=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:629
#44 0x00007f311a98b696 in KonqSessionManager::restoreSession (this=<optimized out>, parent=0x0, openTabsInsideCurrentWindow=false, sessionFilePath=...) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:614
#45 KonqSessionManager::restoreSessions(QString const&, bool, KonqMainWindow*) [clone .isra.0] (sessionsDir=..., openTabsInsideCurrentWindow=openTabsInsideCurrentWindow@entry=false, parent=parent@entry=0x0, this=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:614
#46 0x00007f311a98f0bc in KonquerorApplication::openSession (this=<optimized out>, session=...) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:397
#47 KonquerorApplication::performStart(QString const&, bool) [clone .isra.0] (this=<optimized out>, workingDirectory=..., firstInstance=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:245
#48 0x00007f311a989b7a in KonquerorApplication::startFirstInstance (this=0x7ffcfd8ad800) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:184
#49 KonquerorApplication::start (this=0x7ffcfd8ad800) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:234
#50 kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqmain.cpp:40
#51 0x00007f311a715290 in __libc_start_call_main (main=main@entry=0x55a7b3ebe020 <main(int, char**)>, argc=argc@entry=3, argv=argv@entry=0x7ffcfd8ad988) at ../sysdeps/nptl/libc_start_call_main.h:58
#52 0x00007f311a71534a in __libc_start_main_impl (main=0x55a7b3ebe020 <main(int, char**)>, argc=3, argv=0x7ffcfd8ad988, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcfd8ad978) at ../csu/libc-start.c:381
#53 0x000055a7b3ebe055 in _start () at ../sysdeps/x86_64/start.S:115
[Inferior 1 (process 210155) detached]
Comment 3 Stefano Crocco 2022-12-23 19:47:07 UTC
Thanks. I'll look into it in the next few days
Comment 4 Pietro Pizzi 2022-12-23 23:01:29 UTC
Working around Christmas... that's the open source spirit ;)!

If I can test or provide something more, let me know!
Comment 5 Stefano Crocco 2022-12-27 16:51:07 UTC
I tried looking at your backtrace, and while I think I might have found the condition causing your crash, I can't really understand why that condition happens and why it isn't caught by a check which is there exactly for doing that. Unfortunately, given the dynamic nature of Konqueror, it's difficult to find out exactly what is happening without more information.

The first thing I noticed in your backtrace is the mention of lines of code which are only called when you try loading a session from the command line, using the --open-session option. Can you confirm this is what you actually are doing? From the title of your bug report, I assumed you were launching Konqueror without special options, but the backtrace seems to say otherwise. Also, how are you starting Konqueror? From a terminal emulator, from KRunner, clicking on its icon? If you are indeed trying to open a session, is there any chance you could upload the session data, of course provided it doesn't contain any sensitive information? You can find that data in the in ~/.local/share/konqueror/sessions directory: there's a subdirectory for each session.

Thanks
Comment 6 Pietro Pizzi 2022-12-27 19:11:28 UTC
Yes, normally it get's started with the KDE Autostart with the argument "--open-session Download" (plus I have excluded it from the session management). It's possible that I grabt the trace from the KDE Crash Handler after the reboot. But I also checkt it from a clean start from within a terminal (yakuake) with just "konqueror". I post the new clean trace from the terminal start.

Application: Konqueror (konqueror), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  KonqView::url (this=0x0) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqview.cpp:873
#7  KonqMainWindow::isPreloaded (this=0x55f6359ae830) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqmainwindow.cpp:3810
#8  0x00007f18058dc044 in KonqMainWindow::saveGlobalProperties (this=<optimized out>, sessionConfig=0x55f635e75fc0) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqmainwindow.cpp:5580
#9  0x00007f1804fca145 in KMWSessionManager::saveState (this=<optimized out>, sm=...) at /usr/src/debug/kxmlgui/kxmlgui-5.101.0/src/kmainwindow.cpp:136
#10 0x00007f1803944a51 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x7ffd56ce8450, signal_index=18, argv=0x7ffd56ce6690) at kernel/qobject.cpp:3919
#12 0x00007f1803cec53a in QGuiApplication::saveStateRequest (this=<optimized out>, _t1=...) at .moc/moc_qguiapplication.cpp:451
#13 0x00007f1803cec9c0 in QGuiApplicationPrivate::saveState (this=0x55f6353038b0) at kernel/qguiapplication.cpp:3964
#14 0x00007f17fe1bf2e7 in sm_performSaveYourself (sm=0x55f635331ce0) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbsessionmanager.cpp:247
#15 0x00007f17fe1bf417 in sm_saveYourselfCallback (interactStyle=<optimized out>, shutdown=<optimized out>, saveType=<optimized out>, clientData=<optimized out>, smcConn=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbsessionmanager.cpp:182
#16 sm_saveYourselfCallback (smcConn=<optimized out>, clientData=<optimized out>, saveType=<optimized out>, shutdown=<optimized out>, interactStyle=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbsessionmanager.cpp:165
#17 0x00007f17fe0e05c5 in _SmcProcessMessage (iceConn=0x55f6359816d0, clientData=0x55f63555f2c0, opcode=<optimized out>, length=1, swap=0, replyWait=0x0, replyReadyRet=0x7ffd56ce6cb0) at /usr/src/debug/libsm/libSM-1.2.4/src/sm_process.c:354
#18 0x00007f17fe0cfe15 in IceProcessMessages () from /usr/lib/libICE.so.6
#19 0x00007f1803944c00 in doActivate<false> (sender=0x55f63597fe00, signal_index=3, argv=0x7ffd56ce6dd0) at kernel/qobject.cpp:3931
#20 0x00007f1803946904 in QSocketNotifier::activated (this=this@entry=0x55f63597fe00, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#21 0x00007f1803946a48 in QSocketNotifier::event (this=0x55f63597fe00, e=<optimized out>) at kernel/qsocketnotifier.cpp:302
#22 0x00007f1804411b1c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55f63597fe00, e=0x7ffd56ce6ef0) at kernel/qapplication.cpp:3637
#23 0x00007f1803913f98 in QCoreApplication::notifyInternal2 (receiver=0x55f63597fe00, event=0x7ffd56ce6ef0) at kernel/qcoreapplication.cpp:1064
#24 0x00007f180395daa6 in socketNotifierSourceDispatch (source=0x55f635431780) at kernel/qeventdispatcher_glib.cpp:107
#25 0x00007f18014e187b in g_main_dispatch (context=0x7f17f8005010) at ../glib/glib/gmain.c:3454
#26 g_main_context_dispatch (context=0x7f17f8005010) at ../glib/glib/gmain.c:4172
#27 0x00007f1801538c89 in g_main_context_iterate.constprop.0 (context=0x7f17f8005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#28 0x00007f18014e0132 in g_main_context_iteration (context=0x7f17f8005010, may_block=1) at ../glib/glib/gmain.c:4313
#29 0x00007f180395ec4c in QEventDispatcherGlib::processEvents (this=0x55f635444d00, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f180390c73c in QEventLoop::exec (this=0x7ffd56ce7170, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#31 0x00007f18049b4c0e in KJob::exec (this=this@entry=0x55f635de93e0) at /usr/include/qt/QtCore/qflags.h:121
#32 0x00007f17e5072ca9 in DolphinPart::urlToLocalFilePath (url=..., this=0x55f635bc3c50) at /usr/src/debug/dolphin/dolphin-22.12.0/src/dolphinpart.cpp:290
#33 DolphinPart::openUrl (this=0x55f635bc3c50, url=...) at /usr/src/debug/dolphin/dolphin-22.12.0/src/dolphinpart.cpp:309
#34 0x00007f18058981a5 in KonqView::restoreHistory (this=0x55f635d71350) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqview.cpp:838
#35 0x00007f18058a616c in KonqView::loadHistoryConfig (prefix=..., config=..., this=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqview.cpp:1332
#36 KonqViewManager::loadItem (this=this@entry=0x55f635a59190, cfg=..., parent=<optimized out>, parent@entry=0x55f635ed9080, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=-1) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1173
#37 0x00007f18058a54fd in KonqViewManager::loadItem (this=this@entry=0x55f635a59190, cfg=..., parent=parent@entry=0x55f635bebff0, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1237
#38 0x00007f18058a54fd in KonqViewManager::loadItem (this=this@entry=0x55f635a59190, cfg=..., parent=parent@entry=0x55f635b977c0, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1237
#39 0x00007f18058a54fd in KonqViewManager::loadItem (this=this@entry=0x55f635a59190, cfg=..., parent=<optimized out>, name=..., defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1237
#40 0x00007f18058a6389 in KonqViewManager::loadItem (this=0x55f635a59190, cfg=..., parent=<optimized out>, name=..., defaultURL=..., openUrl=<optimized out>, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=-1) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1262
#41 0x00007f18058992b7 in KonqViewManager::loadRootItem (this=this@entry=0x55f635a59190, cfg=..., parent=parent@entry=0x55f6359ae880, defaultURL=..., openUrl=openUrl@entry=true, forcedUrl=..., forcedService=..., openAfterCurrentPage=false, pos=-1) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:1087
#42 0x00007f1805899892 in KonqViewManager::openSavedWindow (configGroup=...) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqviewmanager.cpp:370
#43 0x00007f18058e4a78 in KonqSessionManager::restoreSession (sessionFilePath=..., openTabsInsideCurrentWindow=openTabsInsideCurrentWindow@entry=false, parent=parent@entry=0x0, this=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:629
#44 0x00007f18058e5bcc in KonqSessionManager::restoreSession (this=<optimized out>, parent=0x0, openTabsInsideCurrentWindow=false, sessionFilePath=...) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:621
#45 KonqSessionManager::restoreSessions (this=0x55f6359a3bc0, openTabsInsideCurrentWindow=false, parent=0x0, sessionFilePathsList=...) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:603
#46 KonqSessionManager::askUserToRestoreAutosavedAbandonedSessions (this=0x55f6359a3bc0) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqsessionmanager.cpp:692
#47 0x00007f18058f7575 in KonquerorApplication::performStart(QString const&, bool) [clone .isra.0] (this=0x7ffd56ce8450, workingDirectory=..., firstInstance=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:257
#48 0x00007f18058f1b7a in KonquerorApplication::startFirstInstance (this=0x7ffd56ce8450) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:184
#49 KonquerorApplication::start (this=0x7ffd56ce8450) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqapplication.cpp:234
#50 kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konqueror/konqueror-22.12.0/src/konqmain.cpp:40
#51 0x00007f180567d290 in __libc_start_call_main (main=main@entry=0x55f6348b2020 <main(int, char**)>, argc=argc@entry=1, argv=argv@entry=0x7ffd56ce85d8) at ../sysdeps/nptl/libc_start_call_main.h:58
#52 0x00007f180567d34a in __libc_start_main_impl (main=0x55f6348b2020 <main(int, char**)>, argc=1, argv=0x7ffd56ce85d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd56ce85c8) at ../csu/libc-start.c:381
#53 0x000055f6348b2055 in _start () at ../sysdeps/x86_64/start.S:115
[Inferior 1 (process 3218891) detached]
Comment 7 Stefano Crocco 2022-12-28 15:24:45 UTC
Created attachment 154863 [details]
Patch which should avoid the crash
Comment 8 Stefano Crocco 2022-12-28 15:29:56 UTC
Both your crashes are caused by the same code. Looking again at it, I noticed that it didn't check for a situation which could lead to the crash. I added this check, but I can't be sure that it actually fix things. Unfortunately, I can't check it for myself as I can't reproduce the crash.

Are you by any chance able to compile Konqueror, making changes to the source code? If so, could you please apply the attached patch or to replace line 3810 in src/konqmainwindow.cpp with the line below and see whether it solves your problem? Thanks

return !isVisible() && m_mapViews.count() == 1 && m_currentView && KonqUrl::isKonqBlank(m_currentView->url().toString());
Comment 9 Bug Janitor Service 2023-01-04 10:12:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/konqueror/-/merge_requests/164
Comment 10 Pietro Pizzi 2023-01-05 15:04:28 UTC
(In reply to Stefano Crocco from comment #8)
> Both your crashes are caused by the same code. Looking again at it, I
> noticed that it didn't check for a situation which could lead to the crash.
> I added this check, but I can't be sure that it actually fix things.
> Unfortunately, I can't check it for myself as I can't reproduce the crash.
> 
> Are you by any chance able to compile Konqueror, making changes to the
> source code? If so, could you please apply the attached patch or to replace
> line 3810 in src/konqmainwindow.cpp with the line below and see whether it
> solves your problem? Thanks
> 
> return !isVisible() && m_mapViews.count() == 1 && m_currentView &&
> KonqUrl::isKonqBlank(m_currentView->url().toString());

Sorry, I'm a technician but not very experienced in software development.
I have tried this:
- download the .zip from https://github.com/KDE/konqueror
- extracted it to konqueror-master
- patched the file
- make a dir konqueror-build parallel to konqueror-master
- used the following cmake command in the build dir, borrowed from the pkgbuild https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=konqueror-git 
"cmake ../konqueror-master -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF"
and get the following output/error:

-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/share/perl5/vendor_perl/auto/share/dist/App-Cope/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/share/perl5/vendor_perl/auto/share/dist/App-Cope/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:16 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 5.91.0) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/home/pietro/Downloads/konqueror-build/CMakeFiles/CMakeOutput.log".


Can't find one of the mentioned files under konqueror-master, so I don't know how to fix this? If you want I can post the CMakeOutput.log!?
Comment 11 Stefano Crocco 2023-01-05 18:08:43 UTC
(In reply to Pietro Pizzi from comment #10)
> (In reply to Stefano Crocco from comment #8)
> > Both your crashes are caused by the same code. Looking again at it, I
> > noticed that it didn't check for a situation which could lead to the crash.
> > I added this check, but I can't be sure that it actually fix things.
> > Unfortunately, I can't check it for myself as I can't reproduce the crash.
> > 
> > Are you by any chance able to compile Konqueror, making changes to the
> > source code? If so, could you please apply the attached patch or to replace
> > line 3810 in src/konqmainwindow.cpp with the line below and see whether it
> > solves your problem? Thanks
> > 
> > return !isVisible() && m_mapViews.count() == 1 && m_currentView &&
> > KonqUrl::isKonqBlank(m_currentView->url().toString());
> 
> Sorry, I'm a technician but not very experienced in software development.
> I have tried this:
> - download the .zip from https://github.com/KDE/konqueror
> - extracted it to konqueror-master
> - patched the file
> - make a dir konqueror-build parallel to konqueror-master
> - used the following cmake command in the build dir, borrowed from the
> pkgbuild
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=konqueror-git 
> "cmake ../konqueror-master -DCMAKE_BUILD_TYPE=Release
> -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF"
> and get the following output/error:
> 
> -- The C compiler identification is GNU 12.2.0
> -- The CXX compiler identification is GNU 12.2.0
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler:
> /usr/share/perl5/vendor_perl/auto/share/dist/App-Cope/cc - skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working CXX compiler:
> /usr/share/perl5/vendor_perl/auto/share/dist/App-Cope/g++ - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> CMake Error at CMakeLists.txt:16 (find_package):
>   Could not find a package configuration file provided by "ECM" (requested
>   version 5.91.0) with any of the following names:
> 
>     ECMConfig.cmake
>     ecm-config.cmake
> 
>   Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
>   to a directory containing one of the above files.  If "ECM" provides a
>   separate development package or SDK, be sure it has been installed.
> 
> -- Configuring incomplete, errors occurred!
> See also "/home/pietro/Downloads/konqueror-build/CMakeFiles/CMakeOutput.log".
> 
> 
> Can't find one of the mentioned files under konqueror-master, so I don't
> know how to fix this? If you want I can post the CMakeOutput.log!?

I think you need to install the the extra-cmake-modules package.
Comment 12 Pietro Pizzi 2023-01-05 19:52:00 UTC
That worked. Now I can compile it without errors.

When I start the new one "./konqueror-build/bin/konqueror" it doesn't crash on it's own. But it starts all my previous sessions in an endless loop. This means every 2-3 seconds a new konqueror window opens with one of my 4 saved sessions, but after ~10 windows or so the old ones closes it seems!? I can watch the RAM usage grow to ~2.5GB, then it falls to 1.9, then after ~10s it has 2.5GB again and falls to 1.9GB again, a.s.o.. When I ctrl-c the commandline all windows exits.
Comment 13 Stefano Crocco 2023-01-06 10:07:08 UTC
(In reply to Pietro Pizzi from comment #12)
> That worked. Now I can compile it without errors.
> 
> When I start the new one "./konqueror-build/bin/konqueror" it doesn't crash
> on it's own. But it starts all my previous sessions in an endless loop. This
> means every 2-3 seconds a new konqueror window opens with one of my 4 saved
> sessions, but after ~10 windows or so the old ones closes it seems!? I can
> watch the RAM usage grow to ~2.5GB, then it falls to 1.9, then after ~10s it
> has 2.5GB again and falls to 1.9GB again, a.s.o.. When I ctrl-c the
> commandline all windows exits.

Is this happening after the dialog where it asks you to restore sessions? Or do you have that dialog disabled, so that sessions are always restored? Also, could you check whether your .config/konquerorc file contains the lines

[Reusing]
AlwaysHavePreloaded=false
PreloadOnStartup=false

and if not, try to add them? Could you also try looking in the .local/share/konqueror/autosave directory and see how many files or directories do you have there?
Comment 14 Pietro Pizzi 2023-01-08 23:14:23 UTC
No dialog, so I think I have it disabled at some point.

Yes I have the lines...

[Reusing]
AlwaysHavePreloaded=false
PreloadOnStartup=false

...in my actual konquerorrc.

My autosave looks like...
(I can't post the exact filenames because the site told my that it looks like spam)

9 files:
_1.104
...
_1.140

1 directory:
owned_by_1.1624/

and 40 files in this directory:
_1.44
...
_1.3817
Comment 15 Stefano Crocco 2023-01-26 13:13:49 UTC
Git commit 6303d12223dd6605e00d4cebdd689de30a940b01 by Stefano Crocco.
Committed on 26/01/2023 at 13:13.
Pushed by stefanocrocco into branch 'master'.

Check that the current view is valid

M  +1    -1    src/konqmainwindow.cpp
M  +1    -0    src/urlloader.cpp

https://invent.kde.org/network/konqueror/commit/6303d12223dd6605e00d4cebdd689de30a940b01
Comment 16 Stefano Crocco 2023-01-26 13:35:21 UTC
Git commit 42f8f5a48f2d1ae9f44e443320dce08cdfd23912 by Stefano Crocco.
Committed on 26/01/2023 at 13:35.
Pushed by stefanocrocco into branch 'release/22.12'.

Check that the current view is valid


(cherry picked from commit 6303d12223dd6605e00d4cebdd689de30a940b01)

M  +1    -1    src/konqmainwindow.cpp
M  +1    -0    src/urlloader.cpp

https://invent.kde.org/network/konqueror/commit/42f8f5a48f2d1ae9f44e443320dce08cdfd23912
Comment 17 Stefano Crocco 2023-01-26 16:01:23 UTC
*** Bug 438207 has been marked as a duplicate of this bug. ***
Comment 18 Pietro Pizzi 2023-02-01 12:41:07 UTC
Should I try to patch the urlloader.cpp to and test it again!?

Or is this unrelated to my "restart-loop" and you just post the upstream commit?
Comment 19 Stefano Crocco 2023-02-02 08:30:47 UTC
(In reply to Pietro Pizzi from comment #18)
> Should I try to patch the urlloader.cpp to and test it again!?
> 
> Or is this unrelated to my "restart-loop" and you just post the upstream
> commit?

There's no need for you to do anything right now. When 22.12.2 is released (in a few days, if I remember correctly), the fix will be there. If you find that it doesn't resolve your issue, please reopen this bug report.
Comment 20 Pietro Pizzi 2023-07-02 10:08:23 UTC
Hi,

For me the Problem from "Comment 12" (https://bugs.kde.org/show_bug.cgi?id=463358#c12) is back (in the normal Arch build). The only difference is that it didn't closes the "oldest" windows. So I killed all after 30 dopend windows. I have no crashlog to provide because they are not crashing on there own.

My actual konqueror version is: 23.04.2-1

What should/could I provide?
Comment 21 Stefano Crocco 2023-07-02 13:57:42 UTC
(In reply to Pietro Pizzi from comment #20)
> Hi,
> 
> For me the Problem from "Comment 12"
> (https://bugs.kde.org/show_bug.cgi?id=463358#c12) is back (in the normal
> Arch build). The only difference is that it didn't closes the "oldest"
> windows. So I killed all after 30 dopend windows. I have no crashlog to
> provide because they are not crashing on there own.
> 
> My actual konqueror version is: 23.04.2-1
> 
> What should/could I provide?

I really can't understand what's going on. Just to be clear: has this started happening again suddenly or after a version update?
One thing you can do to get more information is to enable debug output for Konqueror you can do this running the following command from a terminal emulator:
 QT_LOGGING_RULES="konqueror.debug=true;libkonq.debug=true" konqueror
You should copy the output and post it here as an attachment.
Comment 22 Pietro Pizzi 2023-07-02 19:30:34 UTC
Sorry but it's really hard to say for certain. On Arch I update "all the time" ;) but often doesn't reboot right after. I often use S3 and reboot approximately every other week. One Konqueror window, I mostly use (with ~10 tiles), is always open, the other sessions I open very rarely. And the new Konqueror binary only runs when I start a new konqueror window, which means on reboot (every other week).
Comment 23 Pietro Pizzi 2023-07-02 19:35:59 UTC
Created attachment 160052 [details]
The command line output from konqueror

This is the output of
> QT_LOGGING_RULES="konqueror.debug=true;libkonq.debug=true" konqueror
Comment 24 Stefano Crocco 2023-07-03 16:34:44 UTC
(In reply to Pietro Pizzi from comment #23)
> Created attachment 160052 [details]
> The command line output from konqueror
> 
> This is the output of
> > QT_LOGGING_RULES="konqueror.debug=true;libkonq.debug=true" konqueror

Sorry, I made a mistake: the correct command to display debugging output is
QT_LOGGING_RULES="org.kde.konqueror.debug=true" konqueror
Also, before executing it, close all Konqueror windows and issue a
killall konqueror
command to ensure that no existing konqueror process exists.
Comment 25 Pietro Pizzi 2023-07-03 20:50:38 UTC
Created attachment 160066 [details]
New konqueror log file.

No konqueror process was running. 

Now it's the output of:
> QT_LOGGING_RULES="org.kde.konqueror.debug=true" konqueror
Comment 26 Stefano Crocco 2023-07-05 18:24:03 UTC
(In reply to Pietro Pizzi from comment #25)
> Created attachment 160066 [details]
> New konqueror log file.
> 
> No konqueror process was running. 
> 
> Now it's the output of:
> > QT_LOGGING_RULES="org.kde.konqueror.debug=true" konqueror

Unfortunately, I can't find anything suspicious in the output you posted. Since you said It happens with the Arch package, could you please try to build Konqueror 23.04.2 from source (downloading the source code from https://invent.kde.org/network/konqueror/-/tree/release/23.04?ref_type=heads) and check whether the same issue happens with it? If it does, during the weekend, during the weekend I'll try to create a patch for the source code with more debug information to help find out what's happening. If the problem doesn't happen with the manually built version of Konqueror, it may be that Arch itself added some patch which is causing this strange situation, even if I think it's unlikely.
Comment 27 Stefano Crocco 2023-07-09 15:51:28 UTC
Created attachment 160212 [details]
Patch for Konqueror 23.04 to increase debug output
Comment 28 Stefano Crocco 2023-07-09 15:56:47 UTC
I attached a patch to be applied to Konqueror 23.04 source code to increase the debug output of the code which handles session management. If you can reproduce your problem with Konqueror built from source, could please apply this patch to the source and run Konqueror, as described in comment 24
Comment 29 Pietro Pizzi 2023-08-03 19:31:28 UTC
Hi and sorry for my hiatus. First vacation, then family and work stuff...

Yesterday I have time again for my free-time computer stuff ;), updated my arch system first and... bam, konqueror fixed upstream!

So, thanks again for your time and effort! Even more so because this time it wasn't a konqueror bug in the first place...

I hope my start problem is, and stays, resolved :)!
Comment 30 Pietro Pizzi 2023-08-30 00:12:04 UTC
Hi,

Today the problem #12/#20 was back. BUT I found out what I can do about it, without disturbing you again ;). Maybe this information helps you in any way!?

If I remove the folder '~/.local/share/konqueror/autosave' konqueror starts normal again (with and without a session). A reinstall and reboot beforehand doesn't do the trick.
Comment 31 Stefano Crocco 2023-08-30 07:35:02 UTC
(In reply to Pietro Pizzi from comment #30)
> Hi,
> 
> Today the problem #12/#20 was back. BUT I found out what I can do about it,
> without disturbing you again ;). Maybe this information helps you in any
> way!?
> 
> If I remove the folder '~/.local/share/konqueror/autosave' konqueror starts
> normal again (with and without a session). A reinstall and reboot beforehand
> doesn't do the trick.

Thanks for this information. Right now, I'm busy porting Konqueror to Qt6, but when I'll finish with that, I'll take a look again at this.