Bug 481315 - subtitlecomposer crashes
Summary: subtitlecomposer crashes
Status: RESOLVED FIXED
Alias: None
Product: subtitlecomposer
Classification: Applications
Component: general (show other bugs)
Version: 0.8.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Mladen Milinkovic, Max
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-02-14 10:37 UTC by Joe Breuer
Modified: 2024-02-25 14:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2024-02-14 10:37:27 UTC
Application: subtitlecomposer (0.8.0)
 (Compiled from sources)
Qt Version: 5.15.12
Frameworks Version: 5.113.0
Operating System: Linux 6.6.13-gentoo x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
I had an issue with subtitlecomposer crashing, as it turned out, whenever I reached a specific point in the video I was working on.

That crash report was not useful, so I rebuilt subtitlecomposer and its relevant dependencies with debug symbols. In this first attempt, this changes the behaviour, causing an assertion immediately upon starting subtitlecomposer, that I guess is optimized out in a release build:

ASSERT: "last < rowCount(parent)" in file /var/tmp/portage/dev-qt/qtcore-5.15.12-r1/work/qtbase-everywhere-src-5.15.12/src/corelib/itemmodels/qabstractitemmodel.cpp, line 2817

How can I find out which database file (I guess) is causing this assertion, to 'fix' that (i.e. probably delete and have it rebuilt)?

Meanwhile, I'll see to rebuild with debug symbols but with a release-equivalent configuration, i.e. without the assertion(s).

The crash can be reproduced every time.

-- Backtrace:
Application: Subtitle Composer (subtitlecomposer), signal: Aborted

[KCrash Handler]
#4  0x00007f4d78cb0e5c in  () at /lib64/libc.so.6
#5  0x00007f4d78c625e2 in raise () at /lib64/libc.so.6
#6  0x00007f4d78c4b4ed in abort () at /lib64/libc.so.6
#7  0x00007f4d7c491eab in qt_message_fatal (message=<synthetic pointer>..., context=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.15.12-r1/work/qtbase-everywhere-src-5.15.12/src/corelib/global/qlogging.cpp:1919
#8  QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7ffdddfc83f8, msg=msg@entry=0x7f4d7c78b6a8 "ASSERT: \"%s\" in file %s, line %d") at /var/tmp/portage/dev-qt/qtcore-5.15.12-r1/work/qtbase-everywhere-src-5.15.12/src/corelib/global/qlogging.cpp:898
#9  0x00007f4d7c49094a in qt_assert(char const*, char const*, int) (assertion=assertion@entry=0x7f4d7c7a5e44 "last < rowCount(parent)", file=file@entry=0x7f4d7c796ac8 "/var/tmp/portage/dev-qt/qtcore-5.15.12-r1/work/qtbase-everywhere-src-5.15.12/src/corelib/itemmodels/qabstractitemmodel.cpp", line=line@entry=2817) at /var/tmp/portage/dev-qt/qtcore-5.15.12-r1/work/qtbase-everywhere-src-5.15.12/src/corelib/global/qglobal.cpp:3392
#10 0x00007f4d7c4b2c3a in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) (this=0x5611a8dd9800, parent=<optimized out>, first=0, last=0) at /var/tmp/portage/dev-qt/qtcore-5.15.12-r1/work/qtbase-everywhere-src-5.15.12/src/corelib/itemmodels/qabstractitemmodel.cpp:2817
#11 0x00005611a6d545d5 in SubtitleComposer::InstalledScriptsModel::removeAll() (this=0x5611a8dd9800) at /var/tmp/portage/media-video/subtitlecomposer-0.8.0/work/subtitlecomposer-0.8.0/src/scripting/scriptsmanager.cpp:305
#12 SubtitleComposer::ScriptsManager::reloadScripts() (this=0x5611a8f8c1a0) at /var/tmp/portage/media-video/subtitlecomposer-0.8.0/work/subtitlecomposer-0.8.0/src/scripting/scriptsmanager.cpp:711
#13 0x00005611a6c9bf99 in SubtitleComposer::Application::createMainWindow() (this=this@entry=0x7ffdddfc87e0) at /var/tmp/portage/media-video/subtitlecomposer-0.8.0/work/subtitlecomposer-0.8.0/src/application.cpp:280
#14 0x00005611a6c900b2 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/media-video/subtitlecomposer-0.8.0/work/subtitlecomposer-0.8.0/src/main.cpp:183
[Inferior 1 (process 1967481) detached]

Reported using DrKonqi
Comment 1 Joe Breuer 2024-02-14 11:46:11 UTC
I've since replicated my original issue and reported it as bug #481318.

drkonqi did not allow me to directly pick this issue as related; I'm not sure whether there is any causal relation in the first place, or rather this assertion is an unrelated finding that I stumbled across.
Comment 2 Mladen Milinkovic, Max 2024-02-25 14:15:33 UTC
Thanks for the report - fixed with 3baf6132b65f819c1621230a42f67746f992eeb8