Gfax keeps crashing right after start

Bug #125003 reported by Master One
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Gfax
Won't Fix
Critical
gfax (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gfax

Fresh Ubuntu 7.04 installation, with Gfax 0.7.6-0ubuntu2 from the official repo.

At first it started normally, and I could setup all the necessary settings for using Hylafax as transport (to be used with a remote HylaFax server in my setup). After the setup was completed, it told me to restart Gfax, and since then it keeps crashing right after start with the following error message (shown when started from a console):

$ gfax

Unhandled Exception: System.ArgumentOutOfRangeException: < 0
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x00000]
  at gfax.Hylafax.get_ip_addr (System.String ipdata) [0x00000]
  at gfax.Hylafax.asyncgetfolder (System.String folder) [0x00000]
  at gfax.Hylafax.asyncstatus (System.String queue) [0x00000]
  at gfax.Fax.async_get_server_status () [0x00000]
  at gfax.Gfax.async_update_status () [0x00000]
  at gfax.Gfax..ctor (System.String fname, System.String[] args) [0x00000]
  at gfax.gfax.Main (System.String[] args) [0x00000]

Revision history for this message
Master One (masterone) wrote :

I just compiled Gfax from source, and unfortunately it results in the same error. This problem only exists, if HylaFax is selected as transport, it seems to be working normally with efax.

Revision history for this message
Alejandro Díaz-Caro (janus) wrote :

I just installed Gfax, and it happens when I try to start it:

janus@mobileqcomp:~$ gfax
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.NullReferenceException: A null value was found where an object instance was required.
  at gfax.Efax+<>c__CompilerGenerated0.<>c__AnonymousMethod1 (System.Object +1, System.EventArgs +2) [0x00000]
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at Gtk.Application+InvokeCB.Invoke () [0x00000]
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_bool ()
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000]

   at GLib.ExceptionManager.RaiseUnhandledException ()
   at GLib.Timeout+TimeoutProxy.Handler ()
   at GLib.Timeout+TimeoutProxy.Handler ()
   at Gtk.Dialog.gtk_dialog_run ()
   at Gtk.Dialog.gtk_dialog_run ()
   at Gtk.Dialog.Run ()
   at gfax.Gfax..ctor ()
   at gfax.gfax.Main ()

Revision history for this message
Alejandro Díaz-Caro (janus) wrote :

Ok, I tried one more time, and it starts

Revision history for this message
Alejandro Díaz-Caro (janus) wrote :

Master One: This issue is still there?

Revision history for this message
Master One (masterone) wrote : Re: [Bug 125003] Re: Gfax keeps crashing right after start

At 10:49 23.02.2008, you wrote:

>Master One: This issue is still there?

I'm not using Ubuntu right now. The problem was still there, the last
time I tried, and it could be fixed by fixing the reverse DNS entry
for the line I was using. A quite weird issue, especially because an
unproper reverse DNS entry should not let an app crash like that.

--
Master One

Changed in gfax:
status: New → Incomplete
Revision history for this message
Andrea Marin (amarin) wrote :

Hi all,

i have the same problem after i update from ubuntu 7.10 to 8.04. I try to remove, reboot and re-install the gfax from apt-get but is the same.

What can i do for help to resolve this bug.

Thanks

Revision history for this message
Andrea Marin (amarin) wrote :

When i run gfax from command line a receive this errors:

Unhandled Exception: System.ArgumentOutOfRangeException: < 0
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x00000]
  at gfax.Hylafax.get_ip_addr (System.String ipdata) [0x00000]
  at gfax.Hylafax.asyncgetfolder (System.String folder) [0x00000]
  at gfax.Hylafax.asyncstatus (System.String queue) [0x00000]
  at gfax.Fax.async_get_server_status () [0x00000]
  at gfax.Gfax.async_update_status () [0x00000]
  at gfax.Gfax..ctor (System.String fname, System.String[] args) [0x00000]
  at gfax.gfax.Main (System.String[] args) [0x00000]

How can i help?

Revision history for this message
Siegfried Gevatter (rainct) wrote :

Is this problem still reproducible?

Revision history for this message
Master One (masterone) wrote :

