maxrd2 / SubtitleComposer

Subtitle Composer - KF5/Qt Video Subtitle Editor
Other
238 stars 29 forks source link

Saving subtitle to different name or encoding does not work #156

Closed duck7000 closed 4 years ago

duck7000 commented 4 years ago

When i open a subtitle without a corresponding movie in de same directory saving works fine.

But when i open a subtitle with a corresponding movie in de same directory saving to a different name or with a different encoding does not work. If i choose save as default utf8 and want to overwrite the existing file the program crashes and does not respond any more. If i choose save as default utf8 and save as a different filename it sometimes works but usually not at all, the program just shuts down.

I use gstreamer as player backend and the latest git version of SC

maxrd2 commented 4 years ago

I can't reproduce this. Could you provide stack trace when app crashes? Please start it like this:

gdb /usr/bin/subtitlecomposer
run
# make it crash
bt
duck7000 commented 4 years ago

Strange that you can't re-produce this, with gdb it also crashes and here is the output from the terminal:

:~$ gdb /usr/bin/subtitlecomposer
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/subtitlecomposer...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/subtitlecomposer 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd4c7f700 (LWP 5477)]
qt5ct: using qt5ct plugin
[New Thread 0x7fffce1db700 (LWP 5478)]
Loaded PlayerBackend "GStreamer" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/gstplayer.so"
Loaded PlayerBackend "MPlayer" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/mplayer.so"
Loaded PlayerBackend "Phonon" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/phononplayer.so"
Loaded PlayerBackend "Xine" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/xineplayer.so"
[New Thread 0x7fffc3782700 (LWP 5480)]
qt5ct: D-Bus global menu: no
Loaded SpeechPlugin "PocketSphinx" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/pocketsphinxasr.so"
[New Thread 0x7fffbb5c6700 (LWP 5481)]
KROSS interpreters: ("qtscript")
[New Thread 0x7fffba5ae700 (LWP 5483)]
Input #0, srt, from '/mnt/DATA/Subtitle-projects/Movies/Repo.Man.1984.1080p.BluRay.srt':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Subtitle: subrip
[AVIOContext @ 0x555556423f40] Statistics: 61315 bytes read, 0 seeks
[New Thread 0x7fffb3fff700 (LWP 5487)]
[Thread 0x7fffb3fff700 (LWP 5487) exited]
[New Thread 0x7fffb3fff700 (LWP 5488)]
[New Thread 0x7fffb1624700 (LWP 5489)]
[New Thread 0x7fff97fff700 (LWP 5490)]
[New Thread 0x7fff977fe700 (LWP 5491)]
[New Thread 0x7fff96ffd700 (LWP 5492)]
[New Thread 0x7fff967fc700 (LWP 5493)]
[New Thread 0x7fff95ffb700 (LWP 5494)]
Stream with high frequencies VQ coding
[New Thread 0x7fff94ece700 (LWP 5495)]
[New Thread 0x7fff7bdbc700 (LWP 5496)]
[New Thread 0x7fff7b3b3700 (LWP 5497)]
[New Thread 0x7fff7abb2700 (LWP 5498)]
[Thread 0x7fffba5ae700 (LWP 5483) exited]
"message state-changed from playbin: old:STATE_NULL | current:STATE_READY | target:STATE_PLAYING"
"message stream-start from playbin: GstMessageStreamStart, group-id=(uint)2;"
"message state-changed from playbin: old:STATE_READY | current:STATE_PAUSED | target:STATE_PLAYING"
[h264 @ 0x5555563eb100] Reinit context to 1920x1088, pix_fmt: yuv420p
[matroska,webm @ 0x55555625e640] Stream #3: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x55555625e640] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/mnt/DATA/Subtitle-projects/Movies/Repo.Man.1984.1080p.BluRay.mkv':
  Metadata:
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2019-10-27T09:48:50.000000Z
  Duration: 01:32:09.78, start: 0.000000, bitrate: 34967 kb/s
    Chapter #0:0: start 0,000000, end 141,391250
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 141,391250, end 266,015750
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 266,015750, end 494,285458
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 494,285458, end 979,436792
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 979,436792, end 1297,754792
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1297,754792, end 1575,448875
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1575,448875, end 1982,021708
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1982,021708, end 2521,977792
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2521,977792, end 2899,563333
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2899,563333, end 3176,548375
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3176,548375, end 3761,382625
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3761,382625, end 4254,833917
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4254,833917, end 4975,053417
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4975,053417, end 5529,749333
    Metadata:
      title           : Chapter 14
    Stream #0:0(eng): Video: h264 (High), 1 reference frame, yuv420p(tv, bt709, progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 23,98 fps, 23,98 tbr, 1k tbn, 47,95 tbc
    Metadata:
      BPS-eng         : 34139350
      DURATION-eng    : 01:32:09.733000000
      NUMBER_OF_FRAMES-eng: 132581
      NUMBER_OF_BYTES-eng: 23597686604
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-27 09:48:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, stereo, s16p (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 812318
      DURATION-eng    : 01:32:09.782000000
      NUMBER_OF_FRAMES-eng: 518417
      NUMBER_OF_BYTES-eng: 561492788
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-27 09:48:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 41540
      DURATION-eng    : 01:29:05.632000000
      NUMBER_OF_FRAMES-eng: 2550
      NUMBER_OF_BYTES-eng: 27757515
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-27 09:48:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3: Video: mjpeg, 1 reference frame, yuvj444p(pc, bt470bg/unknown/unknown, center), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[New Thread 0x7fffba5ae700 (LWP 5499)]
"message async-done from playbin: GstMessageAsyncDone, running-time=(guint64)18446744073709551615;"
"message new-clock from playbin: GstMessageNewClock, clock=(GstClock)\"\\(GstAudioClock\\)\\ GstPulseSinkClock\";"
"message state-changed from playbin: old:STATE_PAUSED | current:STATE_PLAYING | target:STATE_VOID_PENDING"
WaveformWidget::onStreamData() stream is offset by -2ms (-16 bytes/channel) @ 0ms
QXcbConnection: XCB error: 8 (BadMatch), sequence: 7337, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 7352, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 7355, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 7386, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 7398, resource id: 100663457, major code: 130 (Unknown), minor code: 3
[Thread 0x7fff7abb2700 (LWP 5498) exited]
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35056, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35077, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35080, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35113, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35156, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35200, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35243, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35286, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 35340, resource id: 100663457, major code: 130 (Unknown), minor code: 3
[Thread 0x7fff94ece700 (LWP 5495) exited]
[Thread 0x7fffb3fff700 (LWP 5488) exited]
"message state-changed from playbin: old:STATE_PLAYING | current:STATE_PAUSED | target:STATE_READY"
"message state-changed from playbin: old:STATE_PAUSED | current:STATE_READY | target:STATE_VOID_PENDING"
QXcbConnection: XCB error: 8 (BadMatch), sequence: 38690, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 38711, resource id: 100663457, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 38714, resource id: 100663457, major code: 130 (Unknown), minor code: 3
[Thread 0x7fff7bdbc700 (LWP 5496) exited]
[Thread 0x7fff96ffd700 (LWP 5492) exited]
[Thread 0x7fff95ffb700 (LWP 5494) exited]
[Thread 0x7fff967fc700 (LWP 5493) exited]
[Thread 0x7fff977fe700 (LWP 5491) exited]
[Thread 0x7fff97fff700 (LWP 5490) exited]
[Thread 0x7fffb1624700 (LWP 5489) exited]
[Thread 0x7fff7b3b3700 (LWP 5497) exited]
[AVIOContext @ 0x5555563f4d00] Statistics: 24170395771 bytes read, 3 seeks
[Thread 0x7fffba5ae700 (LWP 5499) exited]
[New Thread 0x7fffba5ae700 (LWP 5517)]

Thread 1 "subtitlecompose" received signal SIGSEGV, Segmentation fault.
rand_r (seed=0x6800555556363570) at rand_r.c:31
31  rand_r.c: No such file or directory.
(gdb) bt
#0  0x00007ffff10cd3b0 in rand_r (seed=0x6800555556363570) at rand_r.c:31
#1  0x00007ffff1d656c5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff1d6e89d in QSaveFile::open(QFlags<QIODevice::OpenModeFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00005555555ddf8f in  ()
#4  0x00005555555c30f2 in  ()
#5  0x00005555556436b8 in  ()
#6  0x00005555556432d8 in  ()
#7  0x00007ffff1e5a75f in QMetaObject::activate(QObject*, int, int, void**) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00005555556615ef in  ()
#9  0x0000555555609608 in  ()
#10 0x00007ffff1e5a75f in QMetaObject::activate(QObject*, int, int, void**) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff2e35122 in QAction::triggered(bool) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff2e3780c in QAction::activate(QAction::ActionEvent) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff2fb40fc in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff2fbb5ab in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff2fbc3d3 in QMenu::mouseReleaseEvent(QMouseEvent*) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff2e7a048 in QWidget::event(QEvent*) ()
---Type <return> to continue, or q <return> to quit---Quit
(gdb) 

SC does not respond anymore after this and it happens while saving as default utf8 while saving as a different name.

Do you want another trace with saving and overriding the same name as well?
duck7000 commented 4 years ago

Well here is it anyway, this time i saved as default utf8 while overriding the existing name. The program does not respond any more. I cleared the terminal screen first and started gdb again to start a clean trace

:~$ gdb /usr/bin/subtitlecomposer
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/subtitlecomposer...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/subtitlecomposer 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd4c7f700 (LWP 5558)]
qt5ct: using qt5ct plugin
[New Thread 0x7fffce1db700 (LWP 5559)]
Loaded PlayerBackend "GStreamer" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/gstplayer.so"
Loaded PlayerBackend "MPlayer" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/mplayer.so"
Loaded PlayerBackend "Phonon" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/phononplayer.so"
Loaded PlayerBackend "Xine" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/xineplayer.so"
[New Thread 0x7fffc3782700 (LWP 5560)]
qt5ct: D-Bus global menu: no
Loaded SpeechPlugin "PocketSphinx" from "/usr/lib/x86_64-linux-gnu/subtitlecomposer/pocketsphinxasr.so"
[New Thread 0x7fffbb5c6700 (LWP 5561)]
KROSS interpreters: ("qtscript")
[New Thread 0x7fffba2d4700 (LWP 5562)]
Input #0, srt, from '/mnt/DATA/Subtitle-projects/Movies/Repo.Man.1984.1080p.BluRay.srt':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Subtitle: subrip
[AVIOContext @ 0x55555644f8c0] Statistics: 61315 bytes read, 0 seeks
[New Thread 0x7fffb3fff700 (LWP 5563)]
[Thread 0x7fffb3fff700 (LWP 5563) exited]
[New Thread 0x7fffb3fff700 (LWP 5564)]
[New Thread 0x7fffb12c6700 (LWP 5565)]
[New Thread 0x7fff97fff700 (LWP 5566)]
[New Thread 0x7fff977fe700 (LWP 5567)]
[New Thread 0x7fff96ffd700 (LWP 5568)]
[New Thread 0x7fff967fc700 (LWP 5569)]
[New Thread 0x7fff95dda700 (LWP 5570)]
Stream with high frequencies VQ coding
[New Thread 0x7fff94c27700 (LWP 5571)]
[New Thread 0x7fff7bbb3700 (LWP 5572)]
[New Thread 0x7fff7b1aa700 (LWP 5573)]
[New Thread 0x7fff7a6a9700 (LWP 5574)]
[Thread 0x7fffba2d4700 (LWP 5562) exited]
"message state-changed from playbin: old:STATE_NULL | current:STATE_READY | target:STATE_PLAYING"
"message stream-start from playbin: GstMessageStreamStart, group-id=(uint)2;"
"message state-changed from playbin: old:STATE_READY | current:STATE_PAUSED | target:STATE_PLAYING"
[h264 @ 0x555556641600] Reinit context to 1920x1088, pix_fmt: yuv420p
[matroska,webm @ 0x5555563f5ac0] Stream #3: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x5555563f5ac0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/mnt/DATA/Subtitle-projects/Movies/Repo.Man.1984.1080p.BluRay.mkv':
  Metadata:
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2019-10-27T09:48:50.000000Z
  Duration: 01:32:09.78, start: 0.000000, bitrate: 34967 kb/s
    Chapter #0:0: start 0,000000, end 141,391250
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 141,391250, end 266,015750
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 266,015750, end 494,285458
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 494,285458, end 979,436792
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 979,436792, end 1297,754792
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1297,754792, end 1575,448875
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1575,448875, end 1982,021708
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1982,021708, end 2521,977792
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2521,977792, end 2899,563333
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2899,563333, end 3176,548375
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3176,548375, end 3761,382625
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3761,382625, end 4254,833917
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4254,833917, end 4975,053417
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4975,053417, end 5529,749333
    Metadata:
      title           : Chapter 14
    Stream #0:0(eng): Video: h264 (High), 1 reference frame, yuv420p(tv, bt709, progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 23,98 fps, 23,98 tbr, 1k tbn, 47,95 tbc
    Metadata:
      BPS-eng         : 34139350
      DURATION-eng    : 01:32:09.733000000
      NUMBER_OF_FRAMES-eng: 132581
      NUMBER_OF_BYTES-eng: 23597686604
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-27 09:48:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, stereo, s16p (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 812318
      DURATION-eng    : 01:32:09.782000000
      NUMBER_OF_FRAMES-eng: 518417
      NUMBER_OF_BYTES-eng: 561492788
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-27 09:48:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 41540
      DURATION-eng    : 01:29:05.632000000
      NUMBER_OF_FRAMES-eng: 2550
      NUMBER_OF_BYTES-eng: 27757515
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-27 09:48:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3: Video: mjpeg, 1 reference frame, yuvj444p(pc, bt470bg/unknown/unknown, center), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[New Thread 0x7fffba2d4700 (LWP 5575)]
"message async-done from playbin: GstMessageAsyncDone, running-time=(guint64)18446744073709551615;"
"message new-clock from playbin: GstMessageNewClock, clock=(GstClock)\"\\(GstAudioClock\\)\\ GstPulseSinkClock\";"
"message state-changed from playbin: old:STATE_PAUSED | current:STATE_PLAYING | target:STATE_VOID_PENDING"
WaveformWidget::onStreamData() stream is offset by -2ms (-16 bytes/channel) @ 0ms
[Thread 0x7fff7a6a9700 (LWP 5574) exited]
QXcbConnection: XCB error: 8 (BadMatch), sequence: 28002, resource id: 69206177, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 28017, resource id: 69206177, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 28020, resource id: 69206177, major code: 130 (Unknown), minor code: 3
[Thread 0x7fff94c27700 (LWP 5571) exited]
[Thread 0x7fffb3fff700 (LWP 5564) exited]
"message state-changed from playbin: old:STATE_PLAYING | current:STATE_PAUSED | target:STATE_READY"
"message state-changed from playbin: old:STATE_PAUSED | current:STATE_READY | target:STATE_VOID_PENDING"
QXcbConnection: XCB error: 8 (BadMatch), sequence: 29613, resource id: 69206177, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 29634, resource id: 69206177, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 29637, resource id: 69206177, major code: 130 (Unknown), minor code: 3
[Thread 0x7fff7bbb3700 (LWP 5572) exited]
[Thread 0x7fff96ffd700 (LWP 5568) exited]
[Thread 0x7fff977fe700 (LWP 5567) exited]
[Thread 0x7fffb12c6700 (LWP 5565) exited]
[Thread 0x7fff97fff700 (LWP 5566) exited]
[Thread 0x7fff95dda700 (LWP 5570) exited]
[Thread 0x7fff967fc700 (LWP 5569) exited]
[Thread 0x7fff7b1aa700 (LWP 5573) exited]
[AVIOContext @ 0x5555563ee100] Statistics: 24170395771 bytes read, 3 seeks
[Thread 0x7fffba2d4700 (LWP 5575) exited]
[New Thread 0x7fffba2d4700 (LWP 5583)]
corrupted double-linked list

Thread 1 "subtitlecompose" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff10c7e97 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff10c9801 in __GI_abort () at abort.c:79
(gdb) 
maxrd2 commented 4 years ago

Traces here are pretty useless as there are no debug symbols. Could you please try reproducing it with AppImage and pasting bt of that?

duck7000 commented 4 years ago

Sure, i'll try

duck7000 commented 4 years ago

when i use gdb in terminal on the appimage this line came up, same as with the normal version: Reading symbols from Subtitle_Composer-x86_64.AppImage...(no debugging symbols found)...done.

Should i continue the trace?

duck7000 commented 4 years ago

That's not working so well, the subtitle opens but no video, tried to change player and SC crashes

:~$ gdb Subtitle_Composer-x86_64.AppImage
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from Subtitle_Composer-x86_64.AppImage...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/ed/Subtitle_Composer-x86_64.AppImage 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 8320 is executing new program: /bin/dash
process 8320 is executing new program: /tmp/.mount_SubtitDhboQz/usr/bin/subtitlecomposer
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe6d33700 (LWP 8330)]
Loaded PlayerBackend "MPlayer" from "/tmp/.mount_SubtitDhboQz/usr/lib/subtitlecomposer/mplayer.so"
Loaded PlayerBackend "MPV" from "/tmp/.mount_SubtitDhboQz/usr/lib/subtitlecomposer/mpvplayer.so"
[New Thread 0x7fffdc11c700 (LWP 8331)]
Failed to initialize a player backend
Loaded SpeechPlugin "PocketSphinx" from "/tmp/.mount_SubtitDhboQz/usr/lib/subtitlecomposer/pocketsphinxasr.so"
[New Thread 0x7fffd2d20700 (LWP 8332)]
KROSS interpreters: ("python", "qtscript")
[New Thread 0x7fffd1338700 (LWP 8335)]
[Thread 0x7fffd1338700 (LWP 8335) exited]
[New Thread 0x7fffd1338700 (LWP 8337)]
Non-native QFileDialog supports only local files
[Thread 0x7fffd1338700 (LWP 8337) exited]
sonnet.core: Sonnet: No speller backends available!
sonnet.core: No language dictionaries for the language: "nl_NL"

