Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906995 - media-gfx/gimp-2.10.34 crashes on wacom; stack smashing detected with x11-drivers/xf86-input-wacom-1.2.0
Summary: media-gfx/gimp-2.10.34 crashes on wacom; stack smashing detected with x11-dri...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
: 911820 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-23 13:22 UTC by bugreport
Modified: 2024-02-15 21:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
GIMP Crash Debug from 2.10.34-r1::gentoo (gimp_crash_report,4.56 KB, text/html)
2023-05-23 13:22 UTC, bugreport
Details
GIMP Crash Debug from 2.10.34-r1::gentoo v2 (file_906995.txt,4.64 KB, text/plain)
2023-05-23 13:47 UTC, bugreport
Details
Crash dump for gimp-2.10.34-r2 (~amd64) with debug symbols (file_906995.txt,23.42 KB, text/plain)
2023-05-23 16:05 UTC, bugreport
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugreport 2023-05-23 13:22:10 UTC
Created attachment 862267 [details]
GIMP Crash Debug from 2.10.34-r1::gentoo

Steps to reproduce:
1) Create a new image
2) Touch anything with stylus

Crashes instantly on tip touch or "right" button on stylus, got slightly delayed reaction with eraser (using wacom tablet). Pointer's location does not seem to make any difference.
Did not crash using laptop's trackpoint though.


### Log printed to console ###
$ LANG=C gimp
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
Warning: Unknown input_id: -1 for input: surfacemap_x
GIMP-Message: Some fonts failed to load:
- /usr/share/gimp/2.0/fonts/


~~/ the relevant part follows /~~

*** stack smashing detected ***: terminated
gimp: fatal error: Aborted

(gimp-org-script-fu:17470): LibGimpBase-WARNING **: 14:33:25.704: gimp-org-script-fu: gimp_wire_read(): error

### end log ###

Crash Debug attached.



Tried:
Reconnecting wacom tablet
Downgrading from 2.10.34-r2 to 2.10.34-r1
Rebooting

Haven't been using GIMP for like 2 or 3 months, so can't really tell what exactly has changed, but it used to work pretty well on this system.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-23 13:26:03 UTC
Could you upload your attachment again with fixed formatting?

You may also need to rebuild gimp, gtk, and glibc with debugging symbols: https://wiki.gentoo.org/wiki/Debugging#Per-package.
Comment 2 bugreport 2023-05-23 13:47:29 UTC
Created attachment 862268 [details]
GIMP Crash Debug from 2.10.34-r1::gentoo v2

Oh, sorry, my copy of that file looks fine, but it somehow got mangled during upload; sending again via text input.

Sure, I can rebuild a few packages with debug symbols, let me know anything you need.
Comment 3 bugreport 2023-05-23 16:05:39 UTC
Created attachment 862271 [details]
Crash dump for gimp-2.10.34-r2 (~amd64) with debug symbols

Added crash report with debug symbols.

And a small update regarding the areas where using stylus crashes gimp:
Positive for canvas, history and layers, but not toolbox.
It does not necessary crash on the very first attempt anymore, however it does crash reliably with only a few taps.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-25 03:36:14 UTC
Thanks! That second one is much better. Could you also build gtk+ and glib with debugging symbols too?
Comment 5 Sergey Torokhov 2023-05-25 09:20:28 UTC
There is another watcom related issue on GIMP 
issue tracker: https://gitlab.gnome.org/GNOME/gimp/-/issues/9385

The users report that problem is related to xf86-input-wacom driver and downgrade it from 1.2 to 1.1  solves the problem.

This driver isn't in tree anymore but available in gitweb before removing:
https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-drivers/xf86-input-wacom?id=5f19280fc0144571ba888036d60125bd8146d338

Could you please check if issue is reproduced with xf86-input-wacom-1.1.0 if you current vesion is 1.2.0?
Comment 6 bugreport 2023-05-25 12:10:07 UTC
> Could you also build gtk+ and glib with debugging symbols too?

I think I did it though; I have enabled the same settings on all 3 packages and rebuilt them.


>Could you please check if issue is reproduced with xf86-input-wacom-1.1.0 if you current vesion is 1.2.0?

Sure, I checked it and it does help indeed.
Gimp stopped crashing immediately after downgrade (it stopped seeing advanced functions, so stylus got reduced to "core pointer" device, but no crashes).
After reboot, with downgraded driver properly loaded, everything seems to work like it used to, including brush selection based on device in use, and pressure and tilt sense from the stylus.
Good call, thanks.
Comment 7 Larry the Git Cow gentoo-dev 2023-05-26 07:55:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=138405e809ff0e3fb82967bf3053ea23a14ccfa4

commit 138405e809ff0e3fb82967bf3053ea23a14ccfa4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-26 07:54:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-26 07:54:59 +0000

    Revert "x11-drivers/xf86-input-wacom: Drop old versions"
    
    This reverts commit 95608c4d0f8480e8b896b6ea481875c2d0048d48.
    
    1.2.0 seems to have some issues, so restore 1.1.0 for now.
    
    Bug: https://bugs.gentoo.org/906995
    Bug: https://gitlab.gnome.org/GNOME/gimp/-/issues/9385
    Bug: https://github.com/linuxwacom/xf86-input-wacom/issues/307
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-drivers/xf86-input-wacom/Manifest              |  1 +
 .../xf86-input-wacom/xf86-input-wacom-1.1.0.ebuild | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)
Comment 8 Mark Purtill 2023-07-03 21:32:30 UTC
I'm having the same crash (I see the same message ** stack smashing detected ***: terminated), and xf86-input-wacom-1.1.0.ebuild does not seem to be present in /usr/portage/x11-drivers/xf86-input-wacom/.  I have the same gimp as above.

I was able to get the 1.1.0 build from https://github.com/gentoo/gentoo/ and can verify that the crash is no longer present with that version.
Comment 9 Larry the Git Cow gentoo-dev 2023-07-03 21:49:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d13dc9b4997faecab3f889a8519388e34e7aa0f0

commit d13dc9b4997faecab3f889a8519388e34e7aa0f0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-03 21:48:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-03 21:49:04 +0000

    Revert "x11-drivers/xf86-input-wacom: Drop old versions"
    
    This reverts commit f820cfb16e9fe4e496e7d51746ae086d9a4e4b59.
    
    It got dropped again, but see 138405e809ff0e3fb82967bf3053ea23a14ccfa4.
    
    Bug: https://bugs.gentoo.org/906995
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-drivers/xf86-input-wacom/Manifest              |  1 +
 .../xf86-input-wacom/xf86-input-wacom-1.1.0.ebuild | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)
Comment 10 Sergey Torokhov 2023-08-11 06:38:34 UTC
*** Bug 911820 has been marked as a duplicate of this bug. ***
Comment 11 Sergey Torokhov 2024-02-15 21:25:09 UTC
This issue should be fixed in media-gfx/gimp-2.10.36 as mentioned in release notes:
https://www.gimp.org/news/2023/11/07/gimp-2-10-36-released/#broken-graphics-tablets-with-recent-linuxwacom-driver

I assume this issue could be closed then as obsolete.