http://bugs.winehq.org/show_bug.cgi?id=15443
Summary: Wacom Bamboo drawing tablet lacking pressure sensitivity with Manga Studio EX 3.0 Product: Wine Version: 1.1.5 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: wintab32 AssignedTo: wine-bugs@winehq.org ReportedBy: salvatore.iovene@gmail.com
Created an attachment (id=16316) --> (http://bugs.winehq.org/attachment.cgi?id=16316) Manga Studio EX 3.0 wintab32 debug log
Running wine 1.1.5 in Ubuntu 8.04, my Wacom Bamboo One works perfectly under X in programs like Gimp and Inkscape. With Wine, it also works perfectly with ArtRage 2 Starters Edition. But Manga Studio EX 3.0 (rated platinum in wine apps db) lacks pressure sensitivity. Please find the attached debug logs from wintab32. I attached the log from Manga Studio and from ArtRage (for comparison). Both logs have been acquired by launching the program and try to draw a few lines with the pen.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #1 from Salvatore Iovene salvatore.iovene@gmail.com 2008-09-28 01:01:46 --- Created an attachment (id=16317) --> (http://bugs.winehq.org/attachment.cgi?id=16317) ArtRage 2 Starters Edition wintab32 debug log (for comparinson)
Pressure sensitivity works with ArtRage 2 Starters Edition.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #2 from Salvatore Iovene salvatore.iovene@gmail.com 2008-09-28 01:05:01 --- I'd also like to note that Manga Studio EX 3.0 doesn't seem to have any configuration options to detect the drawing tablet. I was told on #winehq irc channel that it seems like Manga Studio picks the wrong tablet context or w/e.
http://bugs.winehq.org/show_bug.cgi?id=15443
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2008-09-28 11:24:30 --- Not major if it applies to one app only.
http://bugs.winehq.org/show_bug.cgi?id=15443
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |hardware
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #4 from Salvatore Iovene salvatore.iovene@gmail.com 2008-10-12 23:49:00 --- Created an attachment (id=16615) --> (http://bugs.winehq.org/attachment.cgi?id=16615) Wintab log for ComicWorks' trial.
Same behaviour (similar wintab debug) for ComicWorks' trial.
http://bugs.winehq.org/show_bug.cgi?id=15443
Salvatore Iovene salvatore.iovene@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.1.5 |1.1.6
--- Comment #5 from Salvatore Iovene salvatore.iovene@gmail.com 2008-10-13 00:11:18 --- Still buggy in 1.1.6
http://bugs.winehq.org/show_bug.cgi?id=15443
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.1.6 |1.1.5
--- Comment #6 from James Hawkins truiken@gmail.com 2008-10-13 00:13:09 --- Please don't change the original reported version.
http://bugs.winehq.org/show_bug.cgi?id=15443
John Klehm xixsimplicityxix@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xixsimplicityxix@gmail.com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #7 from John Klehm xixsimplicityxix@gmail.com 2008-10-14 02:17:00 --- Oh tablets why don't you just work :)
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #8 from Salvatore Iovene salvatore.iovene@gmail.com 2008-10-14 02:20:05 --- Created an attachment (id=16634) --> (http://bugs.winehq.org/attachment.cgi?id=16634) Manga Studio EX 3.0 wintab32 debug log after patches
After applying the patches from bug #11846, the behaviour when drawing is weird. Each time I tap on my tablet, a line appears from the 0:0 coordinates of the child window that contains the drawing sheet, to the point I just tapped.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #9 from John Klehm xixsimplicityxix@gmail.com 2008-10-14 17:06:46 --- (In reply to comment #8)
Created an attachment (id=16634)
--> (http://bugs.winehq.org/attachment.cgi?id=16634) [details]
Manga Studio EX 3.0 wintab32 debug log after patches
After applying the patches from bug #11846, the behaviour when drawing is weird. Each time I tap on my tablet, a line appears from the 0:0 coordinates of the child window that contains the drawing sheet, to the point I just tapped.
Can you do another log (the complete log if possible) except with +message as well?
Something like:
WINEDEBUG="+wintab32,+message" wine /path/to/program &> manga_studio.log
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #10 from Salvatore Iovene salvatore.iovene@gmail.com 2008-10-14 23:56:35 --- This is a log taken with +wintab32,+message, on Manga Studio patched with the patches found in bug #11846 and doing newcontext->hwndTabletEvents = GetAncestor(hWnd, GA_ROOT); (GA_ROOT instead of GA_PARENT) in context.c. This reproduces the behaviour explained in comment #8.
The file is 21MB, sorry. http://tmp.iovene.com/manga_studio_wintab32_message_patched.log
Compressed (~300KB, please d'load this): http://tmp.iovene.com/manga_studio_wintab32_message_patched.tar.bz2
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #11 from Salvatore Iovene salvatore.iovene@gmail.com 2008-10-15 00:25:52 --- Created an attachment (id=16646) --> (http://bugs.winehq.org/attachment.cgi?id=16646) Patched ComicWorks works
The same patches and attaching to GA_PARENT, make ComicWorks Trial's pressure sensitivity work!
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #12 from Austin English austinenglish@gmail.com 2008-10-15 00:29:42 --- Created an attachment (id=16647) --> (http://bugs.winehq.org/attachment.cgi?id=16647) log from comment 10
You can attach files up to 1 MB...
http://bugs.winehq.org/show_bug.cgi?id=15443
billstei billstei@hbci.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |billstei@hbci.com
--- Comment #13 from billstei billstei@hbci.com 2008-10-29 17:49:23 --- The program ArtWeaver also has no pressure (wacom tablet) and produces very similar wintab32 traces to the original Manga Studio debug log, essentially repeating this type of call (example from the Manga log):
trace:wintab32:WTPacketsGet (0xc00, 128, 0x32bdf8)
From comment #11 above I would like to duplicate the patch testing using
ArtWeaver but I am unclear as to: 1) which patch from bug #11846 was used, and 2) what exactly was changed/added when the comment indicates "...and attaching to GA_PARENT...". Comment #10 seems to indicate that GA_ROOT should be used, and comment #11 seems to say GA_PARENT should be used.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #14 from John Klehm xixsimplicityxix@gmail.com 2008-10-29 18:05:14 --- The patches referred to here at the 2 not obsoleted patches attached to bug 11846: try even harder to find x11 window and a much better way to get x11 window messages.
Once you have those applied you can try changing the initial value of hwndTablatEvents depending on the program. Keep in mind that these modifications are pretty ugly hacks.
On a brighter note I think that the root cause of this bug and most of the remaining tablet bugs are due to our forced usage of a single default tablet context. To fix them wintab needs to handle multiple tablet contexts, this should fix the event processing related to child/parent windows. I've got some nonsense cooked up that seems to work. Hopefully after midterms I can get it cleaned up and submitted.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #15 from billstei billstei@hbci.com 2008-10-30 10:34:42 --- Okay it sounds like I need to apply 2 different patches, as opposed to one or the other.
http://bugs.winehq.org/show_bug.cgi?id=15443
John Klehm xixsimplicityxix@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |xixsimplicityxix@gmail.com Status|NEW |ASSIGNED
--- Comment #16 from John Klehm xixsimplicityxix@gmail.com 2008-12-03 12:37:51 --- Created an attachment (id=17622) --> (http://bugs.winehq.org/attachment.cgi?id=17622) Fixes tablet events if the owner of a tablet context is a child window
This should be a yet again much better way of doing what my other two patches did.
You won't have to manually hack GA_PARENT or GA_ROOT or what not. This patch fixes manga for me.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #17 from Salvatore Iovene salvatore.iovene@gmail.com 2008-12-03 13:44:49 --- Unfortunately that doesn't work for me. I applied the patch to a freshly cloned git repo of wine's development branch. The patch applied cleanly. I get the same odd behaviour as in comment #8. :(
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #18 from John Klehm xixsimplicityxix@gmail.com 2008-12-03 13:51:54 --- Can you attach a WINEDEBUG="+wintab32" for me with manga and the new patch?
Also let me know if comic works atleast has pressure with the new patch.
I appreciate the testing.
http://bugs.winehq.org/show_bug.cgi?id=15443
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #19 from Salvatore Iovene salvatore.iovene@gmail.com 2008-12-07 06:04:37 --- Created an attachment (id=17715) --> (http://bugs.winehq.org/attachment.cgi?id=17715) Manga Studio log with +wintab32 after last patch.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #20 from Salvatore Iovene salvatore.iovene@gmail.com 2008-12-07 06:05:02 --- ComicWorks works fine after the last patch!
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #21 from Austin English austinenglish@gmail.com 2009-06-08 11:53:06 --- Is this still an issue in current (1.1.23 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=15443
Martin Schmitz Skiri-ki@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Skiri-ki@gmx.de
--- Comment #22 from Martin Schmitz Skiri-ki@gmx.de 2009-06-08 12:03:42 --- Pressure sensitivity still not working in 1.1.23 (unpatched), yes, just checked it.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #23 from Austin English austinenglish@gmail.com 2009-06-08 12:53:18 --- John, ping.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #24 from John Klehm xixsimplicityxix@gmail.com 2009-06-08 13:05:44 --- Thanks Austin I guess it has been sometime since I've given an update.
Essentially the last patch I posted here is pretty close to what is needed. However Julliard told me that the XSelectEvent should be postponed if the x11 window isnt created yet. I havent had time yet to make the x11 code behave that way though. Another issue is that I suspect that we are borking in the child window message processing in some manner. The XSelectEvent delay should be ok to fix once I learn a bit more about x11. The child window messages could take awhile since theyd need a few tests.
These wintab initilization failure (lack of pressure) bugs are the first thing on my todo list and as soon as I have any spare time you can bet that I'll be working on it. (soon I hope, school is out woohoo)
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #25 from Austin English austinenglish@gmail.com 2010-01-04 13:23:04 --- Still present.
http://bugs.winehq.org/show_bug.cgi?id=15443
Don Koch aardvark@krl.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aardvark@krl.com
--- Comment #26 from Don Koch aardvark@krl.com 2012-01-21 14:13:22 CST --- Problem still exists with Manga Studio EX 4.0 on wine-1.3.37-263-g1967c34.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #27 from Don Koch aardvark@krl.com 2012-01-21 14:30:25 CST --- Additional note: it doesn't seem to detect pen changes either (i.e. pen vs. eraser). Using Wacom Cintiq 12wx.
http://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #28 from Don Koch aardvark@krl.com 2012-01-22 13:08:00 CST --- With patch, pressure and stylus/eraser detection works, but it still has the "line from origin" issue.
https://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #29 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=15443
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #30 from winetest@luukku.com --- I just realized that there are quite many tablet related bugs. And most likely many of them are dupes or related to each other.
The patch that is included here doesn't apply anymore.
patching file dlls/winex11.drv/wintab.c Hunk #2 succeeded at 850 (offset -10 lines). Hunk #3 FAILED at 877. Hunk #4 succeeded at 881 (offset -9 lines). Hunk #5 FAILED at 908. Hunk #6 succeeded at 919 with fuzz 1 (offset -7 lines). Hunk #7 FAILED at 958. Hunk #8 FAILED at 974. 4 out of 8 hunks FAILED -- saving rejects to file dlls/winex11.drv/wintab.c.rej
wine 2.0rc4.
Could someone retest wine or rebase the patch?
https://bugs.winehq.org/show_bug.cgi?id=15443
--- Comment #31 from winetest@luukku.com --- Created attachment 56749 --> https://bugs.winehq.org/attachment.cgi?id=56749 rebased patch wine 2.0rc4.
Did I miss something?
https://bugs.winehq.org/show_bug.cgi?id=15443
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #56749|0 |1 is patch| |
https://bugs.winehq.org/show_bug.cgi?id=15443
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=15443
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |STAGED CC| |leslie_alistair@hotmail.com Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/wintab32-improve | |ments
https://bugs.winehq.org/show_bug.cgi?id=15443
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #32 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-4.9?