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

GetPid panic #618

Open
1 of 3 tasks
qianlifeng opened this issue Nov 2, 2023 · 0 comments
Open
1 of 3 tasks

GetPid panic #618

qianlifeng opened this issue Nov 2, 2023 · 0 comments

Comments

@qianlifeng
Copy link

  • Robotgo version (or commit ref): a780825
  • Go version: 1.21.1
  • Gcc version: Apple clang version 15.0.0 (clang-1500.0.40.1)
  • Operating system and bit: macos arm64
  • Resolution:
  • Can you reproduce the bug
    • Yes (provide example code)
    • No
    • Not relevant

Steps to reproduce:

  1. select some file on desktop in macos
  2. invoke robotgo.GetPid() in the background (in my case, hotkey to trigger)
  3. panic happen

panic log

SIGBUS: bus error
PC=0x18db6806c m=7 sigcode=1
signal arrived during cgo execution

goroutine 504 [syscall]:
runtime.cgocall(0x1007bd8ac, 0x140000ab908)
        /opt/homebrew/opt/go/libexec/src/runtime/cgocall.go:157 +0x44 fp=0x140000ab8d0 sp=0x140000ab890 pc=0x10028d384
github.com/go-vgo/robotgo._Cfunc_get_PID()
        _cgo_gotypes.go:540 +0x34 fp=0x140000ab900 sp=0x140000ab8d0 pc=0x100724f44
github.com/go-vgo/robotgo.GetPid()
        /Users/qianlifeng/go/pkg/mod/github.com/go-vgo/robotgo@v1.0.0-rc2.1.0.20230915142143-a780825c0931/robotgo.go:1012 +0x20 fp=0x140000ab930 sp=0x140000ab900 pc=0x100725470

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