I don't want to reopen issue #311 https://sourceforge.net/p/linuxwacom/bugs/311/, so I am creating a new one
What tablet: Wacom One By Wacom CTL-471-EU,
As from kernel 4.9.0 to 4.9.2 I am havin issue with the tablet.
After pluging it to usb2 it works for a while (circa 25 seconds), however whenever I use a graphical drawing program Krita or Pinta it causes it to freeze entire system much faster.
kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000001
I will keep investigating, and after few days I will post a recording of the device input.
I had a similer problem with my new Wacom Cintiq Pro 13 DTH-1320-EU recently in Ubuntu 16.04 with kernel 4.4.0. Same problem, was working for about 15sec before os freeze.
I found the bug below when connecting a second monitor and thought it was the root cause since mine it is a pen display. I updated to kernel 4.8.17 and installed input-wacom drives again and it has been working for a week so far.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1559308
Last edit: Tom R 2017-01-20
I have done the recording, judging by the nature of the last journal message, I think it's some devilish Xorg incompatibility. To reproduce full system crash, open a Krita program :) and run the evemu recordings over the krita (version 3.1.1
) program.
In my opinion it's unrelated to @t0m's issue. As this bug is fresh.
Only wacom package installed
Name : libwacom
Version : 0.22-1
Description : Library to identify Wacom tablets and their features
Last edit: Antonín Dach 2017-01-23
I'm experiencing the same issue on newly installed Ubuntu 16.10 with my Wacom One S. It works as expected for some time but then whole system freezes and stops responding.
I tried reinstalling libwacom and switching multiple kernels including 4.9 and 4.10rc7, but the freeze still occurs.
Sadly, this issue renders my Wacom unusable on Linux. Is there any possible solution yet?
I am guesing, but you could try uninstalling all wacom packages and tehn try to install a older kernel like 4.6.
If it would work, we would know that it's not tied with other userspace library or something.
Then the absolute time wasting procedure of a bisecting a kernel would do the trick, it would tell us exactly the commit that broke the driver. But like I said, compiling the kernels 15 times takes ages.
Another aproach would be compiling the module itself and they bump the versions per kernel release and I have no idea if inserting module would work on a newer kernel release but why not? :O
I will try something after the finals ends, I don't have that much of a time.
I am hoping the maintainers will be able to reproduce the crash with my udev recordings, maybe they know how to debug these thing.
Unfortunately, I've had no luck reproducing this on my system (see below) with the larger CTL-671. I've been able to paint in Krita for several minutes without any kind of instability. Looking at the logs you've posted, it looks like the page table(?) for the Xorg process is getting corrupted somehow. I'm not sure if this kind of problem would be caused by a buggy X program, buggy X driver, or buggy kernel driver -- I'll have to do more reading.
Could you try downgrading your kernel to confirm that it fixes your issue? I believe Manjaro will allow you to install AUR softwarelike "downgrade" which you can use to revert the kernel to a pre-4.9 version. Also, can you confirm whether the xf86-input-wacom or xf86-input-libinput packages are installed, which driver is in use for your tablet (run
journalctl -b0 | grep "Using input driver" | grep Bamboo), and what version of krita and xorg-server you're using?System:
Hi Jason,
Weird you can't reproduce it on your system, I for once am not having xf86-input-wacom package installed and just using the native wacom.ko inside the shipped Manjaro kernel.
I can confirm that on linux 4.8.17 the tablet no longer crashes the system, that's why I opened this ticket as I believe this is very fresh bug inside the input-wacom..
Kernel 4.9.6 and 4.10rc5 crashes entire system.
(I own a Desktop PC as well, it crashes aswell with the kernel 4.9 and up)
Last edit: Antonín Dach 2017-02-11
Thanks for that confirmation, Antonin. There were quite a few changes made between 4.8 and 4.9, so it might be a little difficult to pin down exactly what the trigger is. How comfortable are you with the idea of compiling/installing the input-wacom driver? If you are okay with it, I'd like to walk you through the process of doing a "git bisect" to determine exactly which change introduced the break, and hopefully better understand what is going wrong.
The process can be a bit time intensive (since you'll probably have to compile/install/test the kernel five or so times to isolate the change); it might take an hour or so.
I am doing it now, but man, it ain't easy, all the bisects are comming good, and I keep skipping the right half that won't even compile.. So It taking forever, Bisects good, 5x skip then it came as good again and it keep saying 6 steps remaining... Jeezus I just keep getting errors about devm_add_action_ro_reset redefinition..
I might be stuck.. (So weird that the last commit compiles but for debugging purposes it's hell :C )
I will keep trying.
EDIT: motHer of all the devillish thing, I HAVE TO KEEP TRACK OF USING ./configure and ./autogen.sh GOD damn, why would someone leave the damn thing in there if it tries to compile the code and fail.. "game an impression of untestable commit"
Last edit: Antonín Dach 2017-02-13
Sounds like quite the battle you're engaged in! :eek:
The devm changes were pretty intrusive, but I'm a little surprised that you're running into compile errors... We try to keep the tree buildable at all points since bisecting a broken build is nobody's definition of fun. I wonder if there's a way to have Travis compile intermediate commits to help ensure it doesn't accidentaly happen. Keep me updated, and best of luck...
Yeah it's harder than I thought.
The kernel panics started to be more random, I do plenty of misteps, once the tablet worked for 10minutes and then failed when repluging from usb2 to usb3.
Depressing that it could have been issue that was fixed and I incoreclty assumed that it was my issue.
I will keep trying.
EDIT: I am nearly at the end, few more commits
Last edit: Antonín Dach 2017-02-13
OK I have completed my task..
I am including my entire bisect log
I have come to the mergin phase where I cannot compile the code.
The last good commit found in log "d42c7284afc9ccf8036bdb285719ed7619bc6018" was well tested and did now fail after longer period of time and multiple repluggin in ports usb2 -> usb3 without a panic.
I am not 100% sure but I am running without crash on that commit so far.. :)
Good luck finding the bug. the output when compilation fail
but further version compiles fine.
Thanks for the hard work! The bisect points to one of the merge commits as being a probable cause, but this doesn't make sense since those don't introduce any code changes. Its likely that the apparently intermittent nature of the bug caused you to make some bad commits as 'good' since they appeared to work fine. Determining which is going to be extra-tricky though.
As to the source of the devm_add_action_or_reset errors that you were getting, those appear to be a result of poor branch merging on our (read: "my") part. The backports of the "jiri/for-4.9" branch were integrated in to master before the "jiri/for-4.9" branch itself. Normally this wouldn't matter, except that the branch introduces a new "4.5" directory to ensure new kernels don't try to compile incompatible code. This means that the build can fail for some of the commits prior to the branch merge :( Mea culpla.
To work around the devm_add_action_or_reset issue and focus on the 4.9 branch where this bug was probably introduced, you might try running something like
git bisect reset && git bisect start 27809b2 ea3af31. This should run into fewer problems since it will avoid the broken backports, though you're probably still going to see cases where the tablet appears to work at first only for it to fail after multiple minutes or a disconnect/connect.Hi Jason,
You were absolutelly right I have missed a bad commit.
I have succesfully finished bisecting and found the trouble maker!
I am alsow adding a bisect log :)
Is this better?
Hi. Ex experience the same issue with a Wacom Bamboo Pen.
I am on
ArchLinux,
Kernel: 4.9.11-1-ARCH
libwacom 0.24-1
xf86-input-wacom 0.34.0-1
My wacom tablet is now basically unusable. Is there still no fix?
Hi, I believe they are working on a fix :) in the mean time, you can use the older driver by compiling the source code at the specific last known commit. For example this one 1f49cce2565845f38eca503cf9e5e7f399b9089e was the last known to work for my tablet.
You could have the same issue as me.
If you want to work, try uninstalling xf86-input-wacom,, clone the repository of input-wacom and compile it at the mentioned commit.
THe module will insert itself after reboot so you can at least draw.
Still working on this issue yes. I don't see anything suspicious in the commit, but did recently hear about another memory corruption that maybe related.
Antonin (and others) -- would it be possible for you to try installing the xf86-input-wacom 0.34.2 release that was made a few days ago? It fixes an issue with our driver making changes to internal bits of the X server at the wrong time. This bug has caused errors that appear to be completely unrelated to the actual issue, and I wonder if it might also be responsible for this. After installing the update, remove any input-wacom driver present by running
sudo make uninstallfrom within the "input-wacom" source directory and then reboot.Instructions on installing the xf86-input-wacom driver from source can be found at http://linuxwacom.sourceforge.net/wiki/index.php/Xf86-input-wacom
I have troubles running autogeneration, the condition were not met,
But I have xorg-server installed, any ideas on arch based distros?
I have xorg-server package at version 1.19 :C what should I do?
input-wacom uninstalled and all dependencies installed
I experience the same problem.
My Xorg.0.log is full of messages like
and
Full Xorg.0.log.old attached
Antonin, the error message you are seeing is a result of not having the xorg-server development headers installed. Assuming Manjaro uses the same package names as Arch, try installing the "xorg-server-devel" package. Unfortunately I don't have a complete list of the required development packages for Manjaro/Arch -- let me know if you run into any more "No package" errors.
Inna, the "WriteToClient" errors that you're seeing in your Xorg.0.log should be fixed by updating to xf86-input-wacom-0.34.2. I'm hoping it also fixes the the freeze issue that this bug is about. Please try installing the driver from source as outlined in http://linuxwacom.sourceforge.net/wiki/index.php/Xf86-input-wacom
Hi, I feel silly forgeting about the devel package, what the heck was I thinking of..
However I must say the the xf86-input-wacom-0.34.2 is better but It still crashes after while :(.
I am possitive I am running it, since
and the tablet is able to go for entire half an hour without a kernel panic.
Last edit: Antonín Dach 2017-03-13
I compiled driver from source and it removed "WriteToClient" to client errors, but the freezes are still present, though slightly different. Now it takes more time to get the freezes and there is a chance of unfreezing if the tablet is unplugged when freezes started. The Xorg.0.log is still full of such messages:
EDIT: Actually Antonin, I just updated one of my Arch linux boxes and it appears that 0.34.2 is now in the repository. You might check to see if its available on Manjaro as well. Should save the trouble of compiling :) Fingers crossed it fixes this.
I just build the master and crashed after 35 minutes :( WAY Better but still.
Behaviour is now somewhat different, I am able to use the computer for about 30s (also happened before but now it's the same all the attempts) after the cursor stops moving via tablet, after that it fails compeltely. (memory leak?).
I could do some core dumping, or maybe puting a printk somewhere ? If you gave me instruction :)
One other thought, maybe it's the xorg that crashes this time and go to full kernel panic few seconds later?
I am probably unhelpful, so I'm willing to test further or apply anypatch you throw at me.