Start a new topic
Solved

Camera is not working on Android.

Hi,

I am using Unity 2018.3.3 and I notice that the camera never turns on. I deselected the multithread rendering, camera2 API, and metal. I tried both IL2PP and mono, but the camera always shows a black background.


I tried Unity 2018.2 with Wikitude 8.2 SDK. The camera works perfectly on Android and IOS phone. But it never works on Unity 2018.3.3. 

I can't downgrade unity because all prefabs in my project will be messed up. 

Is there any way I can solve the problem?


Thank you.


I used unity 2018.3.1f Wikitude 8.5 x for unity Exported to ZenFone 3max with Nougat. Also tried with redmi Changed x86 architecture to ARM64 Camera is not opening inside the unity embedded android application

Hi LONGCHANG CUI


May I ask you where did you add the camera permission code?


Thanks a lot

Hi, 


Please post the logs from logcat so we can have a better understanding of what the problem is.


Regarding the permission issue, it is important that permissions are granted before the Wikitude SDK starts. This is why it doesn't work to just add the MenuController to the WikitudeCamera GameObject. By the time the permissions are granted, the Start method on the WikitudeCamera will be called and the SDK will try to initialize without proper permissions.

So either ask for permissions in a separate loading or menu scene, as we do in our samples, or delay the initialization of the SDK, either by creating all the relevant Wikitude GameObjects at runtime, or by having them disabled initially and only enabling them when the permission has been granted.


Best regards,

Alexandru

Hi, 


SDK 8.2 was tested with 2018.3 beta, which was the latest version available at the time of release and it was working there. I'll do additional testing with this specific version to see what the problems are and how they can be addressed.


Is the problem on both iOS and Android? Is it working in the editor? Can you please post the logs from both iOS and Android?


Thank you,

Alexandru

Hi, 


In our samples, the code is present in the MenuController.cs script. You can add it anywhere, but please make sure that it is executed before the WikitudeCamera starts.


Best regards,

Alexandru

The camera works fine on iOS if I build my project with Unity 2018.3.3. But the camera is not working on the Android device. When I open my app on Android, it won't ask for camera permission.


When I build my app with Unity 2018.2.14 and open it, the Andorid phone immediately asks the camera permission.


The project setting is the same on both Unity 2018.2.14 and Unity 2018.3.3. 

The camera works fine in the editor on both Unity version as well.


This is my log from Android Studio (I have done a plugin from unity for Android studio)


2019-07-26 11:04:04.516 23652-23652/? I/com.xrlab.tire: Late-enabling -Xcheck:jni

2019-07-26 11:04:05.727 23652-23652/? W/com.xrlab.tire: JIT profile information will not be recorded: profile file does not exits.

2019-07-26 11:04:05.734 23652-23652/? I/chatty: uid=10126(com.xrlab.tired) identical 10 lines

2019-07-26 11:04:05.734 23652-23652/? W/com.xrlab.tire: JIT profile information will not be recorded: profile file does not exits.

2019-07-26 11:04:06.227 23652-23652/com.xrlab.tired I/Perf: Connecting to perf service.

2019-07-26 11:04:06.275 23652-23652/com.xrlab.tired I/InstantRun: starting instant run server: is main process

2019-07-26 11:04:06.991 23652-23652/com.xrlab.tired W/com.xrlab.tire: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)

2019-07-26 11:04:06.995 23652-23652/com.xrlab.tired W/com.xrlab.tire: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)

2019-07-26 11:04:07.188 23652-23652/com.xrlab.tired I/Timeline: Timeline: Activity_launch_request time:324433892 intent:Intent { cmp=com.xrlab.tired/com.XRLab.com.UnityPlayerActivity }

2019-07-26 11:04:07.226 23652-23652/com.xrlab.tired W/Activity: Slow Operation: Activity com.xrlab.tired/.MainActivity onCreate took 762ms

