Bug 462664 - Crash when trying to use internal viewer for file with CP1251 encoding
Summary: Crash when trying to use internal viewer for file with CP1251 encoding
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: krviewer (other bugs)
Version First Reported In: 2.7.2
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-05 09:11 UTC by sb.dushenkov
Modified: 2023-02-27 20:23 UTC (History)
2 users (show)

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


Attachments
xslx file with cp1251 encoding (yes, i know it's not supposed to be viewed with internal viewer) (8.68 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2022-12-05 09:11 UTC, sb.dushenkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sb.dushenkov 2022-12-05 09:11:05 UTC
Created attachment 154325 [details]
xslx file with cp1251 encoding (yes, i know it's not supposed to be viewed with internal viewer)

Crash when trying to use internal viewer for file with CP1251 encoding
krusader/stable,now 2:2.7.2-2 amd64 [installed]

Steps:
- select file (see attachment)
- press F3

krusader
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
11:42:46.909-debug default unknown@0 # System icon theme: "breeze"
11:42:47.005-warning default unknown@0 # QWidget::insertAction: Attempt to insert null action
11:42:47.007-warning default unknown@0 # QWidget::insertAction: Attempt to insert null action
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = krusader path = /usr/bin pid = 725237
KCrash: Arguments: /usr/bin/krusader 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi

[1]+  Stopped                 krusader


Thread 1 "krusader" received signal SIGSEGV, Segmentation fault.
0x0000000355dc0034 in ?? ()
(gdb) backtrace
#0  0x0000000355dc0034 in ?? ()
#1  0x00007ffff62dd0d0 in QObject::setProperty (this=this@entry=0x5555565a9da0, 
    name=name@entry=0x7fffd72fa58d "unpackedSize", value=...) at kernel/qobject.cpp:4031
#2  0x00007fffd72cbd65 in Kerfuffle::LoadJob::onFinished (this=0x555555eec870, result=<optimized out>)
    at ./kerfuffle/jobs.cpp:285
#3  0x00007ffff62d3ff1 in QObject::event (this=0x555555eec870, e=0x7fffc0008ce0) at kernel/qobject.cpp:1314
#4  0x00007ffff6d8e15f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555555eec870, 
    e=0x7fffc0008ce0) at kernel/qapplication.cpp:3632
#5  0x00007ffff62a7fca in QCoreApplication::notifyInternal2 (receiver=0x555555eec870, event=0x7fffc0008ce0)
    at kernel/qcoreapplication.cpp:1063
#6  0x00007ffff62aaa01 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x555555826a80)
    at kernel/qcoreapplication.cpp:1817
#7  0x00007ffff62ffe93 in postEventSourceDispatch (s=0x55555599c180) at kernel/qeventdispatcher_glib.cpp:277
#8  0x00007ffff47b5e6b in g_main_dispatch (context=0x7fffec005000) at ../../../glib/gmain.c:3325
#9  g_main_context_dispatch (context=0x7fffec005000) at ../../../glib/gmain.c:4043
#10 0x00007ffff47b6118 in g_main_context_iterate (context=context@entry=0x7fffec005000, block=block@entry=1, 
    dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4119
#11 0x00007ffff47b61cf in g_main_context_iteration (context=0x7fffec005000, may_block=may_block@entry=1)
    at ../../../glib/gmain.c:4184
#12 0x00007ffff62ff51f in QEventDispatcherGlib::processEvents (this=0x555555997a20, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#13 0x00007ffff62a698b in QEventLoop::exec (this=this@entry=0x7fffffffdd10, flags=..., flags@entry=...)
    at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#14 0x00007ffff62aec00 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#15 0x00007ffff6675bdc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#16 0x00007ffff6d8e0d5 in QApplication::exec () at kernel/qapplication.cpp:2824
#17 0x00005555555e7574 in main (argc=<optimized out>, argv=<optimized out>) at ./krusader/main.cpp:316



Operating System: Debian GNU/Linux 11
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.0-19-amd64
OS Type: 64-bit
Processors: 6 × Intel® Core™ i5-8600 CPU @ 3.10GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Comment 1 Davide Gianforte 2023-02-27 06:45:19 UTC
This bug was solved in the last Krusader release (2.8.0). Can you manage to update to latest version and check if issue happens again?
Comment 2 sb.dushenkov 2023-02-27 18:52:37 UTC
(In reply to Davide Gianforte from comment #1)
> This bug was solved in the last Krusader release (2.8.0). Can you manage to
> update to latest version and check if issue happens again?

I've checked. Krusader version 2.8.0 - no issue present. Thank you!
Tested on Ubuntu 23.04 (Lunar Lobster) Daily Build.
p.s. For other interested in version 2.8.0: available in debian 12 Bookworm (now - testing/cid) or Ubuntu 23 (now - Daily Build)