quicktime_video_hack icon indicating copy to clipboard operation
quicktime_video_hack copied to clipboard

linux:Error opening usb deviceslibusb: bad access [code -3]

Open Pycoder0901 opened this issue 2 years ago • 8 comments

robot@WP:~/bin/linux$ ./qvh record out.h264 out.wav {"level":"info","msg":"no udid specified, using '00008110001621293621801E\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'","time":"2022-07-24T19:26:53+08:00"} {"level":"warning","msg":"Error opening usb deviceslibusb: bad access [code -3]","time":"2022-07-24T19:26:53+08:00"} {"level":"warning","msg":"Error opening usb deviceslibusb: bad access [code -3]","time":"2022-07-24T19:26:53+08:00"} {"error_message":"failed connecting to usb","original_error":"Could not retrieve config"}

Pycoder0901 avatar Jul 24 '22 11:07 Pycoder0901

Same error here

acheong08 avatar Aug 07 '22 11:08 acheong08

{"level":"info","msg":"no usbSerial specified, using '00008030001675AC2209802E\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'","time":"2022-08-07T19:05:36+08:00"}
{"level":"info","msg":"found Antonio’s iPhone 16.0 for udid 00008030-001675AC2209802E","time":"2022-08-07T19:05:37+08:00"}
{"level":"info","msg":"Starting Gstreamer..","time":"2022-08-07T19:05:37+08:00"}
{"level":"info","msg":"Gstreamer is running!","time":"2022-08-07T19:05:37+08:00"}
{"level":"warning","msg":"Error opening usb deviceslibusb: bad access [code -3]","time":"2022-08-07T19:05:37+08:00"}
{"level":"warning","msg":"Error opening usb deviceslibusb: bad access [code -3]","time":"2022-08-07T19:05:37+08:00"}
{"level":"fatal","msg":"Error closing usb context: \u0026{0x7fd174000e20 0xc000096ba0 {} {0 0} map[0xc0002abd00:true]}","time":"2022-08-07T19:05:37+08:00"}

acheong08 avatar Aug 07 '22 11:08 acheong08

{"level":"info","msg":"found Antonio’s iPhone 16.0 for udid 00008030-001675AC2209802E","time":"2022-08-07T19:09:42+08:00"}
{"level":"warning","msg":"Error opening usb deviceslibusb: bad access [code -3]","time":"2022-08-07T19:09:42+08:00"}
{"device_activated":{"deviceName":"iPhone","screen_mirroring_enabled":true,"udid":"00008030-001675AC2209802E","usb_device_info":"vid=05ac,pid=12a8,bus=1,addr=8"}}

acheong08 avatar Aug 07 '22 11:08 acheong08

you must run qvh as root user

railsfans avatar Aug 23 '22 03:08 railsfans

Experiencing same issue.. Anybody able to resolve this?

GeoffAbbott avatar Jan 31 '23 21:01 GeoffAbbott

you need umount iphone first

railsfans avatar Feb 16 '23 05:02 railsfans

Running as root solved my issue.. now confronted with new issue {"error_message":"failed connecting to usb", "original_error":"Could not retrieve config"} I've seen others post this issue.. Im running Ubuntu Raspbian bullseye 11..

GeoffAbbott avatar Mar 01 '23 00:03 GeoffAbbott

@GeoffAbbott you ever figure that error {"error_message":"failed connecting to usb", "original_error":"Could not retrieve config"}

serbyxp avatar Jan 12 '24 21:01 serbyxp