Thread 1 "subtitlecompose" received signal SIGSEGV, Segmentation fault.
0x0000000000489297 in SubtitleComposer::ConfigDialog::ConfigDialog(QWidget*, QString const&, KCoreConfigSkeleton*) ()
(gdb) 
duck7000 commented 4 years ago

Tried again with no subtitle loaded, tried to change backend player but the config window doesn't even open and SC crashes again.

I tried running the SC appimage without gdb on the terminal, when i click on the settings menu it crashes and shutsdown. this is the terminal output:

:~$ ./Subtitle_Composer-x86_64.AppImage
Loaded PlayerBackend "MPlayer" from "/tmp/.mount_SubtitoX6Vcm/usr/lib/subtitlecomposer/mplayer.so"
Loaded PlayerBackend "MPV" from "/tmp/.mount_SubtitoX6Vcm/usr/lib/subtitlecomposer/mpvplayer.so"
Failed to initialize a player backend
Loaded SpeechPlugin "PocketSphinx" from "/tmp/.mount_SubtitoX6Vcm/usr/lib/subtitlecomposer/pocketsphinxasr.so"
KROSS interpreters: ("python", "qtscript")
sonnet.core: Sonnet: No speller backends available!
sonnet.core: No language dictionaries for the language: "nl_NL"
Segmentation fault (core dumped)
duck7000 commented 4 years ago

