https://bugs.kde.org/show_bug.cgi?id=458605

            Bug ID: 458605
           Summary: 100% CPU usage and infinite loop while opening HTML
                    file.
           Product: ark
           Version: 22.08.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: elvis.angelac...@kde.org
          Reporter: ubu...@sjrx.net
                CC: aa...@kde.org, rthoms...@gmail.com
  Target Milestone: ---

SUMMARY

STEPS TO REPRODUCE
1. echo "<html><body>Hello</body></html>" > file.html
2.  tar -czf file.tar.gz ./file.html
3. ark file.tar.gz 
4. Double click the file.

OBSERVED RESULT
100% cpu usage and hanging.

EXPECTED RESULT
A preview of some kind

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
* Note I was having this issue on 22.04.3 and noticed newer versions on the bug
report, so I upgraded just ark to 22.08.0 . So if the versions don't match up
that might be why.

Using GDB I noticed every time I interrupted the program it seemed to be stuck
in:

0x00007ffff728769f in QWidget::graphicsEffect() const () from
/usr/lib/libQt5Widgets.so.5


Here is one back trace.
#0  0x00007ffff728769f in QWidget::graphicsEffect() const () at
/usr/lib/libQt5Widgets.so.5
#1  0x00007ffff7288186 in
QWidgetPrivate::invalidateGraphicsEffectsRecursively() () at
/usr/lib/libQt5Widgets.so.5
#2  0x00007ffff728821b in QWidgetPrivate::setDirtyOpaqueRegion() () at
/usr/lib/libQt5Widgets.so.5
#3  0x00007ffff728b4f1 in QWidgetPrivate::updateIsOpaque() () at
/usr/lib/libQt5Widgets.so.5
#4  0x00007ffff7285c08 in QWidget::create(unsigned long long, bool, bool) () at
/usr/lib/libQt5Widgets.so.5
#5  0x00007ffff728847f in QWidgetPrivate::createWinId() () at
/usr/lib/libQt5Widgets.so.5
#6  0x00007ffff7296859 in QWidgetPrivate::setParent_sys(QWidget*,
QFlags<Qt::WindowType>) () at /usr/lib/libQt5Widgets.so.5
#7  0x00007ffff7298ca2 in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>)
() at /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff727b5bc in QLayout::addChildWidget(QWidget*) () at
/usr/lib/libQt5Widgets.so.5
#9  0x00007ffff727d044 in QBoxLayout::insertWidget(int, QWidget*, int,
QFlags<Qt::AlignmentFlag>) () at /usr/lib/libQt5Widgets.so.5
#10 0x00007fffc95db0c1 in
ArkViewer::viewInInternalViewer(QExplicitlySharedDataPointer<KService>, QString
const&, QString const&, QMimeType const&)
    (mimeType=<optimized out>, entryPath=..., fileName=..., viewer=...,
this=0x555555ffb620) at /usr/src/debug/ark-22.08.0/part/arkviewer.cpp:184
#11 ArkViewer::openInternalViewer(QExplicitlySharedDataPointer<KService>,
QString const&, QString const&, QMimeType const&)
    (viewer=..., fileName=..., entryPath=..., mimeType=<optimized out>) at
/usr/src/debug/ark-22.08.0/part/arkviewer.cpp:93
#12 0x00007fffc95d0d87 in ArkViewer::view(QString const&, QString const&)
(entryPath=..., fileName=...)
    at /usr/src/debug/ark-22.08.0/part/arkviewer.cpp:148
#13 Ark::Part::slotPreviewExtractedEntry(KJob*) (this=0x555555adde10,
job=<optimized out>) at /usr/src/debug/ark-22.08.0/part/part.cpp:1070
#14 0x00007ffff680f440 in QObject::event(QEvent*) () at
/usr/lib/libQt5Core.so.5
#15 0x00007ffff7261b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff67ebad8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt5Core.so.5
#17 0x00007ffff67ec5e3 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#18 0x00007ffff6832548 in  () at /usr/lib/libQt5Core.so.5
#19 0x00007ffff4d8ac6b in g_main_dispatch (context=0x7fffec005010) at
../glib/glib/gmain.c:3417
#20 g_main_context_dispatch (context=0x7fffec005010) at
../glib/glib/gmain.c:4135
#21 0x00007ffff4de1001 in g_main_context_iterate.constprop.0
    (context=context@entry=0x7fffec005010, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4211
#22 0x00007ffff4d88392 in g_main_context_iteration (context=0x7fffec005010,
may_block=1) at ../glib/glib/gmain.c:4276
#23 0x00007ffff683632c in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#24 0x00007ffff67e427c in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/usr/lib/libQt5Core.so.5
#25 0x00007ffff67eeda9 in QCoreApplication::exec() () at
/usr/lib/libQt5Core.so.5
#26 0x0000555555561550 in main(int, char**) (argc=<optimized out>,
argv=<optimized out>) at /usr/src/debug/ark-22.08.0/app/main.cpp:341

I can open the attachment in Ark in an external browser.

I did see bug 454181 but the symptoms were different.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to