At 00:03 03.07.2008, you wrote:

>Is this problem still reproducible?

No, problem solved, it had to do with reverse-DNS-entry. I am not
using it any more, so I can not tell any more details about it, sorry.

--

Greetings,
Michael

Revision history for this message
Andrea Marin (amarin) wrote :

No, for me is still reproducible.
When i configure the gfax client for work with hylafax the gfax crash
immediatly

Thanks

Master One wrote:
> At 00:03 03.07.2008, you wrote:
>
>
>> Is this problem still reproducible?
>>
>
> No, problem solved, it had to do with reverse-DNS-entry. I am not
> using it any more, so I can not tell any more details about it, sorry.
>
> --
>
> Greetings,
> Michael
>
>

--
Marin Andrea
m.r. Service S.n.c.
Torino IT

Tel : +39 011 4079611
Cel : +39 329 2506990

web site: http://www.mr-service.it

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

marking as confirmed due to andrea's last comment
by the way, andrea, is this still an issue for you?

Changed in gfax:
status: Incomplete → Confirmed
Revision history for this message
Andrea Marin (amarin) wrote :

Hi Dimitrios,

excuse me for delay in my reply.
No for me is not still an issue because now i change fax server and i'm not using hylafax.

Thanks a lot for all.

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

marking as invalid, due to the last comment.
If you still have this issue with the latest version of gfax, feel free to change the status back to confirmed

Changed in gfax:
status: Confirmed → Invalid
Revision history for this message
Andrea Marin (amarin) wrote :

Hi Dimitrios,

thanks a lot, if i need another time of gfax i check this bug.

Bye Andrea

Dimitrios Symeonidis wrote:
> marking as invalid, due to the last comment.
> If you still have this issue with the latest version of gfax, feel free to change the status back to confirmed
>
> ** Changed in: gfax (Ubuntu)
> Status: Confirmed => Invalid
>
>

--

Andrea Marin

Revision history for this message
Gavin Hamill (gdh) wrote :

Version: 0.7.6-9ubuntu1

This bug is still present in intrepid. Please reopen this bug.

The reason is because the Hylafax server is expecting both a USER and PASS, but gfax is only sending USER followed by a 'PASV' to initiate a file transfer:

220 blahblahblah server (HylaFAX (tm) Version 4.3.1) ready.
USER laterooms
331 Password required for laterooms.
PASV
530 Please login with USER and PASS.

At this point, gfax crashes with Unhandled Exception: System.ArgumentOutOfRangeException: < 0

Even after using gconf-editor to set /apps/gfax/transport/hylafax/password correctly, it still does not send 'PASS spider' after 'USER laterooms'

Changed in gfax (Ubuntu):
status: Invalid → New
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I noticed the version of Ubuntu your using is in End of Life status. More information may be found at: https://wiki.ubuntu.com/Releases As well, the package version your bugging is updated in Lucid. Please update via http://releases.ubuntu.com/lucid/ repost a detailed error report, and update the bug status. Thanks!

Changed in gfax (Ubuntu):
status: New → Incomplete
Revision history for this message
Jim Rorie (jfrorie) wrote :

This is still a problem in Lucid. Same error exactly. It appears to start when you have an invalid hostname for hyla. When the address is correct, then we get the above posted error.

Revision history for this message
Jim Rorie (jfrorie) wrote :

jfrorie@medusa:~$ gfax

Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x00000]
  at gfax.Hylafax.get_ip_addr (System.String ipdata) [0x00000]
  at gfax.Hylafax.asyncgetfolder (System.String folder) [0x00000]
  at gfax.Hylafax.asyncstatus (System.String queue) [0x00000]
  at gfax.Fax.async_get_server_status () [0x00000]
  at gfax.Gfax.async_update_status () [0x00000]
  at gfax.Gfax..ctor (System.String fname, System.String[] args) [0x00000]
  at gfax.gfax.Main (System.String[] args) [0x00000]

Revision history for this message
FiReSTaRT (dlyh) wrote :

