New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MyPaint 1.2.1 crashes as soon as I use my tablet #946

Open
darkhog opened this Issue Sep 22, 2018 · 21 comments

Comments

Projects
None yet
4 participants
@darkhog
Copy link

darkhog commented Sep 22, 2018

Description of the problem

MyPaint crashes as soon as I use my tablet (Huion Inspiroy H950). Can draw fine with mouse. It doesn't happen with other drawing programs such as Krita.

Basic system details

MyPaint version: 1.2.1 (newest release)
Operating system: Win10 build 1803
Desktop environment: n/a

Steps to reproduce

[☞ Tell us how to reproduce the bug in clear, numbered steps.]

  1. Start MyPaint
  2. Try using the tablet
  3. The window's kaput.

Backtraces or error messages

Running gdb.exe...
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Traceback (most recent call last):
  File "<string>", line 3, in <module>
ImportError: No module named libstdcxx.v6.printers
c:\program files\mypaint-w64\mingw64\bin\../etc/gdbinit:5: Error in sourced command file:
Error while executing Python code.
Reading symbols from python2.exe...(no debugging symbols found)...done.
Starting program: C:\program files\mypaint-w64\mingw64\bin\python2.exe mingw64/bin/mypaint
[New Thread 4480.0x2354]
[New Thread 4480.0x2a60]
[New Thread 4480.0x2b88]
[New Thread 4480.0x11c]
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'C:/Program Files/mypaint-w64/mingw64'
INFO: lib.i18n: Windows: LANG='pl_PL'
INFO: lib.i18n: Windows: LANGUAGE='pl_PL'
WARNING: mypaint: No bindtextdomain builtins found in module 'locale'.
INFO: mypaint: Trying platform-specific fallback hacks to find bindtextdomain funcs.
INFO: mypaint: Windows: found working bindtextdomain funcs in 'libintl-8.dll' (ctypes)
[New Thread 4480.0x518]
[New Thread 4480.0x1fec]
[New Thread 4480.0x2970]
[New Thread 4480.0x2958]
[New Thread 4480.0x1520]
WARNING: gui.workspace: win32: floating windows are not supported (bug #679), not enabling subwindow creation by snapping out.
WARNING: gui.workspace: win32: floating windows are not supported (bug #679), not enabling subwindow creation by snapping out.
INFO: gui.device: New device 'System Aggregated Pointer' (GDK_SOURCE_MOUSE, axes:2, class=GdkDeviceWin32, vendor=None, product=None)
INFO: gui.document: Initialized background from u'C:/Program Files/mypaint-w64/mingw64/share/mypaint/backgrounds/10_soft_yellow.png'
WARNING: gui.keyboard: Ignoring keybinding for '<Actions>/BrushModifierActions/BlendModeMenu'

(python2.exe:4480): Gtk-�[1;33mWARNING�[0m **: Theme parsing error: <data>:5:50: The style property GtkMenuBar:internal-padding is deprecated and shouldn't be used anymore. It will be removed in a future version
C:/program files/mypaint-w64/mingw64/lib/python2.7/site-packages/pygtkcompat/pygtkcompat.py:180: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored.
  rect = Gdk.Rectangle(0, 0, 0, 0)
WARNING: gui.accelmap: Not listing '<Actions>/DocumentActions/RotateLeft' (no tooltip, fix before release!)
WARNING: gui.accelmap: Not listing '<Actions>/DocumentActions/RotateRight' (no tooltip, fix before release!)
INFO: gui.device: New device 'HUION Tablet Pressure Stylus' (GDK_SOURCE_PEN, axes:5, class=GdkDeviceWintab, vendor=None, product=None)

(python2.exe:4480): Gdk-�[1;35mCRITICAL�[0m **: gdk_device_get_source: assertion 'GDK_IS_DEVICE (device)' failed

Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000070ee1e34 in ?? () from C:\program files\mypaint-w64\mingw64\bin\libgdk-3-0.dll
(gdb)
@hungryowlet

This comment has been minimized.

Copy link

hungryowlet commented Nov 4, 2018

I've got the same problem. Used MyPaint 1.0 until now without problems - but after upgrading to 1.2.1 it immediately crashes as soon as my pen touches the surface. I use a Huion 1060P, Win 10 Home 64 Bit.

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Nov 4, 2018

I would start with an alpha build:
https://ci.appveyor.com/project/achadwick/mypaint/history
Just find the first one that is "green" indicating the build was a success.

@hungryowlet

This comment has been minimized.

Copy link

hungryowlet commented Nov 5, 2018

...where are the download links? All I can see are logs.

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Nov 5, 2018

@hungryowlet

This comment has been minimized.

Copy link

hungryowlet commented Nov 5, 2018

Thank you! Trying it and hoping for the best.

@hungryowlet

This comment has been minimized.

Copy link

hungryowlet commented Nov 5, 2018

Tried it and the exact same thing happens. Poke canvas with tablet pen, program immediately shuts down. When I try again I can't use the tablet at all once MyPaint is open, mouse is fine, though. 1.0 still works without problems.

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 10, 2018

I have the exact same problem with a pen tablet Huion H430P. As soon as the pen touches the tablet, MyPaint crashed immediately. This is true for version 1.2.1 and the newest alpha build version 1.3.0. Version 1.0.0 works fine with pen pressure and without any crash. The problem can be reproduced under Windows 8.1 (32-bit) and Window 10 (64-bit).

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Dec 11, 2018

Please verify you are using a new alpha build. When you do Help-->About it should look like this, showing GDK 3.24.1:
image
download here:
https://ci.appveyor.com/project/achadwick/mypaint

The particular bug you're having seems like it might be fixing in GDK 3.21.1

@darkhog

This comment has been minimized.

Copy link

darkhog commented Dec 11, 2018

Doesn't work for me and mypaint-debug.exe returns the following:

Running python2.exe...
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'E:/profile/user/mojeprogramy/mypaint/mingw64'
CRITICAL: mypaint: Default brush collection not found!
CRITICAL: mypaint: It should have been here: u'C:/msys64/mingw64/share/mypaint-data/2.0/brushes'
python2.exe exited with status 1.

Seems to be some sort of absolute path usage bug as that specific directory is in E:/profile/user/mojeprogramy/mypaint/mingw64 (I mean, share/mypaint-data/...)

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Dec 11, 2018

@darkhog that's a new issue because I rolled out the new brush dependency too soon. I'm hoping to fix that soon very soon. In the meantime can you look for lib\config.py and edit it, change C: to E: and try again?

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 12, 2018

I downloaded and installed version 2.0.0 alpha w64 and it did not start. Running mypaint-debug.exe showed the same error that darkhog reported. I found the file config.py here:
C:\Program Files\mypaint-git-w64\mingw64\lib\mypaint\lib\config.py

I was able to start mypaint 2.0.0-alpha after changing the line from
mypaint_brushdir = u'E:/msys64/mingw64/share/mypaint-data/2.0/brushes'
to
mypaint_brushdir = u'C:/Program Files/mypaint-git-w64/mingw64/share/mypaint-data/2.0/brushes'

Unfortunately version 2,0.0-alpha did not fix the problem. As soon as the pen touches the Huion H430P, the mypaint windows disappears (program crash). Under devices I don't see the tablet, only the mouse.

Mypaint version 1.0.0 works perfectly with the tablet, all others (tried 1.2.1, 1.3.0 and 2.0.0) don't.

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Dec 12, 2018

Can you try the gtk3-demo-event-axes.exe in the mypaint folder? That should be a good test if it is a GTK bug

@darkhog

This comment has been minimized.

Copy link

darkhog commented Dec 12, 2018

Seems to be the case.

(gtk3-demo.exe:11240): Gdk-CRITICAL **: 18:58:18.390: gdk_device_get_source: assertion 'GDK_IS_DEVICE (device)' failed
--: line 1: 19692 Segmentation fault      "$@"
gtk3-demo exited with status 139.
Press return to close this window.

Again, after I've touched the area. Perhaps you can roll back to the version used by 1.0 as it seems to ot suffer from this issue?

//edit: Seems to happen even in gtk-widget-factory.exe, which to my knowledge has no "drawable" surfaces. I touch the window, it crashes. Additionally, when these are open, my tablet is not updating cursor's position. When offending app is crashed, the cursor starts being updated again.

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 12, 2018

Same with me:
Touching the tablet with the pen crashes both, gtk3-demo-event-axes.exe and gtk-widget-factory.exe.

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 12, 2018

I can also confirm, that I cannot move the mouse cursor with the pen, as long as these programs are running.
Additionally, the programs crash only occurs if the mouse cursor is somewhere over the program window. Otherwise the program windows stay open.

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Dec 13, 2018

Please try updating the drivers:
https://www.huiontablet.com/support/
and go into the driver settings and experiment turning on or off the Windows Ink setting and the WinTab setting.

We can't go back to older GTK versions, unfortunately. I'm thinking this is a bug in the newer GTK versions. Please try to download GTK as shown here:
https://www.gtk.org/download/windows.php
you can just do step 1 and 2, and then launch the MSYS2 terminal and run gtk3-demo and choose the Table and Drawing demo and click Run. If it crashes your next step is probably to submit a bug report to GTK.

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 13, 2018

I already have the latest driver installed. In the driver settings I tried all possible pen setting combinations.

I downloaded the latest GTK version (steps 1+2), started gtk3-demo, selected "Touch and Drawing Tablets" and clicked Run. I placed the mouse cursor somewhere over the program window. As soon as the pen touches the Huion H430P tablet, the program is crashing.

So you are right, it seems to be a bug in the newer GTK versions. I will report the bug to GTK.

Thanks a lot!

@briend

This comment has been minimized.

Copy link
Contributor

briend commented Dec 13, 2018

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 13, 2018

GIMP 2.10.8 works fine with the Huion tablet. Don't know which GTK version it's using.

@darkhog

This comment has been minimized.

Copy link

darkhog commented Dec 14, 2018

I have the newest drivers. The issue persists.

@obnblbn

This comment has been minimized.

Copy link

obnblbn commented Dec 14, 2018

I opened an issue and reported the bug to GTK:
https://gitlab.gnome.org/GNOME/gtk/issues/1522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment