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 608631 - Crash when using video files with special characters
Crash when using video files with special characters
Status: RESOLVED FIXED
Product: gnome-subtitles
Classification: Other
Component: general
0.9.1
Other All
: Normal critical
: ---
Assigned To: Maintainers of GNOME subtitles
Maintainers of GNOME subtitles
Depends on:
Blocks:
 
 
Reported: 2010-01-31 21:06 UTC by keenriser
Modified: 2010-01-31 23:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description keenriser 2010-01-31 21:06:16 UTC
What were you doing when the application crashed?
Opening an .srt file, probably the failure is related to the file having a ':' in the file name.


Distribution: Ubuntu 9.10 (karmic)
Gnome Release: 2.28.1 2009-11-03 (Ubuntu)
BugBuddy Version: 2.28.0

System: Linux 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10604000
Selinux: No
Accessibility: Disabled
GTK+ Theme: New Wave
Icon Theme: Human
GTK+ Modules: canberra-gtk-module

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0

Gnome Subtitles version: 0.9.1
GtkSharp version: 2.12
GladeSharp version: 2.12
GConfSharp version: 2.24

Stack trace:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UriFormatException: URI scheme must start with a letter and must consist of one of alphabet, digits, '+', '-' or '.' character.
  at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] 
  at System.Uri.ParseUri (UriKind kind) [0x00000] 
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] 
  at System.Uri..ctor (System.String uriString) [0x00000] 
  at GnomeSubtitles.Dialog.FileOpenDialog.ProcessResponse (ResponseType response) [0x00000] 
  at GnomeSubtitles.Dialog.BaseDialog.OnResponse (System.Object o, Gtk.ResponseArgs args) [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] 

----------- .xsession-errors ---------------------
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] 
  at System.Uri..ctor (System.String uriString) [0x00000] 
  at GnomeSubtitles.Dialog.FileOpenDialog.ProcessResponse (ResponseType response) [0x00000] 
  at GnomeSubtitles.Dialog.BaseDialog.OnResponse (System.Object o, Gtk.ResponseArgs args) [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] 
--------------------------------------------------
Comment 1 keenriser 2010-01-31 22:03:55 UTC
I can constantly reproduce this by using the file name: "Andrea_Ghez:_The_hunt_for_a_supermassive_black_hole.srt" in /home/user/video/

If I remove any of the letters (for example: black_hol.srt) everything is fine, so it must have something to do with the file name and not the content.
Comment 2 Pedro Castro 2010-01-31 23:03:44 UTC
Thanks for the report. Like you mentioned, characters like ":" weren't being handled properly.

This problem has been fixed in the development version and will be available in the next major software release.