I didn't even get to set it up.. Just got the following:
Unhandled Exception: GLib.GException: Icon 'gtk-info' not present in theme
at Gtk.IconTheme.LoadIcon (System.String icon_name, Int32 size, IconLookupFlags flags) [0x00000] in <filename unknown>:0
at gfax.G_ListView.AddColumnIcon (System.String iconname, Int32 col) [0x00000] in <filename unknown>:0
at gfax.Gfax..ctor (System.String fname, System.String[] args) [0x00000] in <filename unknown>:0
at gfax.gfax.Main (System.String[] args) [0x00000] in <filename unknown>:0

Running on Maverick AMD64, fresh system.

Changed in gfax (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Confirmed in Maverick 32-bit, got error message when running gfax from command line.

gfax

Unhandled Exception: System.UnauthorizedAccessException: Access to the path "/var/spool/gfax" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
  at System.IO.DirectoryInfo.Create () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
  at gfax.gfax.Main (System.String[] args) [0x00000] in <filename unknown>:0

lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

apt-cache policy gfax
gfax:
  Installed: 0.7.7+ds-1
  Candidate: 0.7.7+ds-1
  Version table:
 *** 0.7.7+ds-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages
        100 /var/lib/dpkg/status

Changed in gfax:
importance: Unknown → Critical
status: Unknown → New
Revision history for this message
Sebastian Abate (sebastianabate) wrote :

Rusivi2, see this bug for your problem

https://bugs.launchpad.net/ubuntu/+source/gfax/+bug/589748

It helped me solve the same problem you have.

Revision history for this message
FiReSTaRT (dlyh) wrote :

Sebastian,
Running the script did not help me. When I try to run gfax from the CLI, I get the following output:

Unhandled Exception: GLib.GException: Icon 'gtk-info' not present in theme
  at Gtk.IconTheme.LoadIcon (System.String icon_name, Int32 size, IconLookupFlags flags) [0x00000] in <filename unknown>:0
  at gfax.G_ListView.AddColumnIcon (System.String iconname, Int32 col) [0x00000] in <filename unknown>:0
  at gfax.Gfax..ctor (System.String fname, System.String[] args) [0x00000] in <filename unknown>:0
  at gfax.gfax.Main (System.String[] args) [0x00000] in <filename unknown>:0

I am also attaching gfax.txt which is strace output when running it from the CLI, with only my username scrubbed out and replaced with "username"

Revision history for this message
gian (glsarto) wrote :

Ubuntu 10.4 LTS 64bit here.

gian@hp-gls:~$ gfax
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.NullReferenceException: Object reference not set to an instance of an object
  at gfax.G_ListView.DateTimeColumnDataHandler (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, TreeIter iter) [0x00000]
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GtkSharp.TreeCellDataFuncWrapper.NativeCallback(IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data)
   at Gtk.ListStore.gtk_list_store_append(IntPtr , IntPtr )
   at Gtk.ListStore.Append()
   at Gtk.ListStore.AppendValues(System.Array values)
   at Gtk.ListStore.AppendValues(System.Object[] values)
   at gfax.G_ListView.AddTextToRow(System.Object[] args)
   at gfax.Gfax..ctor(System.String fname, System.String[] args)
   at gfax.gfax.Main(System.String[] args)

Is there a workaround?!
Thanks for reading, regards
-Gian

Revision history for this message
gian (glsarto) wrote :

Ubuntu Lucid 10.4 LTS here.

gian@hp-gls:~$ gfax
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.NullReferenceException: Object reference not set to an instance of an object
  at gfax.G_ListView.DateTimeColumnDataHandler (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, TreeIter iter) [0x00000]
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GtkSharp.TreeCellDataFuncWrapper.NativeCallback(IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data)
   at Gtk.ListStore.gtk_list_store_append(IntPtr , IntPtr )
   at Gtk.ListStore.Append()
   at Gtk.ListStore.AppendValues(System.Array values)
   at Gtk.ListStore.AppendValues(System.Object[] values)
   at gfax.G_ListView.AddTextToRow(System.Object[] args)
   at gfax.Gfax..ctor(System.String fname, System.String[] args)
   at gfax.gfax.Main(System.String[] args)

Is there a workaround?!

Changed in gfax:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.