Bug 495238 - Kid3 crashes after handingly only a few files out of <20.
Summary: Kid3 crashes after handingly only a few files out of <20.
Status: REPORTED
Alias: None
Product: kid3
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Urs Fleisch
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-10-23 12:09 UTC by Joe Carey
Modified: 2024-10-24 16:42 UTC (History)
0 users

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


Attachments
attachment-2959846-0.html (3.52 KB, text/html)
2024-10-24 16:42 UTC, Joe Carey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Carey 2024-10-23 12:09:35 UTC
Application: kid3 (3.9.5)

Qt Version: 5.15.13
Frameworks Version: 5.115.0
Operating System: Linux 6.8.0-45-generic x86_64
Windowing System: X11
Distribution: Ubuntu 24.04.1 LTS
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
Crashes after processing only a few files.  In this case I'm updating album covers, but I tried with 'simpler' things like changing the date tag.  Workaround is to do just two at a time.

The crash can be reproduced every time.

-- Backtrace:
Application: Kid3 (kid3), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f05eb6a50dc in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f05eb6a5472 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f05eb712dbf in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f05eb66daea in QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f05eb67664c in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f05ecba16d6 in ?? () from /usr/lib/kid3/libkid3-core.so
#10 0x00007f05eb706343 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f05ec36bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x000055e9255a6c31 in ?? ()
#13 0x00007f05eb6d8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f05eb6db94b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f05eb735c0f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f05ea1145b5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f05ea173717 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f05ea113a53 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f05eb735279 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f05ed33a796 in BaseMainWindowImpl::showOperationProgress(QString const&, int, int, bool*) () from /usr/lib/kid3/libkid3-gui.so
#21 0x00007f05eb712e16 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f05ecb92eae in Kid3Application::longRunningOperationProgress(QString const&, int, int, bool*) () from /usr/lib/kid3/libkid3-core.so
#23 0x00007f05ecb514ea in Kid3Application::saveDirectory(QStringList*) () from /usr/lib/kid3/libkid3-core.so
#24 0x00007f05ed33ad66 in BaseMainWindowImpl::saveDirectory(bool) () from /usr/lib/kid3/libkid3-gui.so
#25 0x00007f05eb712e16 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f05ec364f94 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f05ec367eab in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f05ec46967a in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f05ec4697b8 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f05ec56d446 in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f05ec3b0df8 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f05ec36bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007f05ec3746b0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x000055e9255a6c31 in ?? ()
#35 0x00007f05eb6d8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f05ec372874 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f05ec3caa39 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f05ec3cdfbf in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f05ec36bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x000055e9255a6c31 in ?? ()
#41 0x00007f05eb6d8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f05ebb45a3b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#43 0x00007f05ebb17bfc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#44 0x00007f05e6cfcd06 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#45 0x00007f05ea1145b5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f05ea173717 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f05ea113a53 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f05eb735279 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#49 0x00007f05eb6d6a7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007f05eb6df3e8 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#51 0x000055e9255a4530 in ?? ()
#52 0x00007f05eb02a1ca in __libc_start_call_main (main=main@entry=0x55e9255a3f70, argc=argc@entry=1, argv=argv@entry=0x7fff0083ba98) at ../sysdeps/nptl/libc_start_call_main.h:58
#53 0x00007f05eb02a28b in __libc_start_main_impl (main=0x55e9255a3f70, argc=1, argv=0x7fff0083ba98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff0083ba88) at ../csu/libc-start.c:360
#54 0x000055e9255a49d5 in ?? ()
[Inferior 1 (process 2121) detached]

Reported using DrKonqi
Comment 1 Urs Fleisch 2024-10-24 16:40:02 UTC
Thanks for the report. Unfortunately, I am not able to reproduce it, neither on Ubuntu 24.04 nor on other Linux distributions. From the stack trace, I can see that it happens when you save the files, the last recognizable call from Kid3 is BaseMainWindowImpl::showOperationProgress(), after that it is probably qApp->processEvents() on line 366 of basemainwindow.cpp, which processes Qt event and can be anything, so it is hard to tell what exactly is crashing. rowsAboutToBeRemoved() would suggest that rows are removed in some model, but where and why when only files are saved? So I am a little at a loss, and would like to get some additional information:

- Does it happen with any files, or it there a specific file which has to be part of the save operation?
- What kind of files? Are they on the local drive or on an external drive? Is there anything special in the setup?
- Does the crash also occur with the Qt-only version kid3-qt?
- Could you try if the crash occurs also with the version from my PPA (see https://kid3.kde.org/#download), it also uses the system Qt libraries, so I would expect it to behave the same?
- Does the crash also occur if you are using a binary which uses Qt 6, for example the https://prdownloads.sourceforge.net/kid3/kid3-3.9.6-Linux.tgz or the flatpak from https://flathub.org/apps/details/org.kde.kid3?
Comment 2 Joe Carey 2024-10-24 16:42:38 UTC
Created attachment 175192 [details]
attachment-2959846-0.html

Hi Uri,

My apologies, I think it's just a matter of the size of the image I was
using when trying to add an album cover.  I didn't notice the massive
filesize of some of the images I was using, and after resizing them to
something more appropriate, there is no issue.

Thank you for your time sir.

Regards,

Joe

On Thu, Oct 24, 2024 at 1:40 PM Urs Fleisch <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=495238
>
> --- Comment #1 from Urs Fleisch <ufleisch@users.sourceforge.net> ---
> Thanks for the report. Unfortunately, I am not able to reproduce it,
> neither on
> Ubuntu 24.04 nor on other Linux distributions. From the stack trace, I can
> see
> that it happens when you save the files, the last recognizable call from
> Kid3
> is BaseMainWindowImpl::showOperationProgress(), after that it is probably
> qApp->processEvents() on line 366 of basemainwindow.cpp, which processes Qt
> event and can be anything, so it is hard to tell what exactly is crashing.
> rowsAboutToBeRemoved() would suggest that rows are removed in some model,
> but
> where and why when only files are saved? So I am a little at a loss, and
> would
> like to get some additional information:
>
> - Does it happen with any files, or it there a specific file which has to
> be
> part of the save operation?
> - What kind of files? Are they on the local drive or on an external drive?
> Is
> there anything special in the setup?
> - Does the crash also occur with the Qt-only version kid3-qt?
> - Could you try if the crash occurs also with the version from my PPA (see
> https://kid3.kde.org/#download), it also uses the system Qt libraries, so
> I
> would expect it to behave the same?
> - Does the crash also occur if you are using a binary which uses Qt 6, for
> example the https://prdownloads.sourceforge.net/kid3/kid3-3.9.6-Linux.tgz
> or
> the flatpak from https://flathub.org/apps/details/org.kde.kid3?
>
> --
> You are receiving this mail because:
> You reported the bug.