2019-07-26 11:04:07.320 23652-23652/com.xrlab.tired W/Looper: Slow Looper: Activity com.xrlab.tired/.MainActivity is 974ms late (wall=1022ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 2 msg, msg 1 took 1016ms (late=1ms h=android.app.ActivityThread$H w=110)

2019-07-26 11:04:07.457 23652-23812/com.xrlab.tired I/Adreno: QUALCOMM build : 2df12b3, I07da2d9908

    Build Date : 10/04/18

    OpenGL ES Shader Compiler Version: EV031.25.03.01

    Local Branch : 

    Remote Branch : 

    Remote Branch : 

    Reconstruct Branch : 

2019-07-26 11:04:07.457 23652-23812/com.xrlab.tired I/Adreno: Build Config : S L 6.0.7 AArch64

2019-07-26 11:04:07.494 23652-23812/com.xrlab.tired I/Adreno: PFP: 0x005ff110, ME: 0x005ff066

2019-07-26 11:04:07.505 23652-23812/com.xrlab.tired I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0

2019-07-26 11:04:07.506 23652-23812/com.xrlab.tired I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0

2019-07-26 11:04:07.507 23652-23812/com.xrlab.tired I/OpenGLRenderer: Initialized EGL, version 1.4

2019-07-26 11:04:07.507 23652-23812/com.xrlab.tired D/OpenGLRenderer: Swap behavior 2

2019-07-26 11:04:07.538 23652-23652/com.xrlab.tired W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@f4d8c52

2019-07-26 11:04:08.141 23652-23652/com.xrlab.tired I/Choreographer: Skipped 35 frames! The application may be doing too much work on its main thread.

2019-07-26 11:04:08.465 23652-23812/com.xrlab.tired I/OpenGLRenderer: Davey! duration=921ms; Flags=0, IntendedVsync=324434248530268, Vsync=324434831863578, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=324434865359917, AnimationStart=324434865520281, PerformTraversalsStart=324434865529188, DrawStart=324434874934240, SyncQueued=324434885082469, SyncStart=324434885227938, IssueDrawCommandsStart=324434885374448, SwapBuffers=324435165572833, FrameCompleted=324435169835229, DequeueBufferDuration=9976000, QueueBufferDuration=990000, 

2019-07-26 11:04:08.533 23652-23652/com.xrlab.tired W/Looper: Slow Looper: doFrame is 598ms late because of 3 msg, msg 1 took 480ms (late=188ms h=android.app.ActivityThread$H w=159), msg 2 took 122ms (late=644ms h=android.view.ViewRootImpl$ViewRootHandler c=android.support.v7.app.AppCompatDelegateImpl$2)

2019-07-26 11:04:08.646 23652-23837/com.xrlab.tired W/com.xrlab.tire: Accessing hidden method Ljava/lang/invoke/MethodHandles$Lookup;-><init>(Ljava/lang/Class;I)V (light greylist, reflection)

2019-07-26 11:04:09.276 23652-23837/com.xrlab.tired I/Unity: SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 4, Memory = 2825mb

2019-07-26 11:04:09.276 23652-23837/com.xrlab.tired I/Unity: SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf), 0 little (mask: 0x0)

2019-07-26 11:04:09.278 23652-23837/com.xrlab.tired I/Unity: ApplicationInfo com.xrlab.tired version 1.0 build a158f6da-3c17-44b6-831c-1aec4c7a85a8

2019-07-26 11:04:09.278 23652-23837/com.xrlab.tired I/Unity: Built from '2019.1/release' branch, Version '2019.1.2f1 (3e18427e571f)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled'

2019-07-26 11:04:09.768 23652-23837/com.xrlab.tired D/Unity: GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_EXT_texture_format_sRGB_override GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_EGL_i

2019-07-26 11:04:09.768 23652-23837/com.xrlab.tired D/Unity: mage_external_wrap_modes GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_EXT_buffer_storage GL_EXT

2019-07-26 11:04:09.768 23652-23837/com.xrlab.tired D/Unity: _external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation GL_KHR_robust_buffer_access_behavior GL_EXT_EGL_image_storage GL_EXT_blend_func_extended GL_EXT_clip_control

2019-07-26 11:04:10.013 23652-23837/com.xrlab.tired W/com.xrlab.tire: Accessing hidden method Landroid/media/AudioSystem;->getPrimaryOutputSamplingRate()I (light greylist, JNI)

2019-07-26 11:04:10.014 23652-23837/com.xrlab.tired W/com.xrlab.tire: Accessing hidden method Landroid/media/AudioSystem;->getPrimaryOutputFrameCount()I (light greylist, JNI)

2019-07-26 11:04:10.019 23652-23837/com.xrlab.tired I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)

2019-07-26 11:04:10.019 23652-23837/com.xrlab.tired W/AudioTrack: notificationFrames=-21 clamped to the range -1 to -8

2019-07-26 11:04:10.035 23652-23837/com.xrlab.tired I/AudioTrack: AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 1536

2019-07-26 11:04:10.445 23652-23837/com.xrlab.tired V/MediaRouter: Adding route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }

2019-07-26 11:04:10.461 23652-23837/com.xrlab.tired V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }

2019-07-26 11:04:12.647 23652-23652/com.xrlab.tired I/Timeline: Timeline: Activity_launch_request time:324439352 intent:Intent { act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.google.android.packageinstaller (has extras) }

2019-07-26 11:04:13.071 23652-23837/com.xrlab.tired E/Unity: Unable to find UnityAndroidBridge

