Bug 485596 - Crashing after a short while unless Waveform pane is disabled
Summary: Crashing after a short while unless Waveform pane is disabled
Status: RESOLVED FIXED
Alias: None
Product: subtitlecomposer
Classification: Applications
Component: general (show other bugs)
Version: 0.8.0
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Mladen Milinkovic, Max
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-15 15:12 UTC by Sadi
Modified: 2024-12-20 23:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sadi 2024-04-15 15:12:16 UTC
SUMMARY
If I start to edit a subtitle file Subtitle Composer crashes when I move forward by scrolling in the "Media player" pane or by clicking on different lines of the subtitle file in the main pane.

However, it doesn't crash if the application is used without enabling the "Waveform", and sufficing to hear the audio simply from the "Media player" pane.

SOFTWARE/OS VERSIONS
Operating System: Debian 13 (Trixie/testing branch)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION: Terminal output is provided below.

 Loaded SpeechPlugin "PocketSphinx" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/pocketsphinxasr.so"
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2889, resource id: 15094468, major code: 40 (TranslateCoords), minor code: 0
Input #0, srt, from '<MySubtitleFile>.srt':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Subtitle: subrip
[AVIOContext @ 0x55914515cc80] Statistics: 58739 bytes read, 0 seeks
Input #0, matroska,webm, from '<MyVideoFile>.webm':
  Metadata:
    ENCODER         : Lavf60.3.100
  Duration: 01:55:10.37, start: 0.000000, bitrate: 309 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 0), 1 reference frame, yuv420p(tv, smpte170m/bt470bg/bt709), 576x360, SAR 1:1 DAR 8:5, 25 fps, 25 tbr, 1k tbn (default)
    Metadata:
      DURATION        : 01:55:10.320000000
  Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp, delay 312 (default)
    Metadata:
      DURATION        : 01:55:10.368000000
[W][25724.400560] pw.conf      | [          conf.c: 1016 try_load_conf()] can't load config client-rt.conf: No such file or directory
[E][25724.400637] pw.conf      | [          conf.c: 1045 pw_conf_load_conf_for_context()] can't load config client-rt.conf: No such file or directory
[ALSOFT] (EE) Failed to create PipeWire event context (errno: 2)
GL API: OpenGL Desktop 4.6 (compiled for OpenGL Desktop)
OpenGL version: 4.6 (Compatibility Profile) Mesa 23.3.5-1
GLSL version: 4.60
Input #0, matroska,webm, from '<MyVideoFile>.webm':
  Metadata:
    ENCODER         : Lavf60.3.100
  Duration: 01:55:10.37, start: 0.000000, bitrate: 309 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 0), 1 reference frame, yuv420p(tv, smpte170m/bt470bg/bt709), 576x360, SAR 1:1 DAR 8:5, 25 fps, 25 tbr, 1k tbn (default)
    Metadata:
      DURATION        : 01:55:10.320000000
  Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp, delay 312 (default)
    Metadata:
      DURATION        : 01:55:10.368000000
[opus @ 0x559145016f80] Could not update timestamps for skipped samples.
Color range: tv(1); primaries: bt470bg(5); xfer: bt709(1); space: smpte170m(6); depth: 8
30 -- exe=/usr/bin/subtitlecomposer
13 -- platform=xcb
11 -- display=:0
25 -- appname=subtitlecomposer
17 -- apppath=/usr/bin
10 -- signal=11
10 -- pid=37317
17 -- appversion=0.8.0
30 -- programname=Subtitle Composer
31 -- bugaddress=submit@bugs.kde.org
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = subtitlecomposer path = /usr/bin pid = 37317
KCrash: Arguments: /usr/bin/subtitlecomposer 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
Error reading packet Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
Invalid write to eventfd: Bad file descriptor
Code should not be reached at ../src/pulsecore/fdsem.c:188, function pa_fdsem_post(). Aborting.
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
[1]    37317 IOT instruction (core dumped)
Comment 1 Mladen Milinkovic, Max 2024-04-16 08:47:22 UTC
I believe this was fixed with commit 0f99f801.
Can you confirm it works for you with latest git development version from here: https://subtitlecomposer.kde.org/download.html
Comment 2 Sadi 2024-04-17 09:05:00 UTC
(In reply to Mladen Milinkovic, Max from comment #1)
Thanks; it seems you're right.
I've just tested the appimages at "https://subtitlecomposer.kde.org/download.html". The stable version had the same problem, but the latest git development version worked without any such problem.