Topic has a solution and is locked
Log in or register to post comments

Android Crash Unity 5.5.3f1

May 11, 2017 - 6:31am #6
Topic solved

Using the latest Vuforia package downloaded from the Unity Asset  Store (V6.2) and Unity 5.5.3f1 everything runs smoothly in the editor and I can perfectly view my image targets and associated models, however when I make a build as soon as the Vuforia behaviour starts (initiated by player input) the app crashes out.

There are no errors on the device itself (Crash to Desktop) and I cant really find the relevant error in my Monitor.bat.(Monitor bat has way too much logging...is that just me?)

I have a free Vuforia account.

Is this a known issue? Any workarounds?

Do I need to somehow script my CameraDevice to be the androids camera ?(In the inspector there is only the option to choose my webcam).

My settings :

Bundle Id: com.SitePoint.ARDemo

IL2CPP 

ARMv7

Api: .NET 2.0

Install Location: Automatic

Write Permission: Internal

 

Fingers crossed somebody can help me.

Thanks in advance

Simon

Android Crash Unity 5.5.3f1

May 12, 2017 - 5:50am #5

Here is the LogCat at (I think) the point the Vuforia behaviour is activated and the app crashes to desktop. I cant really understand this but it may have clues for some:

 

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf, af_is_touchshot 0, af_touchshot_mode 0

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: vfe_map: 4980 x 2988, pp_crop_out: 800 x 480, preview: 800 x 480, Input Zoom factor: 1.000000, zoom_level = 0

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: Input ROI - x: 0 y: 0 dx: 0 dy: 0

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: CAMIF size: 5312 x 2988

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: ROI limit check failed. Using Center ROI!

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: Default ROI

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: Calculated new ROI: Primary: (266, 150, 4780 2688)Scale: (266, 150, 4780, 2688)

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_adjust_roi_lgaf: Request ISP to configure new ROI

05-12 09:40:44.715: E/mm-camera-CORE(510): af_util_stats_config_info_lgaf: 2nd h_num_default 18, v_num_default 14

05-12 09:40:44.716: E/mm-camera-isp2(510): scaler44_handle_isp_private_event:1593 failed: invalid private event 17

05-12 09:40:44.716: E/mm-camera-isp2(510): scaler44_handle_isp_private_event:1593 failed: invalid private event 17

05-12 09:40:44.733: W/Camera3-OutputStream(441): disconnectLocked: While disconnecting stream 0 from native window, the native window died from under us

05-12 09:40:44.735: E/QCamera3Channel(441): virtual int32_t qcamera::QCamera3Channel::stop(): Attempt to stop inactive channel

05-12 09:40:44.735: E/QCamera3Channel(441): virtual int32_t qcamera::QCamera3Channel::stop(): Attempt to stop inactive channel

05-12 09:40:44.735: D/mm-camera(510): mct: mct_pipeline_process_set:command=8000009

05-12 09:40:44.735: D/mm-camera(510): mct: mct_pipeline_process_set: STREAM-OFF on stream 0x10004 stream type=11

05-12 09:40:44.735: E/mm-camera-sensor(510): sensor_proxy_thread_pause:264enter

05-12 09:40:44.735: E/mm-camera-sensor(510): proxy_thread_pause:287p_thread, enter

05-12 09:40:44.735: E/mm-camera-sensor(510): proxy_thread_pause:292p_thread,end

05-12 09:40:44.736: E/mm-camera(510): af_port_pause_proxy_value

05-12 09:40:44.736: E/mm-camera-CORE(510): AEC_SET_PARAM_RESET_STREAM_INFO: op_mode chanage(AEC_OPERATION_MODE_PREVIEW)

05-12 09:40:44.736: E/mm-camera-sensor(510): sensor_proxy_thread_pause:264enter

05-12 09:40:44.736: E/mm-camera-sensor(510): proxy_thread_pause:287p_thread, enter

05-12 09:40:44.736: E/mm-camera-sensor(510): proxy_thread_pause:292p_thread,end

05-12 09:40:44.736: E/mm-camera(510): module_faceproc_port_event_func:794] FD_STREAMOFF 0 10004

05-12 09:40:44.740: E/mm-camera(510): iface_streamoff: session_id = 1, active_streams = 0

05-12 09:40:44.741: E/mm-camera(510): iface_axi_stats_stream_unconfig: release stats stream id 80010003, handle a05

05-12 09:40:44.741: E/mm-camera(510): iface_stats_unreg_buf: last VFE close, relase stats buffer

05-12 09:40:44.741: E/mm-camera(510): iface_axi_stats_stream_unconfig: release stats stream id 80010004, handle b06

05-12 09:40:44.741: E/mm-camera(510): iface_stats_unreg_buf: last VFE close, relase stats buffer

05-12 09:40:44.741: E/mm-camera(510): iface_axi_stats_stream_unconfig: release stats stream id 80010007, handle 902

05-12 09:40:44.741: E/mm-camera(510): iface_stats_unreg_buf: last VFE close, relase stats buffer

05-12 09:40:44.742: E/mm-camera(510): iface_axi_stats_stream_unconfig: release stats stream id 80010008, handle 803

05-12 09:40:44.742: E/mm-camera(510): iface_stats_unreg_buf: last VFE close, relase stats buffer

05-12 09:40:44.742: E/mm-camera(510): iface_axi_stats_stream_unconfig: release stats stream id 8001000a, handle c08

05-12 09:40:44.742: E/mm-camera(510): iface_stats_unreg_buf: last VFE close, relase stats buffer

05-12 09:40:44.742: E/mm-camera(510): iface_axi_stats_stream_unconfig: release stats stream id 8001000b, handle d00

05-12 09:40:44.742: E/mm-camera(510): iface_stats_unreg_buf: last VFE close, relase stats buffer

