After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 587097 - GS crashes when opening subtitles together with a movie
GS crashes when opening subtitles together with a movie
Status: RESOLVED FIXED
Product: gnome-subtitles
Classification: Other
Component: general
latest
Other All
: Urgent critical
: ---
Assigned To: Maintainers of GNOME subtitles
Maintainers of GNOME subtitles
Depends on:
Blocks:
 
 
Reported: 2009-06-26 22:57 UTC by Marcin Zajaczkowski
Modified: 2009-07-12 21:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcin Zajaczkowski 2009-06-26 22:57:30 UTC
Steps to reproduce:
Open some subtitles together with a movie (File->Open with selected Video to open) to see a crash.
When subtitles are opened first and video by Video->Open later it also crashes. Only video opened is loaded correctly.
Unfortunately it's not always reproducible, not for every file.

Stack trace:
[szpak@mszpak build]$ mono ./gnome-subtitles.exe
Got 21 languages.
Got video duration: 00:43:06.8800000
Got video info: width=512, height=384, frame_rate=25
Got video duration: 01:59:25.7600000
Got video info: width=432, height=240, frame_rate=25
Detected encodings: windows-1252
Trying the encoding Windows-1252
Trying to autodetect the subtitle format.
[*] opened /some/path/movie/movie
movie.txt with encoding I18N.West.CP1252 and format Micro DVD
Detected encodings: windows-1252
Trying the encoding Windows-1252
Trying to autodetect the subtitle format.
[*] opened /some/path/movie/movie.txt with encoding I18N.West.CP1252 and format Micro DVD
Got video duration: 01:59:25.7600000

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at GnomeSubtitles.Ui.VideoPreview.Player.get_FrameRate () <0x0001c>
at GnomeSubtitles.Ui.VideoPreview.VideoPosition.UpdateLengthLabel (SubLib.Core.Domain.TimingMode,System.TimeSpan) <0x000bb>
at GnomeSubtitles.Ui.VideoPreview.VideoPosition.SetLength (System.TimeSpan) <0x00042>
at GnomeSubtitles.Ui.VideoPreview.VideoPosition.OnPlayerFoundDuration (System.TimeSpan) <0x00020>
at GnomeSubtitles.Ui.VideoPreview.Player.OnPlaybinFoundTag (GStreamer.TagEventArgs) <0x00105>
at GStreamer.Playbin.onTag (intptr) <0x00054>
at (wrapper native-to-managed) GStreamer.Playbin.onTag (intptr) <0x00048>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x0000a>
at GnomeSubtitles.Execution.ExecutionContext.RunApplication () <0x00027>
at GnomeSubtitles.Core.Base.Run (GnomeSubtitles.Execution.ExecutionContext) <0x00034>
at GnomeSubtitles.Execution.Executable.Main (string[]) <0x0006f>


Other information:
GIT version a0894b4..3ca0361.
Works fine with gnome-subtitles-0.8-7.fc11.
Not tested with 0.9.
Comment 1 Marcin Zajaczkowski 2009-06-26 23:01:17 UTC
gstreamer-0.10.23-2.fc11
i386 architecture
Comment 2 Pedro Castro 2009-06-28 22:07:02 UTC
Thanks for the report, Marcin.

This happens with frame-based subtitles, due to different moments in which the application receives the length and framerate values from GStreamer. 
Comment 3 Pedro Castro 2009-07-12 19:43:20 UTC
Hey there Marcin. Can you please test the latest Git commit? This issue should be fixed.
Comment 4 Marcin Zajaczkowski 2009-07-12 21:18:19 UTC
Hey Pedro :).
I tested it with two movies that previously caused mentioned exception and they currently work fine. So probably you fixed it already.