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 438446 - Exceptions not handled when saving a file
Exceptions not handled when saving a file
Status: RESOLVED FIXED
Product: gnome-subtitles
Classification: Other
Component: general
0.4
Other All
: High critical
: ---
Assigned To: Maintainers of GNOME subtitles
Maintainers of GNOME subtitles
Depends on:
Blocks:
 
 
Reported: 2007-05-14 21:18 UTC by nagyistv
Modified: 2007-05-16 01:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description nagyistv 2007-05-14 21:18:19 UTC
What were you doing when the application crashed?
I want to save the edited subtitle (.srt).


Distribution: Ubuntu 7.04 (feisty)
Gnome Release: 2.18.1 2007-04-10 (Ubuntu)
BugBuddy Version: 2.18.1

System: Linux 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70200000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Human
Icon Theme: gnome

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



----------- .xsession-errors ---------------------
  at Gnome.Program.Run () [0x00000] 
  at GnomeSubtitles.Global.Run () [0x00000] 
X11 error: BadValue (integer parameter out of range for operation)
MPlayer interrupted by signal 6 in module: flip_page
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
X11 error: BadValue (integer parameter out of range for operation)
MPlayer interrupted by signal 6 in module: uninit_vo
--------------------------------------------------
Gnome Subtitles version: 0.4
SubLib version: 0.6
GtkSharp version: 2.10
GnomeSharp version: 2.16
GladeSharp version: 2.10
GConfSharp version: 2.16

Stack trace:
System.UnauthorizedAccessException: Access to the path "/home/steve/a_titok/The_Secret.srt" is denied.
  at System.IO.FileStream..ctor (System.String name, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] 
  at System.IO.FileStream..ctor (System.String name, FileMode mode, FileAccess access, FileShare share) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at SubLib.FileInputOutput.OpenFileForWriting (System.String fileName, System.Text.Encoding encoding) [0x00000] 
  at SubLib.FileInputOutput.WriteFile (System.String fileName, System.String text, System.Text.Encoding encoding) [0x00000] 
  at SubLib.SubtitleSaver.Save (SubLib.Subtitles subtitles, SubLib.FileProperties properties) [0x00000] 
  at GnomeSubtitles.Document.Save () [0x00000] 
  at GnomeSubtitles.GUI.Save () [0x00000] 
  at GnomeSubtitles.EventHandlers.OnFileSave (System.Object o, System.EventArgs args) [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000] 
  at (wrapper native-to-managed) GLib.Signal:voidObjectCallback (intptr,intptr)
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) Gtk.Application:gtk_main ()
  at Gtk.Application.Run () [0x00000] 
  at Gnome.Program.Run () [0x00000] 
  at GnomeSubtitles.Global.Run () [0x00000]
Comment 1 Pedro Castro 2007-05-14 23:55:23 UTC
The problem is that you're trying to save the file to a path where you don't have the necessary permissions: Access to the path "/home/steve/a_titok/The_Secret.srt" is denied.

But there is still a bug with Gnome Subtitles, in the sense that it should detect these kinds of errors and report an adequate error message.
Comment 2 Pedro Castro 2007-05-16 01:10:04 UTC
Fixed in trunk. Thanks for the report.