Open aohanhongzhi opened 2 weeks ago
The pull request will be closed without any reasons if it does not satisfy any of following requirements:
master
You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.
Please provide Issues links to:
panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x0 pc=0x7ff7f9c6c104]
goroutine 53 [running]: github.com/go-vgo/robotgo.ToBitmap(...) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:391 github.com/go-vgo/robotgo.ToRGBA(0x0?) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:423 +0x24 github.com/go-vgo/robotgo.ToImage(...) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:418 github.com/go-vgo/robotgo.CaptureImg({0x0?, 0x5?, 0x0?}) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:367 +0x59 qq-robot/qq.(SearchProcessor).execute(0xc00008e060, 0xc00011c580, 0x0?) C:/Users/aohanhongzhi/projects/qq-robot/qq/search_processor.go:107 +0x8c b qq-robot/qq.(QQUserInterface).execute(0xc00008e0c0, 0x7ff7f9e06540?, 0xc194618e 3811e224?) C:/Users/aohanhongzhi/projects/qq-robot/qq/ui_proccessor.go:33 +0x23a qq-robot/qq.SendQQGroupMessage({0x1, {0xc00009c040, 0x1c}, {0xc0000a0110, 0x1, 0 x1}, 0x210acd48, {0xc00000a1f0, 0x9}, 0x9f10970c, ...}) C:/Users/aohanhongzhi/projects/qq-robot/qq/processor.go:23 +0x127 qq-robot/mq.ConsumeExchange.func2({0xc000073c00, 0x3e8, 0x3e8}, 0x0?, {0x7ff7f9f 2a228?, 0xc000088e40?}) C:/Users/aohanhongzhi/projects/qq-robot/mq/jt_rabbitmq_receive.go:53 +0x 218 gitee.com/aohanhongzhi/go-rabbitmq-pool.consumeTask(0x0, 0xc0000b0000, 0xc000062 f60) C:/Users/aohanhongzhi/go/pkg/mod/gitee.com/aohanhongzhi/go-rabbitmq-pool @v0.1.3/RabbitmqPool.go:902 +0x139a gitee.com/aohanhongzhi/go-rabbitmq-pool.rListenerConsume.func1(0x0?, 0x0?, 0x0?) C:/Users/aohanhongzhi/go/pkg/mod/gitee.com/aohanhongzhi/go-rabbitmq-pool @v0.1.3/RabbitmqPool.go:789 +0x13 created by gitee.com/aohanhongzhi/go-rabbitmq-pool.rListenerConsume in goroutine 52 C:/Users/aohanhongzhi/go/pkg/mod/gitee.com/aohanhongzhi/go-rabbitmq-pool @v0.1.3/RabbitmqPool.go:788 +0x2f
**Provide test code:** ```Go
...
All committers have signed the CLA.
The pull request will be closed without any reasons if it does not satisfy any of following requirements:
master
branch, pull requests on release branches are only allowed for bug fixes.You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.
Please provide Issues links to:
goroutine 53 [running]: github.com/go-vgo/robotgo.ToBitmap(...) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:391 github.com/go-vgo/robotgo.ToRGBA(0x0?) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:423 +0x24 github.com/go-vgo/robotgo.ToImage(...) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:418 github.com/go-vgo/robotgo.CaptureImg({0x0?, 0x5?, 0x0?}) C:/Users/aohanhongzhi/go/pkg/mod/github.com/go-vgo/robotgo@v0.110.1/robo tgo.go:367 +0x59 qq-robot/qq.(SearchProcessor).execute(0xc00008e060, 0xc00011c580, 0x0?) C:/Users/aohanhongzhi/projects/qq-robot/qq/search_processor.go:107 +0x8c b qq-robot/qq.(QQUserInterface).execute(0xc00008e0c0, 0x7ff7f9e06540?, 0xc194618e 3811e224?) C:/Users/aohanhongzhi/projects/qq-robot/qq/ui_proccessor.go:33 +0x23a qq-robot/qq.SendQQGroupMessage({0x1, {0xc00009c040, 0x1c}, {0xc0000a0110, 0x1, 0 x1}, 0x210acd48, {0xc00000a1f0, 0x9}, 0x9f10970c, ...}) C:/Users/aohanhongzhi/projects/qq-robot/qq/processor.go:23 +0x127 qq-robot/mq.ConsumeExchange.func2({0xc000073c00, 0x3e8, 0x3e8}, 0x0?, {0x7ff7f9f 2a228?, 0xc000088e40?}) C:/Users/aohanhongzhi/projects/qq-robot/mq/jt_rabbitmq_receive.go:53 +0x 218 gitee.com/aohanhongzhi/go-rabbitmq-pool.consumeTask(0x0, 0xc0000b0000, 0xc000062 f60) C:/Users/aohanhongzhi/go/pkg/mod/gitee.com/aohanhongzhi/go-rabbitmq-pool @v0.1.3/RabbitmqPool.go:902 +0x139a gitee.com/aohanhongzhi/go-rabbitmq-pool.rListenerConsume.func1(0x0?, 0x0?, 0x0?) C:/Users/aohanhongzhi/go/pkg/mod/gitee.com/aohanhongzhi/go-rabbitmq-pool @v0.1.3/RabbitmqPool.go:789 +0x13 created by gitee.com/aohanhongzhi/go-rabbitmq-pool.rListenerConsume in goroutine 52 C:/Users/aohanhongzhi/go/pkg/mod/gitee.com/aohanhongzhi/go-rabbitmq-pool @v0.1.3/RabbitmqPool.go:788 +0x2f
Description
...