{"action":"created","issue":{"url":"https://api.github.com/repos/saki4510t/UVCCamera/issues/78","repository_url":"https://api.github.com/repos/saki4510t/UVCCamera","labels_url":"https://api.github.com/repos/saki4510t/UVCCamera/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/saki4510t/UVCCamera/issues/78/comments","events_url":"https://api.github.com/repos/saki4510t/UVCCamera/issues/78/events","html_url":"https://github.com/saki4510t/UVCCamera/issues/78","id":175673467,"number":78,"title":"Segmentation fault on SoFIA tablet","user":{"login":"MartynasPetkevicius","id":6639400,"avatar_url":"https://avatars.githubusercontent.com/u/6639400?v=3","gravatar_id":"","url":"https://api.github.com/users/MartynasPetkevicius","html_url":"https://github.com/MartynasPetkevicius","followers_url":"https://api.github.com/users/MartynasPetkevicius/followers","following_url":"https://api.github.com/users/MartynasPetkevicius/following{/other_user}","gists_url":"https://api.github.com/users/MartynasPetkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/MartynasPetkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartynasPetkevicius/subscriptions","organizations_url":"https://api.github.com/users/MartynasPetkevicius/orgs","repos_url":"https://api.github.com/users/MartynasPetkevicius/repos","events_url":"https://api.github.com/users/MartynasPetkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/MartynasPetkevicius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-08T06:15:12Z","updated_at":"2016-09-13T11:46:44Z","closed_at":null,"body":"When try opening usbCameraTest camera preview on my Rockchip Sofia 3GR tablet, I get the following error in Logcat:\r\n\r\n```\r\n09-08 09:02:05.653 5966-6012/com.serenegiant.usbcameratest I/libUVCCamera: [6012*UVCPreview.cpp:492:prepare_preview]:frameSize=(640,480)@YUYV\r\n09-08 09:02:05.663 5966-6014/com.serenegiant.usbcameratest I/libUVCCamera: [6014*UVCPreview.cpp:258:callbackPixelFormatChanged]:PIXEL_FORMAT_RAW:\r\n09-08 09:02:06.067 512-687/system_process E/WifiConfigStore: updateConfiguration freq=2472 BSSID=6c:72:20:d8:dc:6e RSSI=-56 \"Techn\"WPA_PSK\r\n                                                             \r\n                                                             --------- beginning of crash\r\n09-08 09:02:07.321 5966-6011/com.serenegiant.usbcameratest A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xe1300000 in tid 6011 (pool-1-thread-1)\r\n09-08 09:02:07.427 204-204/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n09-08 09:02:07.427 204-204/? A/DEBUG: Build fingerprint: 'Android/sofia3gr_tablet_64/sofia3gr:6.0.1/MMB29M/szbnd07131002:userdebug/release-keys'\r\n09-08 09:02:07.428 204-204/? A/DEBUG: Revision: '0'\r\n09-08 09:02:07.428 204-204/? A/DEBUG: ABI: 'x86'\r\n09-08 09:02:07.430 204-204/? A/DEBUG: pid: 5966, tid: 6011, name: pool-1-thread-1  >>> com.serenegiant.usbcameratest <<<\r\n09-08 09:02:07.430 204-204/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe1300000\r\n09-08 09:02:07.473 204-204/? A/DEBUG:     eax 000007f8  ebx e177eec0  ecx 000001ca  edx df1d62bc\r\n09-08 09:02:07.473 204-204/? A/DEBUG:     esi df1d638c  edi e1300000\r\n09-08 09:02:07.473 204-204/? A/DEBUG:     xcs 00000023  xds 0000002b  xes 0000002b  xfs 0000006f  xss 0000002b\r\n09-08 09:02:07.474 204-204/? A/DEBUG:     eip e1726144  ebp ec822ac0  esp e1506640  flags 00210202\r\n09-08 09:02:07.484 204-204/? A/DEBUG: backtrace:\r\n09-08 09:02:07.484 204-204/? A/DEBUG:     #00 pc 0001b144  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libuvc.so\r\n09-08 09:02:07.485 204-204/? A/DEBUG:     #01 pc 000096ec  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libusb100.so (usbi_handle_transfer_completion+204)\r\n09-08 09:02:07.485 204-204/? A/DEBUG:     #02 pc 00010f6a  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libusb100.so\r\n09-08 09:02:07.486 204-204/? A/DEBUG:     #03 pc 00009412  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libusb100.so\r\n09-08 09:02:07.486 204-204/? A/DEBUG:     #04 pc 0000a072  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libusb100.so (libusb_handle_events_timeout_completed+306)\r\n09-08 09:02:07.486 204-204/? A/DEBUG:     #05 pc 0000a257  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libusb100.so (libusb_handle_events+71)\r\n09-08 09:02:07.486 204-204/? A/DEBUG:     #06 pc 0001aa01  /data/app/com.serenegiant.usbcameratest-1/lib/x86/libuvc.so (_uvc_handle_events+97)\r\n09-08 09:02:07.486 204-204/? A/DEBUG:     #07 pc 00095d0b  /system/lib/libc.so (_ZL15__pthread_startPv+59)\r\n09-08 09:02:07.486 204-204/? A/DEBUG:     #08 pc 00030e8b  /system/lib/libc.so (__start_thread+27)\r\n09-08 09:02:07.487 204-204/? A/DEBUG:     #09 pc 00017636  /system/lib/libc.so (__bionic_clone+70)\r\n09-08 09:02:07.943 204-204/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_02\r\n09-08 09:02:07.943 204-204/? E/DEBUG: AM write failed: Broken pipe\r\n09-08 09:02:07.945 512-6019/system_process W/ActivityManager:   Force finishing activity com.serenegiant.usbcameratest/.MainActivity\r\n```\r\n\r\nSame build works fine on Samsung Galaxy S4. I saw it mentioned in other issues, that UVC support of some Chinese SoC manufacturer's is poor. Can this particular problem be fixed or worked around somehow?"},"comment":{"url":"https://api.github.com/repos/saki4510t/UVCCamera/issues/comments/246655987","html_url":"https://github.com/saki4510t/UVCCamera/issues/78#issuecomment-246655987","issue_url":"https://api.github.com/repos/saki4510t/UVCCamera/issues/78","id":246655987,"user":{"login":"MartynasPetkevicius","id":6639400,"avatar_url":"https://avatars.githubusercontent.com/u/6639400?v=3","gravatar_id":"","url":"https://api.github.com/users/MartynasPetkevicius","html_url":"https://github.com/MartynasPetkevicius","followers_url":"https://api.github.com/users/MartynasPetkevicius/followers","following_url":"https://api.github.com/users/MartynasPetkevicius/following{/other_user}","gists_url":"https://api.github.com/users/MartynasPetkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/MartynasPetkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartynasPetkevicius/subscriptions","organizations_url":"https://api.github.com/users/MartynasPetkevicius/orgs","repos_url":"https://api.github.com/users/MartynasPetkevicius/repos","events_url":"https://api.github.com/users/MartynasPetkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/MartynasPetkevicius/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T11:46:44Z","updated_at":"2016-09-13T11:46:44Z","body":"I'm not sure if I've done it correctly, here's the code I used at line 849:\r\n\r\n```\r\nheader_info = pktbuf[1];\r\nLOGI(\"UVC_STREAM_FID: %d, STREAM_HEADER_BFH_EOF: ?, is_isight: %d, UVC_STREAM_ERR: %d\\n\",\r\n        header_info & UVC_STREAM_FID,\r\n        /*header_info & STREAM_HEADER_BFH_EOF,*/\r\n        strmh->devh->is_isight,\r\n        header_info & UVC_STREAM_ERR);\r\n```\r\n\r\nIt didn't compile if I used `STREAM_HEADER_BFH_EOF`, said the constant is used for the first time or something like that. [Here](https://github.com/saki4510t/UVCCamera/files/469692/flags.txt) is the output I've got."}}
{"actor":{"display_login":"MartynasPetkevicius"}}