Log in or register to post comments

External camera problem

November 21, 2018 - 6:56pm #1

On Android 8.0, using UVC camera.

The libVuforia CRASH when re-entering the scene and opening the camera again. 

 

11-22 10:30:54.990 13455 13617 E CRASH   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr c3100000

11-22 10:30:54.990 13455 13617 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

11-22 10:30:54.990 13455 13617 E CRASH   : Build fingerprint: 'HUAWEI/PIC-AL00/HWPIC:8.0.0/HUAWEIPIC-AL00/339(C00):user/release-keys'

11-22 10:30:54.990 13455 13617 E CRASH   : Revision: '0'

11-22 10:30:54.991 13455 13617 E CRASH   : pid: 13455, tid: 13617, name: Thread-114  >>> guru.unity <<<

11-22 10:30:54.991 13455 13617 E CRASH   :     r0 00000000  r1 c30ffd60  r2 00000280  r3 000001e0

11-22 10:30:54.991 13455 13617 E CRASH   :     r4 0000011e  r5 00000150  r6 00000000  r7 c3100260

11-22 10:30:54.991 13455 13617 E CRASH   :     r8 00000500  r9 00000280  sl 00000000  fp 00000500

11-22 10:30:54.991 13455 13617 E CRASH   :     ip c1ab50e0  sp be4826cc  lr 00000500  pc cadd1834  cpsr f19c6c90

11-22 10:30:54.991 13455 13617 E CRASH   :

11-22 10:30:54.991 13455 13617 E CRASH   : backtrace:

11-22 10:30:55.234 13455 13617 E CRASH   :   #00  pc 0015f834  /data/app/com.xunfeivr.airguru2-C84L6XIAoEwh2fQls1jI8Q==/lib/arm/libVuforia.so

11-22 10:30:55.234 13455 13617 E CRASH   :   #01  pc 0015f329  /data/app/com.xunfeivr.airguru2-C84L6XIAoEwh2fQls1jI8Q==/lib/arm/libVuforia.so

11-22 10:30:55.234 13455 13617 E CRASH   :   #02  pc 00167b95  /data/app/com.xunfeivr.airguru2-C84L6XIAoEwh2fQls1jI8Q==/lib/arm/libVuforia.so

11-22 10:30:55.234 13455 13617 E CRASH   :   #03  pc 0018197b  /data/app/com.xunfeivr.airguru2-C84L6XIAoEwh2fQls1jI8Q==/lib/arm/libVuforia.so

External camera problem

April 19, 2019 - 2:49pm #12

Hello,

Please note that Vuforia SDK 8.1 we fixed an issue with deadlock when using the UVC Driver on a device with permission checking enabled.

Release notes, with some prescriptive recommendations, can be found here: https://library.vuforia.com/content/vuforia-library/en/articles/Release_Notes/Vuforia-SDK-Release-Notes.html

Thanks,

Vuforia Engine Support

External camera problem

February 15, 2019 - 1:24pm #11

Hello @lbb1993,

Thanks for the feedback. I've escalated to the team.

-Vuforia Engine Support

External camera problem

February 15, 2019 - 1:23pm #10

Hello @lltheone,

Thanks for the additional info. I've asked the team to take a look.

-Vuforia Engine Support

External camera problem

February 14, 2019 - 7:41pm #9

new log:

 

2019-02-15 11:35:58.500 20770-20770/? I/NetworkSpeedView: /update(), speed=4.2

    K/s parent class:class com.android.systemui.statusbar.HwSystemIcons

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_SCANNING_MODE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_AE_MODE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_AE_PRIORITY_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_EXPOSURE_TIME_ABSOLUTE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_EXPOSURE_TIME_RELATIVE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_FOCUS_ABSOLUTE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_FOCUS_RELATIVE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_IRIS_ABSOLUTE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_IRIS_RELATIVE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_ZOOM_ABSOLUTE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_ZOOM_RELATIVE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_PANTILT_ABSOLUTE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_PANTILT_RELATIVE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_ROLL_ABSOLUTE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_ROLL_RELATIVE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_FOCUS_AUTO_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_PRIVACY_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_FOCUS_SIMPLE_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_DIGITAL_WINDOW_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_CT_REGION_OF_INTEREST_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_BRIGHTNESS_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_CONTRAST_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_HUE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_SATURATION_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_SHARPNESS_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_GAMMA_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_WHITE_BALANCE_TEMPERATURE_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_BACKLIGHT_COMPENSATION_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_GAIN_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_POWER_LINE_FREQUENCY_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_HUE_AUTO_CONTROL supported: NO

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL supported: YES

