danielpaulus / quicktime_video_hack

Record iOS device audio and video
MIT License
520 stars 110 forks source link

qvh activate errors on first run #148

Open VoroshylovDmitry opened 1 year ago

VoroshylovDmitry commented 1 year ago

When I run command -> "qvh activate" in first time I have this one errors:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x529626]

goroutine 1 [running]:
github.com/google/gousb.(*Device).String(...)
    /home/ganjalf/go/pkg/mod/github.com/google/gousb@v0.0.0-20190812193832-18f4c1d8a750/device.go:101
github.com/danielpaulus/quicktime_video_hack/screencapture.mapToIosDevice(0xc0000d9bf0, 0x1, 0x1, 0x0, 0x0, 0xc0000861e0, 0xc0000a5260, 0x12d42c0)
    /home/ganjalf/privaterepos/quicktime_video_hack/screencapture/discovery.go:105 +0x96
github.com/danielpaulus/quicktime_video_hack/screencapture.(*IosDevice).ReOpen(0xc0000d9d28, 0xc0000a5260, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/ganjalf/privaterepos/quicktime_video_hack/screencapture/discovery.go:28 +0xb5
github.com/danielpaulus/quicktime_video_hack/screencapture.EnableQTConfig(0xc0000ac150, 0x28, 0xc0000b0b34, 0x6, 0x4, 0xffffffffffffffff, 0x12a805ac, 0xc0000b3900, 0x1f, 0x0, ...)
    /home/ganjalf/privaterepos/quicktime_video_hack/screencapture/activator.go:40 +0x36f
main.activate(0x0, 0x0)
    /home/ganjalf/privaterepos/quicktime_video_hack/main.go:132 +0x266
main.main()
    /home/ganjalf/privaterepos/quicktime_video_hack/main.go:70 +0x519

If I run it again every thing is ok and I see devece data:

{"device_activated": 
{"deviceName":"iPhone","screen_mirroring_enabled":true,"udid":"divece_id","usb_device_info":"vid=05ac,pid=12a8,bus=3,addr=11"}
}

Do I have an error in the software setup?