question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mtdev crash sometimes

See original GitHub issue

On a current installation in a museum, i got few times (like 11 times during the past 8 months) this crash:

 Exception in thread Thread-1:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
     self.run()
   File "/usr/lib/python2.7/threading.py", line 763, in run
     self.__target(*self.__args, **self.__kwargs)
   File "/home/inook/code/kivy/kivy/input/providers/mtdev.py", line 303, in _thread_run
     process([l_points[x] for x in _changes])
   File "/home/inook/code/kivy/kivy/input/providers/mtdev.py", line 177, in process
     touch = MTDMotionEvent(device, tid, args)
   File "/home/inook/code/kivy/kivy/input/motionevent.py", line 286, in __init__
     self.depack(args)
   File "/home/inook/code/kivy/kivy/input/providers/mtdev.py", line 50, in depack
     self.sx = args['x']
 KeyError: 'x'

It may be a hardware issue, however, we could fix it by ignoring a frame that doesn’t meet the minimal keys we actually need.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
lozuwacommented, Aug 28, 2016

greetings, i am currently facing the same issue. I tried your fixes but no result. I thought it was a problem with the mtdev provider but reading your comments discards that option.

1reaction
schoolsplaycommented, Jul 19, 2016

Im now using the fix pietervandemeer suggested and put the str in a try/except clause to prevent a crash. It’s being deployed on 100+ machines so I will get a good view of the result of this fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sway crashes when external monitor is connected · Issue #4717
Sometimes sway crashes immediately after connecting and sometimes when I try to change screen resolution. sway version 1.2-37afbc4d (Nov 14 ...
Read more >
Pi 3B+ crashing while running Kivy touchscreen application ...
This only happens sometimes, and I can't figure out a pattern to the crashes. ... mouse = mouse mtdev_%(name)s = probesysfs,provider=mtdev hid_%(name)s ...
Read more >
My PC crashes trying to start the login manager / Kernel ...
I have another distro installed on other HDD, but the same is happening there and when trying to boot another distro from my...
Read more >
0015482: X Server crashes when starting xfreerdp via fvwm
ID Project Category View Status Date Submitted Last Update 0015482 CentOS‑7 xorg‑x11‑server public 2018‑11‑22 08:56 2019‑06‑26 22:37 Reporter MRoth Assigned To Priority normal Severity crash Reproducibility...
Read more >
Changelog — Kivy 2.1.0 documentation
[#7049]: Camera: Fix GI camera provider crash when no texture is available after loading ... [#7301]: Doc: Add Kivy config example for inverted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found