2019-02-15 11:35:58.525 29110-29204/? D/UVCExternalCamera: UVC_PU_WHITE_BALANCE_COMPONENT_AUTO_CONTROL supported: NO

2019-02-15 11:35:58.526 29110-29204/? D/UVCExternalCamera: UVC_PU_DIGITAL_MULTIPLIER_CONTROL supported: NO

2019-02-15 11:35:58.526 29110-29204/? D/UVCExternalCamera: UVC_PU_DIGITAL_MULTIPLIER_LIMIT_CONTROL supported: NO

2019-02-15 11:35:58.526 29110-29204/? D/UVCExternalCamera: UVC_PU_ANALOG_VIDEO_STANDARD_CONTROL supported: NO

2019-02-15 11:35:58.526 29110-29204/? D/UVCExternalCamera: UVC_PU_ANALOG_LOCK_STATUS_CONTROL supported: NO

2019-02-15 11:35:58.526 29110-29204/? D/UVCExternalCamera: UVC_PU_CONTRAST_AUTO_CONTROL supported: not supported

2019-02-15 11:35:58.526 29110-29204/? D/AR: Determining the camera modes. Driver reports 9 different modes.

2019-02-15 11:35:58.526 29110-29204/? D/AR: Found 9 supported camera modes.

2019-02-15 11:35:58.526 29110-29204/? D/AR: Querying camera capabilities (exposure, focus)

2019-02-15 11:35:58.544 29110-29204/? D/AR: Camera capability query done

2019-02-15 11:35:58.551 29110-29204/? D/Vuforia: cameraDeviceStartCamera

2019-02-15 11:35:58.552 29110-29204/? D/AR: Start external camera

2019-02-15 11:35:58.552 29110-29204/? D/UVCExternalCamera: VendorId: 0x2084

2019-02-15 11:35:58.552 29110-29204/? D/UVCExternalCamera: ProductId: 0x0505

2019-02-15 11:35:58.552 29110-29204/? E/UVCExternalCamera: No calibration value for [VID: 8324, PID: 1285, Width: 640, Height: 480]

2019-02-15 11:35:58.600 29110-29204/? I/AR: Starting camera with profile for default, 0

2019-02-15 11:35:58.615 29110-29412/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr d6b00000

2019-02-15 11:35:58.615 29110-29412/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

2019-02-15 11:35:58.615 29110-29412/? E/CRASH: Build fingerprint: 'HUAWEI/LON-AL00/HWLON:8.0.0/HUAWEILON-AL00/374(C00):user/release-keys'

2019-02-15 11:35:58.615 29110-29412/? E/CRASH: Revision: '0'

2019-02-15 11:35:58.615 29110-29412/? E/CRASH: pid: 29110, tid: 29412, name: Thread-53  >>> guru.unity <<<

2019-02-15 11:35:58.615 29110-29412/? E/CRASH:     r0 00000500  r1 00000280  r2 00000000  r3 000000af

2019-02-15 11:35:58.615 29110-29412/? E/CRASH:     r4 00000000  r5 00000280  r6 d6affc08  r7 000001fc

2019-02-15 11:35:58.615 29110-29412/? E/CRASH:     r8 00000500  r9 00000000  sl bbc9ea20  fp bcd35fc0

2019-02-15 11:35:58.615 29110-29412/? E/CRASH:     ip 000001e0  sp bbc7f6f0  lr c40ae691  pc c40b51a6  cpsr e27f2c90

2019-02-15 11:35:58.615 29110-29412/? E/CRASH: backtrace:

2019-02-15 11:35:58.681 504-29413/? D/libc: GetAddrInfoHandler addr: xxx.123.123.123

2019-02-15 11:35:58.783 29110-29412/? E/CRASH:  #00  pc 001651a6  /data/app/com.xunfeivr.airguru2-AURTpOKL8WTbUpY7_bJdtg==/lib/arm/libVuforia.so

2019-02-15 11:35:58.783 29110-29412/? E/CRASH:  #01  pc 0016db07  /data/app/com.xunfeivr.airguru2-AURTpOKL8WTbUpY7_bJdtg==/lib/arm/libVuforia.so

2019-02-15 11:35:58.783 29110-29412/? E/CRASH:  #02  pc 00196435  /data/app/com.xunfeivr.airguru2-AURTpOKL8WTbUpY7_bJdtg==/lib/arm/libVuforia.so

2019-02-15 11:35:58.783 29110-29412/? A/mono: * Assertion: should not be reached at mini.c:2215

