xsane crashes on startup with segmentation fault.

Bug #132219 reported by kakashi
82
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xsane (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xsane

i am on Gutsy with all the updates installed.
scanner is canon canoscan lide 25.

here is the error msg.

(xsane:17139): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:17139): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Segmentation fault (core dumped)
m@m-desktop:~$ xsane

(xsane:17218): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:17218): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Segmentation fault (core dumped)

edit.
this bug has now been fixed apparently. alteast i am no longer experiencing any problems using my setup. and other have commented that it is fixed too.
but due to uncertainty over how to mark it it still remains confirmed instead of something else like fixed.

Revision history for this message
kakashi (lordverminard) wrote :
Revision history for this message
Larry Reaves (yrral86) wrote :

I get the same thing as soon as I hit Ok after selecting which device I want. It also happens when I try to use xsane via the gimp acquire menu.

Revision history for this message
kakashi (lordverminard) wrote :

yes i checked same things happens on gimp too.

Revision history for this message
Francois Duprez (francoisduprez) wrote :

Same here, kooka and quiteinsane work fine. Error with xsane and xsane plugin:

(xsane:9783): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:9783): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Segmentatiefout (core dumped)

Revision history for this message
Alec Wright (alecjw) wrote :

Exactly the same here in gutsy with an epson stylus photo rx420

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

Setting to confirmed based on duplicates.

Changed in xsane:
status: New → Confirmed
Revision history for this message
garybrlow (garybrlow) wrote :

I get the same error on Xubuntu Gutsy Tribe 4 using a Genius Color-Page HR6X as seen below:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
(xsane:5843): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:5843): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Segmentation fault (core dumped)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
It won't work in GIMP either:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plug-in crashed: "xsane"
(/usr/lib/gimp/2.0/plug-ins/xsane)

The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

On the Xsane website there's a new version of xsane (0.994) perhaps updating to that version would fix it. Has anyone tried using the 0.994 version? I had no problems scanning/using xsane in feisty though. :)

Revision history for this message
Gérard Duteil (gerardduteil) wrote :

Moi aussi j'ai le même problème
J'ai aussi le même problème

gduteil710@gduteil710-desktop:~$ xsane

(xsane:6474): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:6474): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Erreur de segmentation (core dumped)
gduteil710@gduteil710-desktop:~$
gduteil710@gduteil710-desktop:~$
gduteil710@gduteil710-desktop:~$
gduteil710@gduteil710-desktop:~$
gduteil710@gduteil710-desktop:~$ xsane -v
xsane-0.991 © 1998-2006 Oliver Rauch
  Courriel : <email address hidden>
  paquetage xsane-0.991
  compilé avec GTK-2.11.5
  avec support GIMP, compilé avec GIMP-2.3.18
  Formats de sortie XSane: jpeg, pdf(compr.), png, pnm, ps(compr.), tiff, txt
gduteil710@gduteil710-desktop:~$

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

Not being able to scan from xsane and gimp should be at least importance medium if not high.
It would not be good for ubuntu's reputation to release gutsy with this bug.

Revision history for this message
abeowitz (abeowitz-gmail) wrote :

If you download the source code and comment out these lines, it seems to work... as far as I've tested anyway.

xsane.c:3527: //style = gtk_widget_get_style(about_dialog);
xsane.c:3528: //bg_trans = &style->bg[GTK_STATE_NORMAL];
xsane.c:3631: //style = gtk_widget_get_style(about_translation_dialog);
xsane.c:3632: //bg_trans = &style->bg[GTK_STATE_NORMAL];
xsane.c:5230: //current_style = gtk_style_copy(gtk_widget_get_style(xsane.tooltips->tip_window));
xsane.c:5231: //current_style->bg[GTK_STATE_NORMAL] = xsane.tooltips_bg;
xsane.c:5232: //current_style->fg[GTK_STATE_NORMAL] = xsane.tooltips_fg;
xsane.c:5233: //gtk_widget_set_style(xsane.tooltips->tip_window, current_style);
xsane-gamma.c:2213: //style = gtk_widget_get_style(xsane.histogram_dialog);
xsane-gamma.c:2219:// xsane.gc_trans = style->bg_gc[GTK_STATE_NORMAL];
xsane-gamma.c:2220:// xsane.bg_trans = &style->bg[GTK_STATE_NORMAL];