2019-07-26 11:04:13.122 23652-23837/com.xrlab.tired E/Unity: DllNotFoundException: Unable to load DLL 'UnityAndroidBridge': The specified module could not be found.

      at Wikitude.AndroidWikitudeBridge.UnityWikitudeBindings_StartWikitudeNativeSDK () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:13.218 23652-23837/com.xrlab.tired E/Unity: DllNotFoundException: Unable to load DLL 'UnityAndroidBridge': The specified module could not be found.

      at Wikitude.AndroidWikitudeBridge.UnityWikitudeBindings_StopWikitudeNativeSDK () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:13.219 23652-23837/com.xrlab.tired D/AudioTrack: stop() called with 143040 frames delivered

2019-07-26 11:04:13.235 23652-23652/com.xrlab.tired W/Activity: Slow Operation: Activity com.xrlab.tired/com.XRLab.com.UnityPlayerActivity onPause took 470ms

2019-07-26 11:04:15.724 23652-23652/com.xrlab.tired V/MediaRouter: onRestoreRoute() : route=RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }

2019-07-26 11:04:15.725 23652-23652/com.xrlab.tired V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }

2019-07-26 11:04:15.810 23652-23837/com.xrlab.tired E/Unity: DllNotFoundException: Unable to load DLL 'UnityAndroidBridge': The specified module could not be found.

      at Wikitude.AndroidWikitudeBridge.UnityWikitudeBindings_StartWikitudeNativeSDK () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:15.883 23652-23871/com.xrlab.tired D/NetworkSecurityConfig: No Network Security Config specified, using platform default

2019-07-26 11:04:15.893 23652-23871/com.xrlab.tired I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor

2019-07-26 11:04:15.983 23652-23837/com.xrlab.tired E/Unity: Error initializing C# functions! System.DllNotFoundException: Unable to load DLL 'UnityAndroidBridge': The specified module could not be found.

      at Wikitude.AndroidPlatformBridge.UnityAndroidBindings_InitializeCSharpFunctions (System.IntPtr csharpFunctions) [0x00000] in <00000000000000000000000000000000>:0 

      at Wikitude.TrackerManager.Init () [0x00000] in <00000000000000000000000000000000>:0 

      at Wikitude.WikitudeCamera.Start () [0x00000] in <00000000000000000000000000000000>:0 

    Wikitude.TrackerManager:Init()

    Wikitude.WikitudeCamera:Start()

     

    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)

2019-07-26 11:04:16.032 23652-23837/com.xrlab.tired E/Unity: DllNotFoundException: Unable to load DLL 'UnityAndroidBridge': The specified module could not be found.

      at Wikitude.AndroidPlatformBridge.UnityAndroidBindings_SetCameraResolution (System.Int32 resolutionMode) [0x00000] in <00000000000000000000000000000000>:0 

      at Wikitude.WikitudeCamera.Start () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:16.043 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:16.893 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 40 lines

2019-07-26 11:04:16.910 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:16.932 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:16.950 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:17.641 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 42 lines

2019-07-26 11:04:17.658 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:17.676 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:17.692 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.658 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 58 lines

2019-07-26 11:04:18.679 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.695 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.848 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 9 lines

2019-07-26 11:04:18.867 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.884 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.899 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 1 line

2019-07-26 11:04:18.917 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.934 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:18.952 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.117 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.137 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.158 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.173 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 1 line

2019-07-26 11:04:19.187 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.204 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.593 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 24 lines

2019-07-26 11:04:19.609 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.628 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.647 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.663 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 1 line

2019-07-26 11:04:19.679 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.695 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.714 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.731 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.748 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.764 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.782 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 1 line

2019-07-26 11:04:19.800 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.817 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.834 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.851 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.884 23652-23837/com.xrlab.tired I/chatty: uid=10126(com.xrlab.tired) UnityMain identical 2 lines

2019-07-26 11:04:19.900 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.926 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

     

    (Filename: currently not available on il2cpp Line: -1)

2019-07-26 11:04:19.943 23652-23837/com.xrlab.tired E/Unity: NullReferenceException: Object reference not set to an instance of an object.

      at Wikitude.WikitudeCamera.Update () [0x00000] in <00000000000000000000000000000000>:0 

Hello,


i made a screenshot of the error log messages. Maybe you could help me fix my errors.


Best regards

Mirko Gleichauf

Wikitude.png
(65.3 KB)

 @Mirko Gleichauf Mirko please add the header in your c# script.

I used the MenueControlle.cs directly from wikitude.

@Mirko Gleichauf

You can add the MenuController Script to your Wikitude cam. 

for permission, error adds the header UnityEngine.Android.Permission


Regards


Jibin John


 Hello,


i added the MenuController Script to the cam. Now i have the errors like you see in the picture. Now i can build the app but it doesn´t ask for the permission so i can´t get a picture from the camera on the smartphone. I also added a picture of the MenuController i use. Should i add something to the MenuController ( in the second picture)

Console.png
(21.2 KB)
Login or Signup to post a comment