2019-02-15 11:35:58.870 1196-1388/? I/chatty: uid=1000(system) InputDispatcher expire 71 lines

2019-02-15 11:35:58.895 651-13526/? D/AudioFlinger: event 163

External camera problem

December 7, 2018 - 12:40am #8

Hi,

I also have problem with android uvcCamera Driver. I use your uvcdriver android sample and built the UvcDriver according your website.But when first open  there was a usb permission pop, click cancel or confirm will both make application get stuck.I clicked confirm button and kill the application and reopen it ,the usb Camera can be open and work well.After long time debug,I found ther reason is your sample's BroadcastReceiver at USBController(Activity activity) not receive any usb permission result.There is the relative codes below. Please help me , the sdk version is 7-5-26,the UVCDriver sample is your latest version,and uvcCameraLib is also the latest version build by ndk 13b.The phone I use is huawei mate 10.Thank you very much!



public USBController(Activity activity)

    {

        if (activity == null) {

            return;

        }

        mUsbManager = (UsbManager)activity.getSystemService(Context.USB_SERVICE);

        HashMap<String, UsbDevice> usbDeviceHashMap = mUsbManager.getDeviceList();

        mUsbDeviceList = new UsbDevice[usbDeviceHashMap.size()];

        mUsbDeviceList = usbDeviceHashMap.values().toArray(mUsbDeviceList);

        mPermissionLatchMap = new HashMap<UsbDevice, CountDownLatch>(mUsbDeviceList.length);

        BroadcastReceiver broadcastReceiver = new BroadcastReceiver()

        {



            @Override

            public void onReceive(Context context, Intent intent)

            {

          //this method never called after click cancel or confirm,how to make it be called?

                if (intent.getAction().equals(REQUEST_USB_PERMISSION))

                {

                    UsbDevice device = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);

                    if (device != null && mPermissionLatchMap.get(device) != null)

                    {

                        // We got the permission result for this device, countdown the latch

                        mPermissionLatchMap.get(device).countDown();

                    }

                }

            }

        };

       

        for (int idx = 0; idx < mUsbDeviceList.length; idx++)

        {

            UsbDevice device = mUsbDeviceList[idx];

            if (!mUsbManager.hasPermission(device))

            {

                activity.registerReceiver(broadcastReceiver, new IntentFilter(REQUEST_USB_PERMISSION));

                PendingIntent permissionIntent = PendingIntent.getBroadcast(activity, 0, new Intent(REQUEST_USB_PERMISSION), 0);

                mUsbManager.requestPermission(device, permissionIntent);

                // Put a latch for this device because we need to wait for the permission result

                mPermissionLatchMap.put(device, new CountDownLatch(1));

            }

        }

    }

External camera problem

December 6, 2018 - 10:12pm #7

Hello,

The version of the SDK we're using is 7.5.26.

And we can't catch a tombstone from a user build phone.

We are trying to catch a tombstone from a userdebug device, and we'll upload the tombstone file at the very time we catch it.

 

Thanks

External camera problem

December 4, 2018 - 10:31am #6

Hello,

We tried to decode the dump posted below but couldn't make it work. Can you attach the entire crash dump here as a file so that we can analyze?

Also, looking for confirmation on the exact version of the SDK you're using.

Thanks,

Vuforia Engine Support

External camera problem

November 28, 2018 - 5:59pm #5

Of course, we using a C/C++ implementation based on vuforia-driver-sample-uvcdriver-android-7-5-20 from your website.

Please refer to the first post in this thread.  There was a tombstone in the post.

The UVC camera could work well when we first launched the app (at the first time, a USB permission request dialog would popup). Then, we closed the app and re-launch it (at the second launching, the USB permission request dialog did not popup again), however,  libVuforia.so crashed with the tombstone info in #1 post.

If we unplug the UVC and plug it in and relaunch the app again, it works well with the  USB permission request dialog popup.

External camera problem

November 27, 2018 - 2:26pm #4

Hello,

To clarify, the External Camera works in Unity. It’s the actual driver library implementation that needs to be in C/C++, with the library that is included in the Unity project just like the Engine SDK.

The Unity project then specifies using the same style call as used in native in C# giving the name of the driver library.

Thanks,

Vuforia Engine Support

External camera problem

November 27, 2018 - 10:01am #3

Hello,

Per our documentation: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/driver-framework.html

"The Vuforia Engine Driver must be written in C/C++ and must be implemented as a standalone dynamic library (dll or so file) which Vuforia Engine will load at runtime."

Thanks,

Vuforia Engine Support

External camera problem

November 22, 2018 - 4:54pm #2

Is there a solution?

Log in or register to post comments