Bug 371817

Summary: Krita crashes with tablet AIPTEK
Product: [Applications] krita Reporter: Stefan Champailler <schampailler>
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: halla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefan Champailler 2016-10-29 08:57:09 UTC
Krita crashed right on start when my AIPTEK tabled is connected. 100% reproducible.

Krita starts OK when the tablet is not connected.

Gimp crashes too, but after some use. Inkscape works fine, TuxPaint works fine.

Thanks for the cool Krita (whenever it works :-) )

stF



Tablet AIPTEK, Hyper Pen 8000U, model: TMK-T06


stefan@debian:~$ dpkg-query --list | grep krita
ii  krita                                                       1:2.8.5+dfsg-1+b1                    i386         pixel-based image manipulation program for the Calligra Suite
ii  krita-data                                                  1:2.8.5+dfsg-1                       all          data files for Krita painting program


stefan@debian:~$ hostnamectl
   Static hostname: debian
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 167cbf88c29e4f21a8dae126638358ba
           Boot ID: 171e342b09ca4e1c91aff6d6ed4e92a8
  Operating System: Debian GNU/Linux 8 (jessie)
            Kernel: Linux 3.16.0-4-686-pae
      Architecture: x86



stefan@debian:~$ lsusb | grep Aiptek
Bus 005 Device 003: ID 08ca:0010 Aiptek International, Inc. Tablet

stefan@debian:~$ krita
Legacy integer arithmetics implementation 
Abs X 0 -> 0 
Abs Y 1 -> 1 
Abs Wheel 2 -> 6 
Abs Pressure 3 -> 2 
Abs Tilt X 4 -> 3 
Abs Tilt Y 5 -> 4 
Abs Misc 6 -> 6 
Rel Vert Wheel 7 -> 6 
*** Error in `krita': free(): invalid next size (fast): 0x08af3960 ***
KCrash: Application 'krita' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/stefan/.kde/socket-debian/kdeinit4__0



backtrace :

Application: Krita (krita), signal: Aborted
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
[KCrash Handler]
#7  0xb77c4d40 in __kernel_vsyscall ()
#8  0xb755d367 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#9  0xb755ea23 in __GI_abort () at abort.c:89
#10 0xb759b778 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0xb76939bc "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#11 0xb75a17ea in malloc_printerr (action=<optimized out>, str=0xb7693b5c "free(): invalid next size (fast)", ptr=0x8af3960) at malloc.c:4996
#12 0xb75a243d in _int_free (av=0xb76d8420 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3840
#13 0xb3ab8e93 in ?? () from /usr/lib/i386-linux-gnu/tls/libnvidia-tls.so.304.131
#14 0xb744d0c7 in ?? () from /usr/lib/libkritaui.so.13
#15 0xb77280e9 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_krita.so
#16 0x0804855b in ?? ()
#17 0xb7548a63 in __libc_start_main (main=0x8048540, argc=1, argv=0xbfaab764, init=0x8048670 <__libc_csu_init>, fini=0x80486e0 <__libc_csu_fini>, rtld_fini=0xb77d5c50 <_dl_fini>, stack_end=0xbfaab75c) at libc-start.c:287
#18 0x08048587 in _start ()
Comment 1 Stefan Champailler 2016-10-29 09:03:57 UTC
I don't have much time, but feel free to ask for information, for additional tests, etc. I'll be glad to help!
Comment 2 Stefan Champailler 2016-10-29 09:07:26 UTC
As I see som references to nvidia in the backtrace, here's what I have on ly system. 

Note that why the tablet and nividia stuff seems connected is beyond me :-(

---

stefan@debian:~$ dpkg-query --list | grep nvid
ii  glx-alternative-nvidia                                      0.5.1                                i386         allows the selection of NVIDIA as GLX provider
rc  libegl1-nvidia:i386                                         340.65-2                             i386         NVIDIA binary EGL libraries
ii  libgl1-nvidia-legacy-304xx-glx:i386                         304.131-1                            i386         NVIDIA binary OpenGL libraries (304xx legacy version)
ii  libgl1-nvidia-legacy-304xx-glx-i386                         304.131-1                            i386         NVIDIA binary OpenGL 32-bit libraries (304xx legacy version)
rc  libgles1-nvidia:i386                                        340.65-2                             i386         NVIDIA binary OpenGL|ES 1.x libraries
rc  libgles2-nvidia:i386                                        340.65-2                             i386         NVIDIA binary OpenGL|ES 2.x libraries
rc  libnvidia-eglcore:i386                                      340.65-2                             i386         NVIDIA binary EGL core libraries
rc  libnvidia-ml1:i386                                          340.65-2                             i386         NVIDIA Management Library (NVML) runtime library
rc  nvidia-alternative                                          340.65-2                             i386         allows the selection of NVIDIA as GLX provider
ii  nvidia-detect                                               340.96-1                             i386         NVIDIA GPU detection utility
ii  nvidia-installer-cleanup                                    20141201+1                           i386         cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                                        20141201+1                           i386         NVIDIA binary kernel module support files
ii  nvidia-legacy-304xx-alternative                             304.131-1                            i386         allows the selection of NVIDIA as GLX provider
ii  nvidia-legacy-304xx-driver                                  304.131-1                            i386         NVIDIA metapackage (304xx legacy version)
ii  nvidia-legacy-304xx-kernel-dkms                             304.131-1                            i386         NVIDIA binary kernel module DKMS source (304xx legacy version)
ii  nvidia-legacy-304xx-kernel-source                           304.131-1                            i386         NVIDIA binary kernel module source (304xx legacy version)
ii  nvidia-modprobe                                             340.46-1                             i386         utility to load NVIDIA kernel modules and create device nodes
rc  nvidia-settings                                             340.46-2                             i386         tool for configuring the NVIDIA graphics driver
ii  nvidia-settings-legacy-304xx                                304.123-2                            i386         tool for configuring the NVIDIA graphics driver (304xx legacy version)
ii  nvidia-support                                              20141201+1                           i386         NVIDIA binary graphics driver support files
rc  nvidia-vdpau-driver:i386                                    340.65-2                             i386         Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-xconfig                                              340.46-1                             i386         X configuration tool for non-free NVIDIA drivers
rc  xserver-xorg-video-nvidia                                   340.65-2                             i386         NVIDIA binary Xorg driver
ii  xserver-xorg-video-nvidia-legacy-304xx                      304.131-1                            i386         NVIDIA binary Xorg driver (304xx legacy version)
Comment 3 Halla Rempt 2016-10-29 13:17:41 UTC
Sorry, but it's not useful to report bugs for Krita 2.8 anymore. I know it's what Debian ships, but it's just too old and out of date. Please try with a Krita 3.0.1.1 or the latest beta, 3.0.91 instead.