I tried to save a single subtitle today and this doesn't work either, So saving as a different encoding or overwrite a existing name does not work and SC crashes, does not respond any more or shuts down after clicking save button.

Could it be specific to my system? I use Linuxmint 19.1

maxrd2 commented 4 years ago

I cannot reproduce any of these issues. Recently file dialogs have been switched from custom kf5 dialogs to qt5 native dialogs. Is open/save working fine in other qt5 applications?

duck7000 commented 4 years ago

mm that could explain why ctrl-s works fine?

other qt5 applications works fine as far as tested

Correction: I use linuxmint 19.2

But there are some segfaults in the output, that has to mean something?

maxrd2 commented 4 years ago

Segfaults in the output?

duck7000 commented 4 years ago

I mean In the above terminal outputs from the trace logs

In my view there are issues in those logs:

Segmentation fault (core dumped)
Failed to initialize a player backend
Thread 1 "subtitlecompose" received signal SIGSEGV, Segmentation fault.
Thread 1 "subtitlecompose" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
maxrd2 commented 4 years ago

"Failed to initialize a player backend" is most likely caused by active video player backend (MPV/GStreamer) being unable to initialize GPU or something similar.

duck7000 commented 4 years ago

I tested SC on a different computer with a fresh linuxmint 19.2 with updates until today. Installed the latest git version through ppa

