Untitled
unknown
plain_text
a year ago
45 kB
17
Indexable
2024-07-15 17:35:28.361 32121-32121 GraphicsEnvironment com.example.vuforiamuseum V ANGLE Developer option for 'com.example.vuforiamuseum' set to: 'default'
2024-07-15 17:35:28.362 32121-32121 GraphicsEnvironment com.example.vuforiamuseum V App is not on the allowlist for updatable production driver.
2024-07-15 17:35:28.365 32121-32121 LoadedApk com.example.vuforiamuseum D LoadedApk::makeApplication() appContext.mOpPackageName=com.example.vuforiamuseum appContext.mBasePackageName=com.example.vuforiamuseum
2024-07-15 17:35:28.365 32121-32121 NetworkSecurityConfig com.example.vuforiamuseum D No Network Security Config specified, using platform default
2024-07-15 17:35:28.387 32121-32121 NetworkSecurityConfig com.example.vuforiamuseum D No Network Security Config specified, using platform default
2024-07-15 17:35:28.401 32121-32121 ActivityThread com.example.vuforiamuseum D handleBindApplication() --
2024-07-15 17:35:28.430 32121-32223 OpenGLRenderer com.example.vuforiamuseum D RenderThread::requireGlContext()
2024-07-15 17:35:28.456 32121-32223 OpenGLRenderer com.example.vuforiamuseum D RenderThread::setGrContext()
2024-07-15 17:35:29.000 32121-32121 e.vuforiamuseu com.example.vuforiamuseum E Invalid ID 0x00000000.
2024-07-15 17:35:29.004 32121-32121 DecorView com.example.vuforiamuseum I [INFO] isPopOver=false, config=true
2024-07-15 17:35:29.004 32121-32121 DecorView com.example.vuforiamuseum I updateCaptionType >> DecorView@b782e88[], isFloating=false, isApplication=true, hasWindowControllerCallback=true, hasWindowDecorCaption=false
2024-07-15 17:35:29.004 32121-32121 DecorView com.example.vuforiamuseum D setCaptionType = 0, this = DecorView@b782e88[]
2024-07-15 17:35:29.010 32121-32121 DecorView com.example.vuforiamuseum I getCurrentDensityDpi: from real metrics. densityDpi=420 msg=resources_loaded
2024-07-15 17:35:29.017 32121-32121 e.vuforiamuseu com.example.vuforiamuseum W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-07-15 17:35:29.017 32121-32121 e.vuforiamuseu com.example.vuforiamuseum W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-07-15 17:35:29.034 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: ignored. pkg=com.example.vuforiamuseum parent=null callers=com.android.internal.policy.DecorView.setVisibility:4224 android.app.ActivityThread.handleResumeActivity:5294 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176
2024-07-15 17:35:29.034 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@b782e88[]
2024-07-15 17:35:29.057 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I setView = com.android.internal.policy.DecorView@b782e88 TM=true
2024-07-15 17:35:29.058 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=true this: DecorView@b782e88[MainActivity]
2024-07-15 17:35:29.058 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@b782e88[MainActivity]
2024-07-15 17:35:29.094 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=11 res=0x7 s={true 521427784352} ch=true fn=-1
2024-07-15 17:35:29.096 32121-32223 hw-ProcessState com.example.vuforiamuseum D Binder ioctl to enable oneway spam detection failed: Invalid argument
2024-07-15 17:35:29.096 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I [DP] dp(1) 1 android.view.ViewRootImpl.reportNextDraw:11261 android.view.ViewRootImpl.performTraversals:4088 android.view.ViewRootImpl.doTraversal:2832
2024-07-15 17:35:29.097 32121-32223 OpenGLRenderer com.example.vuforiamuseum D eglCreateWindowSurface
2024-07-15 17:35:29.098 32121-32317 Gralloc4 com.example.vuforiamuseum I mapper 4.x is not supported
2024-07-15 17:35:29.101 32121-32317 Gralloc3 com.example.vuforiamuseum W mapper 3.x is not supported
2024-07-15 17:35:29.103 32121-32317 gralloc com.example.vuforiamuseum I Arm Module v1.0
2024-07-15 17:35:29.103 32121-32317 Gralloc4 com.example.vuforiamuseum W allocator 4.x is not supported
2024-07-15 17:35:29.112 32121-32317 Gralloc3 com.example.vuforiamuseum W allocator 3.x is not supported
2024-07-15 17:35:29.167 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I [DP] pdf(0) 1 android.view.ViewRootImpl.lambda$createFrameCompleteCallback$3$ViewRootImpl:4846 android.view.ViewRootImpl$$ExternalSyntheticLambda15.run:6 android.os.Handler.handleCallback:938
2024-07-15 17:35:29.167 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I [DP] rdf()
2024-07-15 17:35:29.167 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum D reportDrawFinished (fn: -1)
2024-07-15 17:35:29.186 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I MSG_WINDOW_FOCUS_CHANGED 1 1
2024-07-15 17:35:29.187 32121-32121 InputMethodManager com.example.vuforiamuseum D startInputInner - Id : 0
2024-07-15 17:35:29.187 32121-32121 InputMethodManager com.example.vuforiamuseum I startInputInner - mService.startInputOrWindowGainedFocus
2024-07-15 17:35:29.198 32121-32121 InputMethodManager com.example.vuforiamuseum D startInputInner - Id : 0
2024-07-15 17:35:31.627 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I ViewPostIme pointer 0
2024-07-15 17:35:31.643 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I ViewPostIme pointer 1
2024-07-15 17:35:31.704 32121-32121 DecorView com.example.vuforiamuseum I [INFO] isPopOver=false, config=true
2024-07-15 17:35:31.704 32121-32121 DecorView com.example.vuforiamuseum I updateCaptionType >> DecorView@82f5742[], isFloating=false, isApplication=true, hasWindowControllerCallback=true, hasWindowDecorCaption=false
2024-07-15 17:35:31.704 32121-32121 DecorView com.example.vuforiamuseum D setCaptionType = 0, this = DecorView@82f5742[]
2024-07-15 17:35:31.706 32121-32121 DecorView com.example.vuforiamuseum I getCurrentDensityDpi: from real metrics. densityDpi=420 msg=resources_loaded
2024-07-15 17:35:31.709 32121-32121 e.vuforiamuseu com.example.vuforiamuseum E Invalid ID 0x00000000.
2024-07-15 17:35:31.769 32121-32701 VuforiaActivity com.example.vuforiamuseum D Starting initAR
2024-07-15 17:35:31.769 32121-32701 VuforiaWrapper com.example.vuforiamuseum D Initializing AR
2024-07-15 17:35:31.769 32121-32701 AppController com.example.vuforiamuseum D AppController::initAR started
2024-07-15 17:35:31.769 32121-32701 AppController com.example.vuforiamuseum D Entering initVuforiaInternal
2024-07-15 17:35:31.769 32121-32701 AppController com.example.vuforiamuseum D Creating Vuforia Engine
2024-07-15 17:35:31.770 32121-32701 AR com.example.vuforiamuseum I 2024-07-15 17:35:31: Creating Vuforia Engine instance...
2024-07-15 17:35:31.770 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: ignored. pkg=com.example.vuforiamuseum parent=null callers=com.android.internal.policy.DecorView.setVisibility:4224 android.app.ActivityThread.handleResumeActivity:5294 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176
2024-07-15 17:35:31.770 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@82f5742[]
2024-07-15 17:35:31.772 32121-32121 InsetsSourceConsumer com.example.vuforiamuseum D setRequestedVisible: visible=false, type=21, host=com.example.vuforiamuseum/com.example.vuforiamuseum.VuforiaActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1214 android.view.InsetsController.controlAnimationUnchecked:1076 android.view.InsetsController.applyAnimation:1455 android.view.InsetsController.applyAnimation:1436 android.view.InsetsController.hide:1005 android.view.InsetsController.hide:980 android.view.ViewRootImpl.controlInsetsForCompatibility:3050 android.view.ViewRootImpl.setView:1506 android.view.WindowManagerGlobal.addView:497
2024-07-15 17:35:31.772 32121-32121 InsetsSourceConsumer com.example.vuforiamuseum D setRequestedVisible: visible=false, type=20, host=com.example.vuforiamuseum/com.example.vuforiamuseum.VuforiaActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1214 android.view.InsetsController.controlAnimationUnchecked:1076 android.view.InsetsController.applyAnimation:1455 android.view.InsetsController.applyAnimation:1436 android.view.InsetsController.hide:1005 android.view.InsetsController.hide:980 android.view.ViewRootImpl.controlInsetsForCompatibility:3050 android.view.ViewRootImpl.setView:1506 android.view.WindowManagerGlobal.addView:497
2024-07-15 17:35:31.772 32121-32121 InsetsSourceConsumer com.example.vuforiamuseum D setRequestedVisible: visible=false, type=1, host=com.example.vuforiamuseum/com.example.vuforiamuseum.VuforiaActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1214 android.view.InsetsController.controlAnimationUnchecked:1076 android.view.InsetsController.applyAnimation:1455 android.view.InsetsController.applyAnimation:1436 android.view.InsetsController.hide:1005 android.view.InsetsController.hide:980 android.view.ViewRootImpl.controlInsetsForCompatibility:3050 android.view.ViewRootImpl.setView:1506 android.view.WindowManagerGlobal.addView:497
2024-07-15 17:35:31.773 32121-32121 InsetsSourceConsumer com.example.vuforiamuseum D setRequestedVisible: visible=false, type=0, host=com.example.vuforiamuseum/com.example.vuforiamuseum.VuforiaActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1214 android.view.InsetsController.controlAnimationUnchecked:1076 android.view.InsetsController.applyAnimation:1455 android.view.InsetsController.applyAnimation:1436 android.view.InsetsController.hide:1005 android.view.InsetsController.hide:980 android.view.ViewRootImpl.controlInsetsForCompatibility:3050 android.view.ViewRootImpl.setView:1506 android.view.WindowManagerGlobal.addView:497
2024-07-15 17:35:31.776 32121-32701 AR com.example.vuforiamuseum D ARCore library was not found or there was a problem importing functions. ARCore is not available to Vuforia.
2024-07-15 17:35:31.778 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I setView = com.android.internal.policy.DecorView@82f5742 TM=true
2024-07-15 17:35:31.778 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=true this: DecorView@82f5742[VuforiaActivity]
2024-07-15 17:35:31.778 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@82f5742[VuforiaActivity]
2024-07-15 17:35:31.781 32121-32121 SurfaceView com.example.vuforiamuseum I onWindowVisibilityChanged(0) true android.opengl.GLSurfaceView{3fa40a3 V.E...... ......I. 0,0-0,0} of ViewRootImpl@8931d46[VuforiaActivity]
2024-07-15 17:35:31.785 32121-32701 CameraManagerGlobal com.example.vuforiamuseum I Connecting to camera service
2024-07-15 17:35:31.788 32121-32701 VendorTagDescriptor com.example.vuforiamuseum D addVendorDescriptor: vendor tag id 14172875900359437128 added
2024-07-15 17:35:31.790 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.example.vuforiamuseum API Level 2
2024-07-15 17:35:31.790 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.sec.android.app.camera API Level 2
2024-07-15 17:35:31.791 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 2 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.791 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 20 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.sec.android.app.camera API Level 2
2024-07-15 17:35:31.791 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 21 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.792 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=8 res=0x7 s={true 521428141872} ch=true fn=-1
2024-07-15 17:35:31.793 32121-32223 OpenGLRenderer com.example.vuforiamuseum D eglCreateWindowSurface
2024-07-15 17:35:31.793 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 23 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.793 32121-32121 SurfaceView com.example.vuforiamuseum I windowStopped(false) true android.opengl.GLSurfaceView{3fa40a3 V.E...... ......ID 0,0-1080,2280} of ViewRootImpl@8931d46[VuforiaActivity]
2024-07-15 17:35:31.793 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 3 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.794 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 4 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.vuforia.engine.native_sample API Level 2
2024-07-15 17:35:31.794 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I [DP] dp(1) 1 android.view.ViewRootImpl.reportNextDraw:11261 android.view.ViewRootImpl.performTraversals:4088 android.view.ViewRootImpl.doTraversal:2832
2024-07-15 17:35:31.794 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 40 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.795 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 41 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.795 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 5 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.795 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 50 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.796 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 52 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.796 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 80 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client android.system API Level 2
2024-07-15 17:35:31.796 32121-32121 SurfaceView com.example.vuforiamuseum I updateSurface: mVisible = true mSurface.isValid() = true
2024-07-15 17:35:31.796 32121-32121 SurfaceView com.example.vuforiamuseum I updateSurface: mSurfaceCreated = false surfaceChanged = true visibleChanged = true
2024-07-15 17:35:31.796 32121-32121 SurfaceView com.example.vuforiamuseum I surfaceCreated 1 #8 android.opengl.GLSurfaceView{3fa40a3 V.E...... ......ID 0,0-1080,2280}
2024-07-15 17:35:31.796 32121-32121 SurfaceView com.example.vuforiamuseum I surfaceChanged (1080,2280) 1 #8 android.opengl.GLSurfaceView{3fa40a3 V.E...... ......ID 0,0-1080,2280}
2024-07-15 17:35:31.797 32121-32166 CameraManagerGlobal com.example.vuforiamuseum I Camera 81 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.bio.face.service API Level 2
2024-07-15 17:35:31.797 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I [DP] dp(2) 1 android.view.SurfaceView.updateSurface:1380 android.view.SurfaceView.lambda$new$1$SurfaceView:253 android.view.SurfaceView$$ExternalSyntheticLambda2.onPreDraw:2
2024-07-15 17:35:31.797 32121-32140 CameraManagerGlobal com.example.vuforiamuseum I Camera 91 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.bio.face.service API Level 2
2024-07-15 17:35:31.799 32121-32700 VuforiaActivity com.example.vuforiamuseum D onSurfaceCreated
2024-07-15 17:35:31.799 32121-32700 VuforiaActivity com.example.vuforiamuseum D onSurfaceChanged: width=1080, height=2280
2024-07-15 17:35:31.801 32121-32701 AR com.example.vuforiamuseum I 2024-07-15 17:35:31: Required permissions have been granted
2024-07-15 17:35:31.801 32121-32701 AR com.example.vuforiamuseum I 2024-07-15 17:35:31: Vuforia build version: 10.24.4+2661
2024-07-15 17:35:31.811 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I [DP] pdf(1) 1 android.view.ViewRootImpl.lambda$createFrameCompleteCallback$3$ViewRootImpl:4846 android.view.ViewRootImpl$$ExternalSyntheticLambda15.run:6 android.os.Handler.handleCallback:938
2024-07-15 17:35:31.812 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I MSG_WINDOW_FOCUS_CHANGED 0 1
2024-07-15 17:35:31.819 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I [DP] pdf(0) 1 android.view.SurfaceView.notifyDrawFinished:607 android.view.SurfaceView.performDrawFinished:594 android.view.SurfaceView.$r8$lambda$st27mCkd9jfJkTrN_P3qIGKX6NY:0
2024-07-15 17:35:31.819 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I [DP] rdf()
2024-07-15 17:35:31.819 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum D reportDrawFinished (fn: -1)
2024-07-15 17:35:31.832 32121-32121 ViewRootIm...aActivity] com.example.vuforiamuseum I MSG_WINDOW_FOCUS_CHANGED 1 1
2024-07-15 17:35:31.833 32121-32121 InputMethodManager com.example.vuforiamuseum D startInputInner - Id : 0
2024-07-15 17:35:31.833 32121-32121 InputMethodManager com.example.vuforiamuseum I startInputInner - mService.startInputOrWindowGainedFocus
2024-07-15 17:35:32.218 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I handleAppVisibility mAppVisible=true visible=false
2024-07-15 17:35:32.233 32121-32223 OpenGLRenderer com.example.vuforiamuseum D setSurface called with nullptr
2024-07-15 17:35:32.233 32121-32223 OpenGLRenderer com.example.vuforiamuseum D setSurface() destroyed EGLSurface
2024-07-15 17:35:32.233 32121-32223 OpenGLRenderer com.example.vuforiamuseum D destroyEglSurface
2024-07-15 17:35:32.242 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)8 dur=6 res=0x5 s={false 0} ch=true fn=25
2024-07-15 17:35:32.244 32121-32121 ViewRootIm...nActivity] com.example.vuforiamuseum I stopped(true) old=false
2024-07-15 17:35:32.245 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=true this: DecorView@b782e88[MainActivity]
2024-07-15 17:35:32.245 32121-32121 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@b782e88[MainActivity]
2024-07-15 17:35:32.979 32121-32701 AR com.example.vuforiamuseum I Creating Vuforia Engine instance...SUCCESS
2024-07-15 17:35:32.979 32121-32701 AppController com.example.vuforiamuseum D Vuforia Engine created successfully
2024-07-15 17:35:32.980 32121-32701 AppController com.example.vuforiamuseum D Failed to create file: /data/local/tmp/vuforia_temp_149040.xml
2024-07-15 17:35:32.980 32121-32701 AppController com.example.vuforiamuseum D Failed to copy XML file
2024-07-15 17:35:32.980 32121-32701 AppController com.example.vuforiamuseum D Failed to create observers
2024-07-15 17:35:32.982 32121-32701 libc++abi com.example.vuforiamuseum E terminating due to uncaught exception of type std::__ndk1::bad_function_call: std::exception
2024-07-15 17:35:32.983 32121-32701 libc com.example.vuforiamuseum A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 32701 (DefaultDispatch), pid 32121 (e.vuforiamuseum)
2024-07-15 17:35:33.607 483-483 ActivityThread com.example.vuforiamuseum I Relaunch all activities: onCoreSettingsChange
2024-07-15 17:35:33.607 483-483 ActivityThread com.example.vuforiamuseum D handleBindApplication()++ app=com.example.vuforiamuseum
2024-07-15 17:35:33.608 483-483 Compatibil...geReporter com.example.vuforiamuseum D Compat change id reported: 171979766; UID 10481; state: ENABLED
2024-07-15 17:35:33.739 483-483 GraphicsEnvironment com.example.vuforiamuseum V ANGLE Developer option for 'com.example.vuforiamuseum' set to: 'default'
2024-07-15 17:35:33.740 483-483 GraphicsEnvironment com.example.vuforiamuseum V App is not on the allowlist for updatable production driver.
2024-07-15 17:35:33.745 483-483 LoadedApk com.example.vuforiamuseum D LoadedApk::makeApplication() appContext.mOpPackageName=com.example.vuforiamuseum appContext.mBasePackageName=com.example.vuforiamuseum
2024-07-15 17:35:33.745 483-483 NetworkSecurityConfig com.example.vuforiamuseum D No Network Security Config specified, using platform default
2024-07-15 17:35:33.770 483-483 NetworkSecurityConfig com.example.vuforiamuseum D No Network Security Config specified, using platform default
2024-07-15 17:35:33.781 483-483 ActivityThread com.example.vuforiamuseum D handleBindApplication() --
2024-07-15 17:35:33.801 483-544 OpenGLRenderer com.example.vuforiamuseum D RenderThread::requireGlContext()
2024-07-15 17:35:33.807 483-544 OpenGLRenderer com.example.vuforiamuseum D RenderThread::setGrContext()
2024-07-15 17:35:33.867 483-483 e.vuforiamuseu com.example.vuforiamuseum E Invalid ID 0x00000000.
2024-07-15 17:35:33.873 483-483 DecorView com.example.vuforiamuseum I [INFO] isPopOver=false, config=true
2024-07-15 17:35:33.873 483-483 DecorView com.example.vuforiamuseum I updateCaptionType >> DecorView@634fc46[], isFloating=false, isApplication=true, hasWindowControllerCallback=true, hasWindowDecorCaption=false
2024-07-15 17:35:33.873 483-483 DecorView com.example.vuforiamuseum D setCaptionType = 0, this = DecorView@634fc46[]
2024-07-15 17:35:33.880 483-483 DecorView com.example.vuforiamuseum I getCurrentDensityDpi: from real metrics. densityDpi=420 msg=resources_loaded
2024-07-15 17:35:33.887 483-483 e.vuforiamuseu com.example.vuforiamuseum W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-07-15 17:35:33.887 483-483 e.vuforiamuseu com.example.vuforiamuseum W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-07-15 17:35:33.904 483-483 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: ignored. pkg=com.example.vuforiamuseum parent=null callers=com.android.internal.policy.DecorView.setVisibility:4224 android.app.ActivityThread.handleResumeActivity:5294 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176
2024-07-15 17:35:33.904 483-483 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@634fc46[]
2024-07-15 17:35:33.923 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum I setView = com.android.internal.policy.DecorView@634fc46 TM=true
2024-07-15 17:35:33.924 483-483 MSHandlerLifeCycle com.example.vuforiamuseum I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=true this: DecorView@634fc46[MainActivity]
2024-07-15 17:35:33.924 483-483 MSHandlerLifeCycle com.example.vuforiamuseum I removeMultiSplitHandler: no exist. decor=DecorView@634fc46[MainActivity]
2024-07-15 17:35:33.950 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=10 res=0x7 s={true 521427784352} ch=true fn=-1
2024-07-15 17:35:33.952 483-544 hw-ProcessState com.example.vuforiamuseum D Binder ioctl to enable oneway spam detection failed: Invalid argument
2024-07-15 17:35:33.953 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum I [DP] dp(1) 1 android.view.ViewRootImpl.reportNextDraw:11261 android.view.ViewRootImpl.performTraversals:4088 android.view.ViewRootImpl.doTraversal:2832
2024-07-15 17:35:33.953 483-544 OpenGLRenderer com.example.vuforiamuseum D eglCreateWindowSurface
2024-07-15 17:35:33.955 483-561 Gralloc4 com.example.vuforiamuseum I mapper 4.x is not supported
2024-07-15 17:35:33.956 483-561 Gralloc3 com.example.vuforiamuseum W mapper 3.x is not supported
2024-07-15 17:35:33.957 483-561 gralloc com.example.vuforiamuseum I Arm Module v1.0
2024-07-15 17:35:33.958 483-561 Gralloc4 com.example.vuforiamuseum W allocator 4.x is not supported
2024-07-15 17:35:33.959 483-561 Gralloc3 com.example.vuforiamuseum W allocator 3.x is not supported
2024-07-15 17:35:33.975 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum I [DP] pdf(0) 1 android.view.ViewRootImpl.lambda$createFrameCompleteCallback$3$ViewRootImpl:4846 android.view.ViewRootImpl$$ExternalSyntheticLambda15.run:6 android.os.Handler.handleCallback:938
2024-07-15 17:35:33.975 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum I [DP] rdf()
2024-07-15 17:35:33.975 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum D reportDrawFinished (fn: -1)
2024-07-15 17:35:33.992 483-483 ViewRootIm...nActivity] com.example.vuforiamuseum I MSG_WINDOW_FOCUS_CHANGED 1 1
2024-07-15 17:35:33.993 483-483 InputMethodManager com.example.vuforiamuseum D startInputInner - Id : 0
2024-07-15 17:35:33.993 483-483 InputMethodManager com.example.vuforiamuseum I startInputInner - mService.startInputOrWindowGainedFocus
2024-07-15 17:35:33.997 483-483 InputMethodManager com.example.vuforiamuseum D startInputInner - Id : 0
2024-07-15 17:36:12.085 1717-1717 ActivityThread com.example.vuforiamuseum W Application com.example.vuforiamuseum is waiting for the debugger on port 8100...
2024-07-15 17:36:12.086 1717-1717 System.out com.example.vuforiamuseum I Sending WAIT chunk
--Logcat çıktısı--
cmake_minimum_required(VERSION 3.4.1)
project(VuforiaSample)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
# Vuforia SDK yolunu tanımlayın
set(VUFORIA_ENGINE ${CMAKE_CURRENT_LIST_DIR}/../../../../VuforiaSDK)
# Gerekli kütüphaneleri bulun
find_library(ANDROID_LIBRARY android)
find_library(LOG_LIBRARY log)
find_library(GLES3_LIBRARY GLESv3)
# Vuforia kütüphanesini içe aktarın
add_library(VUFORIA_LIBRARY SHARED IMPORTED)
set_target_properties(VUFORIA_LIBRARY PROPERTIES
IMPORTED_LOCATION ${VUFORIA_ENGINE}/build/lib/${ANDROID_ABI}/libVuforiaEngine.so
)
# Asset dosyalarını kopyalayın
file(COPY ${CMAKE_CURRENT_LIST_DIR}/../assets/test_images.dat DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/assets)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/../assets/test_images.xml DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/assets)
# VuforiaSample kütüphanesini oluşturun
add_library(VuforiaSample SHARED
${CMAKE_CURRENT_LIST_DIR}/../../../../CrossPlatform/AppController.cpp
${CMAKE_CURRENT_LIST_DIR}/GLESRenderer.cpp
${CMAKE_CURRENT_LIST_DIR}/GLESUtils.cpp
${CMAKE_CURRENT_LIST_DIR}/VuforiaWrapper.cpp
)
# Include dizinlerini ekleyin
target_include_directories(VuforiaSample PUBLIC
${CMAKE_CURRENT_LIST_DIR}/../../../../CrossPlatform
${VUFORIA_ENGINE}/build/include
${ANDROID_NDK}/sources/android/native_app_glue
)
# Kütüphaneleri bağlayın
target_link_libraries(VuforiaSample
${ANDROID_LIBRARY}
${LOG_LIBRARY}
${GLES3_LIBRARY}
VUFORIA_LIBRARY
)
--CMakeLists.txt dosyam--
#include "AppController.h"
#include <cassert>
#include <cstring>
#include <GLES3/gl3.h>
#include <android/log.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <__filesystem/operations.h>
#include <cstdio>
#include <sys/stat.h>
#include <random>
#include <sstream>
#define LOG_TAG "AppController"
#define LOG(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#define LOGA(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
namespace {
namespace fs = std::filesystem;
constexpr char licenseKey[] = "Af4hJpT/////AAABmac5UqRWk0Cagjw1TkzlkBZY/rylq/ajEYWLA7ZXDeyLWpgBthQNdkOQJ7I7A4TGdx1K94RaehQZGSKiN7XJotUBYlUOoyMe1iVza4Df2x46QCZaT/PXA6D11+YvU9MSGHhb1s1d6IYKfJV5/d7XI4VOJrHFmyTXUhGiuXvlMEArnI6nn8ODdNhF4owypPx/Enqp0HqzO/grJh2wJQzfDFtY0Q5LmyD90+rkSkCaUMrrgoSWQYApPqRbdiMlkzJJqRwvct4cfp1CRMITM5AXqkmSFzADl8iXUdL9VaaKQFQ5/mE0w7ybVAFP+3cfeK4EATgNw0ACIKSBFMIDjqjLwanL77q0UZfaXxF3VPbKvKso";
}
bool AppController::initAR(const InitConfig& initConfig)
{
LOG("AppController::initAR started");
assetManager = initConfig.assetManager;
if (!initVuforiaInternal(initConfig))
{
LOG("Failed to initialize Vuforia Engine internally");
mErrorMessageCallback("Failed to initialize Vuforia Engine internally");
return false;
}
if (mEngine == nullptr)
{
LOG("Vuforia Engine instance is null after initialization");
mErrorMessageCallback("Vuforia Engine instance is null after initialization");
return false;
}
if (!createObservers())
{
LOG("Failed to create observers");
mErrorMessageCallback("Failed to create observers");
return false;
}
LOG("Vuforia Engine initialized successfully");
mInitDoneCallback();
return true;
}
bool AppController::startAR() {
LOG("AppController::startAR");
if (mEngine == nullptr) {
LOG("Failed to start AR: No valid engine instance");
return false;
}
if (vuEngineStart(mEngine) != VU_SUCCESS) {
LOG("Failed to start Vuforia");
return false;
}
mARStarted = true;
return true;
}
bool AppController::stopAR() {
if (mEngine == nullptr || !mARStarted) {
return false;
}
if (vuEngineStop(mEngine) != VU_SUCCESS) {
LOG("Failed to stop Vuforia");
return false;
}
mARStarted = false;
return true;
}
void AppController::deinitAR() {
if (mEngine == nullptr) {
return;
}
stopAR();
destroyObservers();
if (vuEngineDestroy(mEngine) != VU_SUCCESS) {
LOG("Failed to destroy engine instance");
}
mEngine = nullptr;
}
bool AppController::configureRendering(int width, int height, void* orientationData) {
LOG("AppController::configureRendering: width=%d, height=%d", width, height);
if (!mARStarted || mEngine == nullptr) {
LOG("Failed to configure rendering: AR not started or engine is null");
return false;
}
VuController* renderController = nullptr;
VuResult result = vuEngineGetRenderController(mEngine, &renderController);
if (result != VU_SUCCESS) {
LOG("Failed to get render controller. Error code: %d", result);
return false;
}
VuRenderViewConfig renderViewConfig;
renderViewConfig.resolution.data[0] = width;
renderViewConfig.resolution.data[1] = height;
result = vuRenderControllerSetRenderViewConfig(renderController, &renderViewConfig);
if (result != VU_SUCCESS) {
LOG("Failed to set render view configuration. Error code: %d", result);
return false;
}
int* orientationValues = static_cast<int*>(orientationData);
int orientation = orientationValues[0];
int rotation = orientationValues[1];
LOG("Orientation: %d, Rotation: %d", orientation, rotation);
// Additional configuration based on orientation and rotation
LOG("Rendering configuration completed successfully");
return true;
}
bool AppController::prepareToRender(double* viewport, VuRenderVideoBackgroundData* renderData)
{
if (!mARStarted || mEngine == nullptr)
{
LOG("AR not started or engine is null");
return false;
}
if (vuEngineAcquireLatestState(mEngine, &mVuforiaState) != VU_SUCCESS)
{
LOG("Failed to acquire latest state");
return false;
}
if (mVuforiaState == nullptr)
{
LOG("Vuforia state is null after acquisition");
return false;
}
if (vuStateGetRenderState(mVuforiaState, &mCurrentRenderState) != VU_SUCCESS)
{
LOG("Failed to get render state");
return false;
}
if (viewport == nullptr)
{
LOG("Viewport pointer is null");
return false;
}
std::memcpy(viewport, mCurrentRenderState.viewport.data, sizeof(double) * 4);
viewport[4] = 0.0f;
viewport[5] = 1.0f;
VuController* renderController = nullptr;
if (vuEngineGetRenderController(mEngine, &renderController) != VU_SUCCESS)
{
LOG("Failed to get render controller");
return false;
}
if (renderController == nullptr)
{
LOG("Render controller is null");
return false;
}
if (renderData == nullptr)
{
LOG("Render data pointer is null");
return false;
}
if (vuRenderControllerUpdateVideoBackgroundTexture(renderController, mVuforiaState, renderData) != VU_SUCCESS)
{
LOG("Failed to update video background texture");
return false;
}
return true;
}
float AppController::getRecognitionTime() const {
return mRecognitionTime;
}
void AppController::finishRender() {
if (mVuforiaState != nullptr) {
vuStateRelease(mVuforiaState);
mVuforiaState = nullptr;
}
}
[[maybe_unused]] bool AppController::renderFrame() {
if (!mARStarted || mEngine == nullptr || mVuforiaState == nullptr) {
return false;
}
// Implement your rendering logic here
return true;
}
bool AppController::initVuforiaInternal(const InitConfig& initConfig) {
LOG("Entering initVuforiaInternal");
VuEngineConfigSet* configSet = nullptr;
if (vuEngineConfigSetCreate(&configSet) != VU_SUCCESS) {
LOG("Failed to create engine config set");
return false;
}
VuLicenseConfig licenseConfig = vuLicenseConfigDefault();
licenseConfig.key = licenseKey;
if (vuEngineConfigSetAddLicenseConfig(configSet, &licenseConfig) != VU_SUCCESS) {
LOG("Failed to add license config");
vuEngineConfigSetDestroy(configSet);
return false;
}
// Add Android platform configuration
VuPlatformAndroidConfig platformAndroidConfig = vuPlatformAndroidConfigDefault();
platformAndroidConfig.activity = static_cast<jobject>(initConfig.appData);
platformAndroidConfig.javaVM = initConfig.javaVM;
if (vuEngineConfigSetAddPlatformAndroidConfig(configSet, &platformAndroidConfig) != VU_SUCCESS) {
LOG("Failed to add Android platform config");
vuEngineConfigSetDestroy(configSet);
return false;
}
VuErrorCode errorCode;
LOG("Creating Vuforia Engine");
VuResult result = vuEngineCreate(&mEngine, configSet, &errorCode);
if (result != VU_SUCCESS) {
std::string errorMessage = initErrorToString(errorCode);
LOG("Failed to create Vuforia Engine: %s (Error code: %d)", errorMessage.c_str(), errorCode);
if (mErrorMessageCallback) {
mErrorMessageCallback(errorMessage.c_str());
}
vuEngineConfigSetDestroy(configSet);
return false;
}
LOG("Vuforia Engine created successfully");
vuEngineConfigSetDestroy(configSet);
return true;
}
#include <filesystem>
#include <cstdio>
bool AppController::createObservers() {
if (mEngine == nullptr || assetManager == nullptr) {
LOG("Engine or AssetManager is null in createObservers");
return false;
}
// Geçici dosya yolu oluştur
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> dis(0, 999999);
std::stringstream ss;
ss << "/data/local/tmp/vuforia_temp_" << dis(gen);
std::string tempPath = ss.str();
std::string xmlTempPath = tempPath + ".xml";
std::string datTempPath = tempPath + ".dat";
// XML dosyasını kopyala
const char* xmlFileName = "test_images.xml";
if (!copyAssetToFile(xmlFileName, xmlTempPath.c_str())) {
LOG("Failed to copy XML file");
return false;
}
// DAT dosyasını kopyala
const char* datFileName = "test_images.dat";
if (!copyAssetToFile(datFileName, datTempPath.c_str())) {
LOG("Failed to copy DAT file");
std::remove(xmlTempPath.c_str());
return false;
}
// Image Target konfigürasyonunu oluşturun
VuImageTargetConfig config = vuImageTargetConfigDefault();
config.databasePath = xmlTempPath.c_str();
config.targetName = nullptr; // Tüm hedefleri yüklemek için
config.activate = VU_TRUE;
config.scale = 1.0f;
LOG("Creating image target observer with database path: %s", config.databasePath);
struct stat stat_buf;
int rc = stat(config.databasePath, &stat_buf);
if (rc == 0) {
LOG("Database size: %lld bytes", static_cast<long long>(stat_buf.st_size));
} else {
LOG("Failed to get database size");
}
VuImageTargetCreationError creationError;
VuResult result = vuEngineCreateImageTargetObserver(mEngine, &mImageTargetObserver, &config, &creationError);
// Geçici dosyaları silin
std::remove(xmlTempPath.c_str());
std::remove(datTempPath.c_str());
if (result != VU_SUCCESS) {
LOG("Error creating image target observer: %d, Creation error: %d", result, creationError);
// Hata kodlarını ayrıntılı olarak yazdırın
switch (creationError) {
case VU_IMAGE_TARGET_CREATION_ERROR_INTERNAL:
LOG("Internal error occurred");
break;
case VU_IMAGE_TARGET_CREATION_ERROR_AUTOACTIVATION_FAILED:
LOG("Auto-activation of the target failed");
break;
case VU_IMAGE_TARGET_CREATION_ERROR_DATABASE_LOAD_ERROR:
LOG("Error loading the database");
break;
case VU_IMAGE_TARGET_CREATION_ERROR_INVALID_TARGET_NAME:
LOG("Invalid target name");
break;
case VU_IMAGE_TARGET_CREATION_ERROR_TARGET_NOT_FOUND:
LOG("Target not found in the database");
break;
case VU_IMAGE_TARGET_CREATION_ERROR_INVALID_SCALE:
LOG("Invalid scale");
break;
default:
LOG("Unknown error occurred");
break;
}
return false;
}
// Oluşturulan gözlemcilerin sayısını kontrol edin
VuObserverList *observerList = nullptr;
vuEngineGetImageTargetObservers(mEngine, observerList);
int32_t numObservers = 0;
vuObserverListGetSize(observerList, &numObservers);
LOG("Number of image target observers created: %d", numObservers);
// Gözlemci listesini serbest bırakın
vuObserverListDestroy(observerList);
LOG("Image target observer(s) created successfully");
return true;
}
void AppController::destroyObservers() {
if (mImageTargetObserver != nullptr) {
vuObserverDestroy(mImageTargetObserver);
mImageTargetObserver = nullptr;
}
}
[[maybe_unused]] void AppController::onEngineError(VuEngineError errorCode, void* clientData) {
auto* appController = static_cast<AppController*>(clientData);
appController->handleEngineError(errorCode);
}
bool AppController::copyAssetToFile(const char* assetName, const char* outputPath) {
AAsset* asset = AAssetManager_open(assetManager, assetName, AASSET_MODE_BUFFER);
if (asset == nullptr) {
LOG("Failed to open %s", assetName);
return false;
}
const void* buffer = AAsset_getBuffer(asset);
off_t length = AAsset_getLength(asset);
FILE* outputFile = fopen(outputPath, "wb");
if (outputFile == nullptr) {
LOG("Failed to create file: %s", outputPath);
AAsset_close(asset);
return false;
}
size_t written = fwrite(buffer, 1, length, outputFile);
fclose(outputFile);
AAsset_close(asset);
if (written != length) {
LOG("Failed to write entire file: %s", outputPath);
return false;
}
LOG("Successfully copied %s to %s", assetName, outputPath);
return true;
}
void AppController::handleEngineError(VuEngineError errorCode) {
if (mVuforeEngineErrorCallback) {
mVuforeEngineErrorCallback(static_cast<VuErrorCode>(errorCode));
}
}
std::string AppController::initErrorToString(VuErrorCode error) {
switch (error) {
case VU_ENGINE_CREATION_ERROR_DEVICE_NOT_SUPPORTED:
return "Device not supported";
case VU_ENGINE_CREATION_ERROR_PERMISSION_ERROR:
return "Permission error";
case VU_ENGINE_CREATION_ERROR_LICENSE_ERROR:
return "License error";
default:
return "Unknown error";
}
}
--AppController.cpp dosyamız--Editor is loading...
Leave a Comment