05-12 09:40:44.743: E/mm-camera(510): iface_util_release_resource: camif_cnt= 1 rdi_cnt= 0 used mask 1

05-12 09:40:44.743: E/mm-camera(510): iface_util_release_resource: camif_cnt= 0 rdi_cnt= 0 used mask 0

05-12 09:40:44.744: E/mm-camera(510): iface_streamoff: all bundled stream streamoff, clear hal bundled mask

05-12 09:40:44.744: D/mm-camera(510): mct: stop_sof_check_thread: Stopping SOF timeout thread

05-12 09:40:44.744: E/mm-camera(510): sensor_pdaf_deinit:4132failed to open pdaf3 init library function

05-12 09:40:44.744: D/mm-camera(510): mct: mct_pipeline_process_set: STREAM-OFF success for stream 0x10004, stream type=11

05-12 09:40:44.749: D/mm-camera(510): mct: mct_pipeline_process_set:command=800000b

05-12 09:40:44.749: D/mm-camera(510): mct: mct_pipeline_process_set: Issuing DEL_STREAM on stream 0x10003 and stream type=1

05-12 09:40:44.749: D/mm-camera(510): mct: mct_stream_streamoff: STREAMING OFF stream 0x10001

05-12 09:40:44.749: D/mm-camera(510): mct: mct_stream_streamoff: Stream 0x10001 successfully streamed off.

05-12 09:40:44.749: E/mm-camera(510): port_iface_ext_unlink_func: E, identity = 0x10003, port = 0xf51dbfc0, direction = 2

05-12 09:40:44.749: E/mm-camera(510): port_iface_check_caps_unreserve_func:  E, identity = 0x10003, port = 0xf51dbfc0, direction = 2

05-12 09:40:44.749: E/mm-camera(510): iface_unreserve_sink_port: stream_id 3 mode 0

05-12 09:40:44.749: E/mm-camera(510): port_iface_ext_unlink_func: E, identity = 0x10003, port = 0xf51dc2c0, direction = 1

05-12 09:40:44.749: E/mm-camera(510): iface_ext_unlink_src_port: mct stream already removed from hw stream

05-12 09:40:44.749: E/mm-camera(510): port_iface_check_caps_unreserve_func:  E, identity = 0x10003, port = 0xf51dc2c0, direction = 1

05-12 09:40:44.749: E/mm-camera(510): isp_port_check_caps_unreserve:826 ide 10003 port 0xf4c3f0a0

05-12 09:40:44.749: E/mm-camera(510): module_afs_port_check_caps_unreserve:1453]

05-12 09:40:44.749: E/mm-camera(510): module_afs_port_check_caps_unreserve:1461] destroy client

05-12 09:40:44.749: D/mm-camera(510): mct: mct_pipeline_process_set: Stream 0x10003 and stream type=1, successfully deleted

05-12 09:40:44.750: E/QCamera3Channel(441): virtual qcamera::QCamera3Channel::~QCamera3Channel(): deleting channel 82178

05-12 09:40:44.750: D/mm-camera(510): mct: mct_pipeline_process_set:command=800000b

05-12 09:40:44.750: D/mm-camera(510): mct: mct_pipeline_process_set: Issuing DEL_STREAM on stream 0x10002 and stream type=5

05-12 09:40:44.750: E/mm-camera(510): port_iface_ext_unlink_func: E, identity = 0x10002, port = 0xf51dbfc0, direction = 2

05-12 09:40:44.750: E/mm-camera(510): port_iface_check_caps_unreserve_func:  E, identity = 0x10002, port = 0xf51dbfc0, direction = 2

05-12 09:40:44.751: E/mm-camera(510): iface_unreserve_sink_port: stream_id 2 mode 0

05-12 09:40:44.751: E/mm-camera(510): port_iface_ext_unlink_func: E, identity = 0x10002, port = 0xf51dc2c0, direction = 1

05-12 09:40:44.751: E/mm-camera(510): iface_ext_unlink_src_port: mct stream already removed from hw stream

05-12 09:40:44.751: E/mm-camera(510): port_iface_check_caps_unreserve_func:  E, identity = 0x10002, port = 0xf51dc2c0, direction = 1

05-12 09:40:44.751: E/mm-camera(510): isp_port_check_caps_unreserve:826 ide 10002 port 0xf4c3f0a0

05-12 09:40:44.751: E/mm-camera(510): module_afs_port_check_caps_unreserve:1453]

05-12 09:40:45.001: E/ThermalEngine(461): ACTION: CLUSTER - Setting CLUSTER[1] to 1344000

Android Crash Unity 5.5.3f1

May 12, 2017 - 3:03pm #4

Hello,

Are you trying to build and run on a PC? If so, Vuforia does not support that outside of Unity PlayMode.

Thanks.

Android Crash Unity 5.5.3f1

May 15, 2017 - 4:47am #3

I am trying to build from Unity on a Windows PC to an Android device.

 

Although, I'm not sure what you are saying exactly. That I cant build to Android from my PC? If not why not, is this a limitation of the free Vuforia or something else? Surely there is a way to build Vuforia apps on Android...are you saying its mac only?

 

Maybe I have misunderstood.

 

 

Android Crash Unity 5.5.3f1

May 15, 2017 - 1:14pm #2

Hello,

The misunderstanding was on my part. Vuforia does support building for Android on a PC, using Unity or Studio.

I noticed from your settings that you're using IL2CPP, which is only support by Vuforia for iOS. Perhaps this is the source of the issue?

Thanks.

Android Crash Unity 5.5.3f1

May 16, 2017 - 5:37am #1

That worked. Building with Mono on Android now and everything works fine. Many Thanks

Log in or register to post comments