Loaded a subtitle but the video from this subtitle doesn't load, the terminal log states failed to initialized player backend.

I tried to make a new subtitle with a few lines and saved as default utf8, SC just shutsdown..

Interesting is this (i started SC on the terminal):

Non-native QFileDialog supports only local files
QFileInfo::absolutepath: contstructed with empty filename
Segmentation Fault (core dumped)

So there is absolutely something wrong, but apparently this is only a problem with Linuxmint (and maybe Ubuntu)?

On the computer where i test the above the settingswindow crashed SC, just like the appimage but on my normal computer the settings window does work normally..

I don't understand it anymore..

Edit: This might be of interest, it happened when saving a subtitle in the home directory with a different name. This time the sub is actually saved but SC does not respond anymore with this terminal output: malloc(): smallbin double linked list corrupted

duck7000 commented 4 years ago

I tested this issue on a fresh installed manjaro 18.1 KDE (installed the git version through AUR) and that works fine, no issues

So something has to be changed on Linuxmint/Ubuntu?

maxrd2 commented 4 years ago

Had to install linux mint to reproduce this. Should be fixed now. Thanks for report... feel free to reopen if all crashes are not gone.

duck7000 commented 4 years ago

Thanks for the fixes!

I'll test it as soon as the git version is build to a new deb file, lot easier and quicker than building it myself.

