LOUDO56/PyMacroRecord

MacOS Crash on record

Closed this issue · 8 comments

orn8 commented

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

Screen.Recording.2024-05-22.at.3.00.19.PM.mov
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.

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

orn8 commented

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

Screen.Recording.2024-05-23.at.11.28.41.AM.mov

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

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

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

orn8 commented

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

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!

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