Dunno which lines are the culprit, though...

Revision history for this message
Gérard Duteil (gerardduteil) wrote :

Hello i have upload a source package
i extract this
i modifiy the lines

i upload the library edu710@edu710-desktop:~/Documents/xsane-0.994$ sudo apt-get install libgtk1.2-dev libglib1.2-dev

i execute ./configure
make

i join my report

thanks

Revision history for this message
Gérard Duteil (gerardduteil) wrote :

for information the scanimage command run

scanimage -x 100 -y 100 --format=tiff >image.tiff

sorry i'm not programmer

Revision history for this message
Jim McCormick (rantman-2000) wrote :

Same here using an HP PSC 950 and the hplip drivers. This also crashes on the latest upstream package in the exact same manner. For output, see everybody else's problem.

I think SANE has gone insane.

Revision history for this message
Jefferson Martins de Oliveira (jeffersonjbj) wrote :

I am with same problem. Scanner HP 2200 C.

jefferson@localhost:~$ xsane

(xsane:7588): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:7588): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Falha de segmentação (core dumped)

Someone uncovered the solution?

Revision history for this message
Pelládi Gábor (pelladigabor) wrote :

Same crash happens with Canon Lide 20 after selecting device from list.

Revision history for this message
Edward Clark (eeclark) wrote :

HP PSC 2510

same issue

$ xsane

(xsane:8491): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:8491): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Segmentation fault (core dumped)

quiteinsane works without any issues.

must be how they implemented widgets and styles . ;-)

Revision history for this message
Edward Clark (eeclark) wrote :

edward@smallville:~$ xsane

(xsane:8491): Gtk-CRITICAL **: gtk_widget_get_style: assertion `GTK_IS_WIDGET (widget)' failed

(xsane:8491): Gtk-CRITICAL **: gtk_style_copy: assertion `GTK_IS_STYLE (style)' failed
Segmentation fault (core dumped)
edward@smallville:~$
edward@smallville:~$ xsane --version
xsane-0.991 (c) 1998-2006 Oliver Rauch
  E-mail: <email address hidden>
  package xsane-0.991
  compiled with GTK-2.11.5
  with GIMP support, compiled with GIMP-2.3.18
  XSane output formats: jpeg, pdf(compr.), png, pnm, ps(compr.), tiff, txt

Revision history for this message
Louis (louisgag) wrote :

Same problem here on an up-to-date Gutsy.
Using a P4 64 comp. with a UMAX astra 1220U usb scanner.

[ 3261.292506] usb 2-2.1: new full speed USB device using uhci_hcd and address 8
[ 3261.410509] usb 2-2.1: configuration #1 chosen from 1 choice
[ 3272.129688] xsane[8895]: segfault at 0000000000000054 rip 0000000000467604 rsp 00007fff5fa4bbe0 error 6

Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

This was fixed by upload of libgtk2.0-0 2.11.6-1ubuntu4.
Thanks a lot for this guys.

Changed in xsane:
status: Confirmed → Fix Released
Revision history for this message
Stefan Fleiter (stefan-fleiter) wrote :

I do not know wether it's rhight to set this bug to "Fix Released" since it was not xsane which was fixed.
So setting back to confirmed.

Changed in xsane:
status: Fix Released → Confirmed
Revision history for this message
Jefferson Martins de Oliveira (jeffersonjbj) wrote :

Thanks Stefan. Problem was fixed ;-)

kakashi (lordverminard)
description: updated
Revision history for this message
Gérard Duteil (gerardduteil) wrote :

Hello,

i use edubuntu, i haven't touch any but it's a miracle. My scanner hp 6300 run
For notice in ubuntustudio 7.04 it's works very well also since a month ago

thanks for all

Revision history for this message
J C Nash (nashjc) wrote :