Edit: Is it possible for you to test future changes on Arch and Ubuntu based (and possibly others) distro's before releasing? in this particularly case that could have been a help. Just a thought. Maybe a test branch that is building at launchpad.net just like the git version?

I'm also willing to help with testing.

maxrd2 commented 4 years ago

The master branch is kind of a test version. I don't push knowingly broken/incomplete changes I use separate branches for that. Once no one submits bug reports for awhile and I don't notice any issues I tag the stable release.

AppImages are built from every commit on master branch and from every tagged release. Same thing is done with arch and ubuntu packages. Also windows version is built from same branches (although I don't have means on testing it properly).

duck7000 commented 4 years ago

I have tested the fixes and can confirm that it is fixed!

The save as menu is changed back to the old style i see, works fine without any crashes, thanks!

But is it possible to make the save as dialog to standard utf-8 encoding? maybe with a setting in the config like default save encoding? There is a setting called default subtitle encoding but i'm not really sure what this do?

maxrd2 commented 4 years ago

No.. save menu is not changed back. What version are you using? There is already setting for default subtitle encoding and is the one that is shown on save as popup menu.

duck7000 commented 4 years ago

Oh okay.. i use the git -stable version, but i used to use the git version . The git version has a failed build status for amd64 so i used the git-stable version. Apparently they are different?, i didn't know that and is somewhat confusing because there are four download links..

duck7000 commented 4 years ago

What is the difference between the git-stable version and the git version? The git-stable version is build about 21/2 hour ago so i assumed that your fixes would have been in there, but that is apparently not the case i guess?

duck7000 commented 4 years ago

I installed the latest git version, that one includes your fixes apparently because it works fine!

Thanks!

Can you change the second last ubuntu download link name to subtitlecomposer-git-stable? That makes it easier to see the difference. And maybe a little description what the difference is between all four download links?

maxrd2 commented 4 years ago

Am reorganizing and renaming ubuntu repositories, as names are not too obvious. subtitlecomposer-git-stable doesn't have anything to do with git and latest fixes... it always builds the same version which is 0.7.0 tag that was released months ago.

duck7000 commented 4 years ago

Ah clear enough, thanks

duck7000 commented 4 years ago

When i start the latest version with the latest fixes on the terminal this errors shows up:

QXcbConnection: XCB error: 8 (BadMatch), sequence: 3249, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 3264, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 3267, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 3286, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 4339, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 4360, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 4363, resource id: 85983393, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 4389, resource id: 85983393, major code: 130 (Unknown), minor code: 3

Is that something to fix or is it not a problem? Just a thought

maxrd2 commented 4 years ago

it's normal...