Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on KeyTap, KeyToggle, KeyUp and KeyDown. Mac m3 macOS 15 #690

Open
2 tasks
MassDevss opened this issue Sep 30, 2024 · 0 comments
Open
2 tasks

Crash on KeyTap, KeyToggle, KeyUp and KeyDown. Mac m3 macOS 15 #690

MassDevss opened this issue Sep 30, 2024 · 0 comments

Comments

@MassDevss
Copy link

  • Robotgo version (or commit ref): robotgo v0.110.3
  • Go version: go1.22.4 darwin/amd64
  • Gcc version:
    Apple clang version 15.0.0 (clang-1500.3.9.4)
    Target: arm64-apple-darwin24.0.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin
  • CPU: M3
  • Operating system and bit: macOS 15.0 24A335 arm64
  • Resolution: 1470 x 956 the default for a macbook air 13"
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • [ x ] Not relevant
  • Provide example code:
package main

import (
	"github.com/go-vgo/robotgo"
)

func main() {

	robotgo.Sleep(4)

	err := robotgo.KeyUp(robotgo.KeyA)
	if err != nil {
		panic(err)
	}

}
  • Log gist:

SIGSEGV: segmentation violation
PC=0x10447ce08 m=0 sigcode=1 addr=0x8
signal arrived during cgo execution

goroutine 1 gp=0xc0000061c0 m=0 mp=0x10463e960 [syscall]:
runtime.cgocall(0x10447cde0, 0xc0000f9ce0)
/usr/local/go/src/runtime/cgocall.go:157 +0x4b fp=0xc0000f9cb8 sp=0xc0000f9c80 pc=0x10432a2eb
github.com/go-vgo/robotgo._Cfunc_keyCodeForChar(0x61)
_cgo_gotypes.go:733 +0x46 fp=0xc0000f9ce0 sp=0xc0000f9cb8 pc=0x10447b6c6
github.com/go-vgo/robotgo.checkKeyCodes({0x104480a20?, 0x0?})
/Users/ssant0/go/pkg/mod/github.com/go-vgo/[email protected]/key.go:351 +0x85 fp=0xc0000f9d40 sp=0xc0000f9ce0 pc=0x10447b965
github.com/go-vgo/robotgo.keyToggles({0x104480a20, 0x1}, {0xc00010a000?, 0x1?, 0x10433bd38?}, 0x0, {0x0?, 0x0, 0x104483322?})
/Users/ssant0/go/pkg/mod/github.com/go-vgo/[email protected]/key.go:434 +0x139 fp=0xc0000f9d98 sp=0xc0000f9d40 pc=0x10447bf19
github.com/go-vgo/robotgo.KeyToggle({0x104480a20, 0x1}, {0xc0000f9f30?, 0x1?, 0x1?})
/Users/ssant0/go/pkg/mod/github.com/go-vgo/[email protected]/key.go:567 +0x551 fp=0xc0000f9f08 sp=0xc0000f9d98 pc=0x10447c551
github.com/go-vgo/robotgo.KeyUp(...)
/Users/ssant0/go/pkg/mod/github.com/go-vgo/[email protected]/key.go:590
main.main()
/Users/ssant0/code/CUCII/titulacion-bot/cursor.go:11 +0x70 fp=0xc0000f9f50 sp=0xc0000f9f08 pc=0x10447c750
runtime.main()
/usr/local/go/src/runtime/proc.go:271 +0x29d fp=0xc0000f9fe0 sp=0xc0000f9f50 pc=0x10435ed1d
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000f9fe8 sp=0xc0000f9fe0 pc=0x1043905a1

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00004efa8 sp=0xc00004ef88 pc=0x10435f14e
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:408
runtime.forcegchelper()
/usr/local/go/src/runtime/proc.go:326 +0xb3 fp=0xc00004efe0 sp=0xc00004efa8 pc=0x10435efd3
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00004efe8 sp=0xc00004efe0 pc=0x1043905a1
created by runtime.init.6 in goroutine 1
/usr/local/go/src/runtime/proc.go:314 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00004f780 sp=0xc00004f760 pc=0x10435f14e
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:408
runtime.bgsweep(0xc00007a000)
/usr/local/go/src/runtime/mgcsweep.go:278 +0x94 fp=0xc00004f7c8 sp=0xc00004f780 pc=0x10434b434
runtime.gcenable.gowrap1()
/usr/local/go/src/runtime/mgc.go:203 +0x25 fp=0xc00004f7e0 sp=0xc00004f7c8 pc=0x10433ff85
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00004f7e8 sp=0xc00004f7e0 pc=0x1043905a1
created by runtime.gcenable in goroutine 1
/usr/local/go/src/runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0xc00007a000?, 0x1044d0860?, 0x1?, 0x0?, 0xc000007340?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00004ff78 sp=0xc00004ff58 pc=0x10435f14e
runtime.goparkunlock(...)
/usr/local/go/src/runtime/proc.go:408
runtime.(*scavengerState).park(0x10463dac0)
/usr/local/go/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc00004ffa8 sp=0xc00004ff78 pc=0x104348e29
runtime.bgscavenge(0xc00007a000)
/usr/local/go/src/runtime/mgcscavenge.go:653 +0x3c fp=0xc00004ffc8 sp=0xc00004ffa8 pc=0x1043493bc
runtime.gcenable.gowrap2()
/usr/local/go/src/runtime/mgc.go:204 +0x25 fp=0xc00004ffe0 sp=0xc00004ffc8 pc=0x10433ff25
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00004ffe8 sp=0xc00004ffe0 pc=0x1043905a1
created by runtime.gcenable in goroutine 1
/usr/local/go/src/runtime/mgc.go:204 +0xa5

goroutine 18 gp=0xc000084700 m=nil [finalizer wait]:
runtime.gopark(0xc00004e648?, 0x104333f65?, 0xa8?, 0x1?, 0xc0000061c0?)
/usr/local/go/src/runtime/proc.go:402 +0xce fp=0xc00004e620 sp=0xc00004e600 pc=0x10435f14e
runtime.runfinq()
/usr/local/go/src/runtime/mfinal.go:194 +0x107 fp=0xc00004e7e0 sp=0xc00004e620 pc=0x10433efc7
runtime.goexit({})
/usr/local/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00004e7e8 sp=0xc00004e7e0 pc=0x1043905a1
created by runtime.createfing in goroutine 1
/usr/local/go/src/runtime/mfinal.go:164 +0x3d

rax 0x0
rbx 0x0
rcx 0x0
rdx 0x0
rdi 0x50a2d409be875bf3
rsi 0x600000d5c0c0
rbp 0x30cccd4b0
rsp 0x30cccd490
r8 0x50a2d409be875bf3
r9 0x0
r10 0xffffffffffffffff
r11 0x7fea46809e00
r12 0x2
r13 0x1044e7c40
r14 0xc0000fa000
r15 0x0
rip 0x10447ce08
rflags 0x202
cs 0x2b
fs 0x0
gs 0x0
exit status 2

Description

I was working on an app to automate some personal processes, nothing complex, everything I had done had to do only with the mouse and clicking, until I wanted to use the keyboard I had this error, I tried in a file only with a test with KeyTap and the same error occurred, this error occurs with KeyTap, KeyToggle, KeyUp and KeyDown.

I apologize if I have explained or put something in a bad way, I am a self-taught developer with little experience, I can easily provide the information requested to try to support the project!

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant