LOUDO56 / PyMacroRecord

Free and Open Source Macro Recorder with a modern GUI using Python
https://www.pymacrorecord.com/
GNU General Public License v3.0
260 stars 51 forks source link

MacOS Crash on record #23

Closed orn8 closed 6 months ago

orn8 commented 6 months ago

Describe the bug When I tried to record a macro, the app instantly crashes. The terminal just says: zsh: trace trap python3 main.py

To Reproduce Click the record button on the app.

Screenshots

https://github.com/LOUDO56/PyMacroRecord/assets/119661802/6cbdc2e3-112a-48c6-b46a-13b13c4ebc8b

Screenshot 2024-05-22 at 3 01 58 PM

The OS MacOS

Additional context I have already given accessibility and input monitoring permissions to both terminal and the python app.

LOUDO56 commented 6 months ago

Hello, can you try loading a script and playing it to see if it does the same? test-macos.json

orn8 commented 6 months ago

Yeah that works fine. I guess it's just the recording that's causing the error.

https://github.com/LOUDO56/PyMacroRecord/assets/119661802/30f4a0ef-a003-47af-8aee-d6ae27e06fd5

LOUDO56 commented 6 months ago

That's a good start, now can you try to record only the mouse movement, keyboard input and mouse click to see if one in particular cause the crash please?

orn8 commented 6 months ago

It seems to only crash when enabling recording of keyboard strokes. Mouse movement and clicks are working.

LOUDO56 commented 6 months ago

Nice. Lastly, can you test this macro script that use keyboard input? test-keyboard.json

orn8 commented 6 months ago

Yup the keyboard macro is working. It's just the recording that's causing the error.

LOUDO56 commented 6 months ago

Alright, I have found the problem and It now should work, I will push an update today. By the way, be sure to install pynput version 1.7.7 or else it won't work.

Thank you for helping me locating the issue!

LOUDO56 commented 6 months ago

It's avalaible. If you used git to download PMR, just use git pull or else download the source code from the lastest release https://github.com/LOUDO56/PyMacroRecord/releases/tag/v1.1.6