Segfault on start

Bug #138280 reported by Pavel Mlčoch on 2007-09-08
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnomescan (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gnomescan

I dont have any scanner, only TV-card. When I start I get this output.

pavka@pavka:~$ flegita
(flegita:31750): GnomeScan-DEBUG: gnomescan 0.4.1
(flegita:31750): GnomeScan-DEBUG: sane_init(0xbf8e9308, NULL)
(flegita:31750): GnomeScan-DEBUG: SANE Version = 1.0.18
(flegita:31750): GnomeScan-DEBUG: sane_get_devices (0xbf8e92f8, FALSE)
(flegita:31750): GnomeScan-DEBUG: Creating unknown Scanner Noname BT878 video (Leadtek WinFast 20 (v4l:/dev/video0)
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 15
(flegita:31750): GnomeScan-DEBUG: Creating option mode(2) 'Scan mode'
(flegita:31750): GnomeScan-DEBUG: type = gchararray
(flegita:31750): GnomeScan-DEBUG: value = "Gray"
(flegita:31750): GnomeScan-DEBUG: flags = { enumeration }
(flegita:31750): GnomeScan-DEBUG: enum = { Gray Color }
(flegita:31750): GnomeScan-DEBUG: unit = mm
(flegita:31750): GnomeScan-DEBUG: Creating option channel(3) 'Channel'
(flegita:31750): GnomeScan-DEBUG: type = gchararray
(flegita:31750): GnomeScan-DEBUG: value = "Television"
(flegita:31750): GnomeScan-DEBUG: flags = { enumeration }
(flegita:31750): GnomeScan-DEBUG: enum = { Television Composite1 S-Video Composite3 }
(flegita:31750): GnomeScan-DEBUG: unit = mm
(flegita:31750): GnomeScan-DEBUG: Creating option tl-x(5) 'Top-left x'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 0
(flegita:31750): GnomeScan-DEBUG: flags = { inactive range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 719,000000] step = 1,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option tl-y(6) 'Top-left y'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 0
(flegita:31750): GnomeScan-DEBUG: flags = { inactive range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 479,000000] step = 1,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option br-x(7) 'Bottom-right x'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 0
(flegita:31750): GnomeScan-DEBUG: flags = { inactive range }
(flegita:31750): GnomeScan-DEBUG: range = [48,000000 ; 767,000000] step = 1,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option br-y(8) 'Bottom-right y'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 0
(flegita:31750): GnomeScan-DEBUG: flags = { inactive range }
(flegita:31750): GnomeScan-DEBUG: range = [32,000000 ; 511,000000] step = 1,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option brightness(10) 'Brightness'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 128
(flegita:31750): GnomeScan-DEBUG: flags = { range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 255,000000] step = 0,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option hue(11) 'Hue'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 128
(flegita:31750): GnomeScan-DEBUG: flags = { range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 255,000000] step = 0,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option color(12) 'Picture color'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 128
(flegita:31750): GnomeScan-DEBUG: flags = { range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 255,000000] step = 0,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option contrast(13) 'Contrast'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 128
(flegita:31750): GnomeScan-DEBUG: flags = { range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 255,000000] step = 0,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Creating option white-level(14) 'White level'
(flegita:31750): GnomeScan-DEBUG: type = gint
(flegita:31750): GnomeScan-DEBUG: value = 0
(flegita:31750): GnomeScan-DEBUG: flags = { range }
(flegita:31750): GnomeScan-DEBUG: range = [0,000000 ; 255,000000] step = 0,000000
(flegita:31750): GnomeScan-DEBUG: unit = pixel
(flegita:31750): GnomeScan-DEBUG: Emulating option 'source'
(flegita:31750): GnomeScan-DEBUG: Emulating option 'depth'
Segmentation fault (core dumped)
pavka@pavka:~$ dpkg -l flegita
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Název Verze Popis
+++-=========================================-=========================================-==================================================================================================
ii flegita 0.4.1-0ubuntu3 Gnome scan utility
pavka@pavka:~$

Étienne BERSAC (bersace) wrote :

Hi,

I'm currently working on 0.5 which is totally rewritten. So bugs on 0.4 does not apply to 0.5. Obviously, i don't maintain 0.4. Could you please try latest 0.5.2 (released today). Gnome Scan > 0.5 require Babl 0.0.14 and Gegl SVN.

Thanks for testing and reporting !

Kind regards,
Étienne.

Changed in gnomescan:
importance: Undecided → Medium
status: New → Incomplete
Pavel Mlčoch (pavkamlc) wrote :

I dont understand, I reported bug in version 0.4.1. Ver. 0.5 is not in repository and for compilation there is not gegl in repository.

Hi,

Gegl and Babl are not packages in ubuntu. I provide some debs at "deb
http://bersace03.free.fr/ubuntu feisty universe" for i386. I'm not sure
the debs are uptodate ! Gegl depends on Babl. 0.5 is a development
series toward 0.6.

Kind regards,
Étienne.
--
E Ultreïa !

Pavel Mlčoch (pavkamlc) wrote :

Your flegita segfaults too, so later when I reload preview. So this dont works too.
You dont have flegita-gimp package too.

Étienne BERSAC (bersace) wrote :

Hi,

The packages at my repo are dated from 0.5.1 while i released 0.5.2 (including flegita-gimp) only as tarball. Since work is going on for 0.5.3, i won't update packages. Remember Gnome Scan is very unstable. You should use only SVN version of this software as well as Gegl. Babl is stable enough, you could use a tarball.

I'm sorry if this does not looks "user friendly", but that's a property of FOSS : release early-release often. However, releasing does not mean packaging. At this stage, packaging is often a waste of time. I take the time to package only important release (e.g. "stable" release like 0.4.1 or the first 0.5.X release : 0.5.1; this ease packager job since i rewrote all the packaging too). At this stage, a release is a reasonabily "buildable and runnable" version waiting for wider testing, rather for distribution and testing (0.6 will be such a release, closer to 1.0).

I'm very pleased to get feedbacks (even from launchpad which is not the BTS of gnome-scan), but remember Gnome Scan is at a very early stage !

Regarding this bug, could you please post the debugging output from the new gnome-scan ? 0.5.1 might be enough, i encourage you to test SVN (i fixed a couple of bug in SVN regarding some paper-size options).

Kind regards,
Étienne.

David Guedj (david-guedj) wrote :

Like Pavel, flegita segfaults if TV card's modules are loaded (bttv, bt878).
As soon as i unload them (# rmmod bttv bt878), flegita runs fine and is able to detect my scanner correctly.
I haven't looked over 5.x branch yet.

Trevor Schauls (trevorschauls) wrote :

Is this bug still valid as of 8.10 Intrepid?

Pavel Mlčoch (pavkamlc) wrote :

Yes, this bug still in 8.10. Ive the some output.

Daniel T Chen (crimsun) on 2009-01-20
Changed in gnomescan:
status: Incomplete → Confirmed
Étienne BERSAC (bersace) wrote :

Hi,

Please upgrade to 0.6.1 available in my PPA.

Regards,
Étienne.

Pavel Mlčoch (pavkamlc) wrote :

Hello,
 I've upgraded and I think, TV card is not supported, because the output:

pavka@video:~$ flegita
** (flegita:5767): DEBUG: Initializing gnome-scan 0.6.1 for flegita (flegita)
** (flegita:5767): DEBUG: gsane-module.c:39: SANE version is 1.0.19
** (flegita:5767): DEBUG: Ignoring virtual device v4l:/dev/video0
** (flegita:5767): DEBUG: SANE device v4l:/dev/video0 failed or ignored

Segmentation fault
pavka@video:~$

Segfault from your binary is generated after click on Cancel button, or ESC key.

Étienne BERSAC (bersace) wrote :

Hi,

Can you give me gdb output.

Run gdb flegita then
 - type 'r' to start debugging
 - Once it has crashed, type 'bt' to print debug backtrace
 - type 'l' to print the code where it fails
 - type 'info locals' to print local variables
 - type 'info args' to print arguments.
 - type 'up' to go one stack up
 - loop the four steps above until there is not stacks
 - post the result :)

Thanks,
Regards.

Golgoth (g0lg0th) wrote :

Hi Etienne,

segmentation fault here too:

golgoth@tatooine:~$ flegita
** (flegita:2891): DEBUG: Initializing gnome-scan 0.6.2 for flegita (flegita)
** (flegita:2891): DEBUG: gsane-module.c:39: SANE version is 1.0.20
WARNING: Unhandled message: interface=org.freedesktop.DBus.Introspectable, path=/, member=Introspect
** (flegita:2891): DEBUG: Ignoring virtual device v4l:/dev/video0
** (flegita:2891): DEBUG: SANE device v4l:/dev/video0 failed or ignored
** (flegita:2891): DEBUG: Number of options ():
** (flegita:2891): DEBUG: gint none (GParamInt), (null)
** (flegita:2891): DEBUG: default = 17 ; flags = {writable}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG: === Device Hewlett-Packard Photosmart_Wireless_B109n-z (17 options) ===
** (flegita:2891): DEBUG:

** (flegita:2891): DEBUG: -- Group « Scan mode » --
** (flegita:2891): DEBUG: Scan mode (mode):
** (flegita:2891): DEBUG: gchararray none (GSParamEnumSpec), {"Lineart", "Gray", "Color"}
** (flegita:2891): DEBUG: default = "Color" ; flags = {writable}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG: Scan resolution (resolution):
** (flegita:2891): DEBUG: gint dpi (GSParamRangeSpec), [75;1;1200]
** (flegita:2891): DEBUG: default = 75 ; flags = {writable}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG:

** (flegita:2891): DEBUG: -- Group « Advanced » --
** (flegita:2891): DEBUG: Contrast (contrast):
** (flegita:2891): DEBUG: gint none (GSParamRangeSpec), [0;1;100]
** (flegita:2891): DEBUG: default = 50 ; flags = {}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG: Compression (compression):
** (flegita:2891): DEBUG: gchararray none (GSParamEnumSpec), {"None", "JPEG"}
** (flegita:2891): DEBUG: default = "JPEG" ; flags = {writable}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG: JPEG compression factor (jpeg-quality):
** (flegita:2891): DEBUG: gint none (GSParamRangeSpec), [0;1;100]
** (flegita:2891): DEBUG: default = 10 ; flags = {writable}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG: Batch scan (batch-scan):
** (flegita:2891): DEBUG: gboolean none (GParamBoolean), (null)
** (flegita:2891): DEBUG: default = FALSE ; flags = {writable}
** (flegita:2891): DEBUG:
** (flegita:2891): DEBUG: Scan source (source):
** (flegita:2891): DEBUG: gchararray none (GSParamEnumSpec), {"Flatbed"}
** (flegita:2891): DEBUG: default = "Flatbed" ; flags = {writable}
** (flegita:2891): DEBUG:

(flegita:2891): GLib-CRITICAL **: g_utf8_strlen: assertion `p != NULL || max == 0' failed
Erreur de segmentation

In 10.04, the crash still occurs. Since xsane is broken because of bug 446373 and flegita is now broken, I have no scanning abilities any more.

gdb backtrace attached.

Andy Botting (andybotting) wrote :

I'm also affected by the same problem as showing in comment #12

(flegita:8978): GLib-CRITICAL **: g_utf8_strlen: assertion `p != NULL || max == 0' failed
Segmentation fault

Golgoth and Andy Botting, could you both provide a stacktrace like described in https://bugs.launchpad.net/ubuntu/+source/gnomescan/+bug/138280/comments/11

There are some similar bugs in gnome-scan and we try to fix those.

Regards,

   Philipp

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments