systemofapwne / leetmouse

A fork of the Linux mouse driver with acceleration
GNU General Public License v2.0
93 stars 10 forks source link

System freezes with ableton loaded via wine #7

Open systemofapwne opened 3 years ago

systemofapwne commented 3 years ago

This is a reminder to myself to investigate this issue.

The reddit user 1800lilith contacted me, observing full-system freezes when loading ableton via wine while having LEETMOUSE loaded. If LEETMOUSE is unloaded, everything works fine.

1800lilith also observed debug messages ("Float traps") spewing kernel messages here and there. Maybe this bug is related to https://github.com/systemofapwne/leetmouse/issues/4 and https://github.com/systemofapwne/leetmouse/issues/3.

I could imagine, that on 1800lilith's system configuration, the FPU unit on the CPU is having problems due to an improper use by LEETMOUSE. Keep in mind: Kernel code is generally not supposed to use any floating point arithmetic. However LEETMOUSE relies on this and tries to circumvent all the pitfalls when using FPU in the kernel according to the book. While I think, the current implementation is "almost safe" now, I observed some pitfalls here and there (https://github.com/systemofapwne/leetmouse/issues/4), where I had to specifically test for "invalid data" (Hence the "Float traps"). 1800lilith observations might indicate, that the FPU can still get messed up and my "workaround" is just trying to fix the symptoms, rather than fixing the cause.

Maybe I have overseen something?

systemofapwne commented 2 years ago

This might get resolved, once #14 is implemented.