woodruffw / x_do.cr

Crystal bindings for libxdo (xdotool)
https://woodruffw.github.io/x_do.cr/
MIT License
18 stars 1 forks source link

Segmentation Fault #4

Closed nin93 closed 4 years ago

nin93 commented 5 years ago

I'm building an automated bot with these bindings and as soon as I started testing it I noticed the same redundant error from libxdo lib.

Invalid memory access (signal 11) at address 0xe4
[0x55dc13dbda16] ???
[0x55dc13d839e2] __crystal_sigfault_handler +226
[0x7f6e1757a890] ???
[0x7f6e17d9ca9e] xdo_get_mouse_location2 +46
[0x7f6e17d9d202] ???
[0x7f6e17d9d418] xdo_click_window +24
[0x55dc13da4e10] ???
[0x55dc13d6848f] __crystal_main +33855
[0x55dc13d6ca00] main +48
[0x7f6e16b2bb97] __libc_start_main +231
[0x55dc13d5ff6a] _start +42
[0x0] ???

I tried switching from XDo#get_mouse_location2 to XDo#get_mouse_location internally, but the error still occurs (that was the case).

I don't know where the real issue comes from, but it makes my app crash almost every time, and when it does it takes from 10 to 30 minutes.

woodruffw commented 5 years ago

Hmm. This could be either a bug in libxdo or in the Crystal bindings. The fact that it's happening 10 to 30 minutes into a run makes me suspect the former, but that's just intuition.

woodruffw commented 4 years ago

Closing as stale; haven't been able to repro.