Running xsane from console on my wife's Compaq (updated Feisty) gives the segmentation fault right away. The "Searching for scanner" just flashes and things die.

Also, power down now fails. Just stops with splash screen. Possibly related to bug report 43961. Turning off splash gives a msg about 4 lines above "System halted" that libhal shutdown has failed. Need to press power switch and hold to shut off.

I wanted to completely remove xsane (then reinstall), but it would remove ubuntu-desktop. A little too much tight integration.

Suggestions on how to better diagnose things welcome.

For information, I also tried booting the penultimate kernel (2.6.20-15 rather than 2.6.20-16) with same results.

JN

Revision history for this message
Luke Hoersten (lukehoersten) wrote :

When trying to run Xsane it flashes the scanning for devices and then crashes. When running Xsane and/or sane from the command line, I get a seg fault and core dump.

This problem does not occur when running with sudo. Per suggestions in other bugs, I've tried removing my ~/.sane dir but that did not fix the problem. ~/.sane is owned by my user. There aren't permission problems as far as I can tell but the fact that it will run as root still hints towards something of that nature.

I'll try to get a human readable backtrace posted.

Revision history for this message
Luke Hoersten (lukehoersten) wrote :

The backtrace is small and crashes with "0xb6fa9bf5 in ?? () from /usr/lib/libmfp.so"

After searching around, I find many reports like this:
http://www.linuxquestions.org/questions/linux-security-4/samsung-driver-security-hole-587587/
and:
http://it.slashdot.org/article.pl?sid=07/07/18/0319203

We *did* just install the proprietary Samsung printer drivers for a new printer and many reports say that libmfp is affected by the Samsung drivers. The Samsung drivers are changing binaries to suid and then requiring them to run as root. It can be fixed by following this post:

http://ubuntuforums.org/showthread.php?t=341621

So, this is not an Ubuntu problem but maybe one of the Ubuntu devs has some Samsung contacts and could possibly get this security hole (and bugs) fixed.

Revision history for this message
dmoyne (dmoyne-aliceadsl) wrote :

I confirm this bug with Hardy Heron on 64 bit machine with UMAX Astra 1220S device ; works prefectly well on Gutsy on same equioment.

Revision history for this message
shellmich (shellmich) wrote :

I confirm this bug with Ubuntu 8.04 on an 32 bit machine with CanoScan LiDE 60. Xsane works when running with sudo. I did install the Samsung CLP-300 Unified Linux Driver (ver.2.00.97), which might be part of the reason. Would be great, if this could be solved by an simple patch.

Revision history for this message
lazslo (enochlnx) wrote :
Download full text (6.2 KiB)

My printer/scanner is an PSC 1610. This is what I get:

>xsane
*** buffer overflow detected ***: xsane terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f05c9e5b207]
/lib/libc.so.6(+0xfe0c0)[0x7f05c9e5a0c0]
/lib/libc.so.6(+0xfcf77)[0x7f05c9e58f77]
/usr/lib/sane/libsane-epson2.so.1(+0x131e0)[0x7f05bea3b1e0]
/usr/lib/sane/libsane-epson2.so.1(+0x13565)[0x7f05bea3b565]
/usr/lib/sane/libsane-epson2.so.1(sanei_configure_attach+0x37c)[0x7f05bea2f1dc]
/usr/lib/sane/libsane-epson2.so.1(sane_epson2_get_devices+0x2c)[0x7f05bea3afec]
/usr/lib/libsane.so.1(sane_dll_get_devices+0xc6)[0x7f05ceaf8106]
xsane[0x4771fe]
xsane[0x477385]
xsane[0x477b66]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f05c9d7ac4d]
xsane[0x409f19]
======= Memory map: ========
00400000-00497000 r-xp 00000000 08:03 136923 /usr/bin/xsane
00697000-00698000 r--p 00097000 08:03 136923 /usr/bin/xsane
00698000-006a1000 rw-p 00098000 08:03 136923 /usr/bin/xsane
006a1000-006a2000 rw-p 00000000 00:00 0
02419000-02584000 rw-p 00000000 00:00 0 [heap]
7f05be811000-7f05be827000 r-xp 00000000 08:03 521297 /lib/libgcc_s.so.1
7f05be827000-7f05bea26000 ---p 00016000 08:03 521297 /lib/libgcc_s.so.1
7f05bea26000-7f05bea27000 r--p 00015000 08:03 521297 /lib/libgcc_s.so.1
7f05bea27000-7f05bea28000 rw-p 00016000 08:03 521297 /lib/libgcc_s.so.1
7f05bea28000-7f05bea51000 r-xp 00000000 08:03 144600 /usr/lib/sane/libsane-epson2.so.1.0.20
7f05bea51000-7f05bec51000 ---p 00029000 08:03 144600 /usr/lib/sane/libsane-epson2.so.1.0.20
7f05bec51000-7f05bec52000 r--p 00029000 08:03 144600 /usr/lib/sane/libsane-epson2.so.1.0.20
7f05bec52000-7f05bec53000 rw-p 0002a000 08:03 144600 /usr/lib/sane/libsane-epson2.so.1.0.20
7f05bec53000-7f05bec55000 rw-p 00000000 00:00 0
7f05bec55000-7f05bec79000 r-xp 00000000 08:03 144603 /usr/lib/sane/libsane-fujitsu.so.1.0.20
7f05bec79000-7f05bee78000 ---p 00024000 08:03 144603 /usr/lib/sane/libsane-fujitsu.so.1.0.20
7f05bee78000-7f05bee79000 r--p 00023000 08:03 144603 /usr/lib/sane/libsane-fujitsu.so.1.0.20
7f05bee79000-7f05bee7a000 rw-p 00024000 08:03 144603 /usr/lib/sane/libsane-fujitsu.so.1.0.20
7f05bee7a000-7f05bee7c000 rw-p 00000000 00:00 0
7f05bee7c000-7f05beead000 r-xp 00000000 08:03 144606 /usr/lib/sane/libsane-genesys.so.1.0.20
7f05beead000-7f05bf0ac000 ---p 00031000 08:03 144606 /usr/lib/sane/libsane-genesys.so.1.0.20
7f05bf0ac000-7f05bf0ad000 r--p 00030000 08:03 144606 /usr/lib/sane/libsane-genesys.so.1.0.20
7f05bf0ad000-7f05bf0b1000 rw-p 00031000 08:03 144606 /usr/lib/sane/libsane-genesys.so.1.0.20
7f05bf0b1000-7f05bf0b3000 rw-p 00000000 00:00 0
7f05bf0b3000-7f05bf0d3000 r-xp 00000000 08:03 144612 /usr/lib/sane/libsane-gt68xx.so.1.0.20
7f05bf0d3000-7f05bf2d3000 ---p 00020000 08:03 144612 ...

Read more...

summary: - Xsane crashes on startup with segmentation fault.
+ CanoScan LiDe 25: xsane crashes on startup with segmentation fault.
summary: - CanoScan LiDe 25: xsane crashes on startup with segmentation fault.
+ xsane crashes on startup with segmentation fault.
Revision history for this message
penalvch (penalvch) wrote :

kakashi, this bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in xsane (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Ahmad Gharbeia أحمد غربية (gharbeia) wrote :

xsane crashes with several instances of the following messages on the console:
`(xsane:1031048): Gtk-CRITICAL **: 21:09:50.699: IA__gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed`

This is now happening again on Ubuntu 20.04
xsane-0.999
libgtk2.0-0 2.24.32-4ubuntu4

Revision history for this message
penalvch (penalvch) wrote :

Ahmad Gharbeia أحمد غربية (gharbeia), please note this report is closed, as it was already fixed as per the original reporter. Hence, it has nothing to do with your problem.

However, if you would like a problem with xsane in Ubuntu resolved, please file a new report via a terminal:
ubuntu-bug xsane

Feel free to subscribe me to the new report.

Thanks!

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

Other bug subscribers

Remote bug watches

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