Start a new topic

FATAL EXCEPTION: main

Dear Sir/Madame


Thank you for your following up email. To be honest, I am strugling a bit with the wikitude platform. I am having troubles with the folowing scripts for the apps:


package com.example.wikitudedemo;

import com.wikitude.architect.WearableArchitectView;
import com.wikitude.architect.ArchitectStartupConfiguration;


import android.app.Activity;
import android.os.Bundle;


import java.io.IOException;

public class MainActivity extends Activity {

private WearableArchitectView architectView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

architectView = new WearableArchitectView(this);

ArchitectStartupConfiguration configuration = new ArchitectStartupConfiguration();
configuration.setLicenseKey("*******");

architectView.onCreate(configuration);
setContentView(architectView);
}
@Override
protected void onPostCreate(final Bundle savedIstanceState) {
super.onPostCreate(savedIstanceState);
architectView.onPostCreate();

try {
architectView.load("index.html");
}catch (IOException e) {
e.printStackTrace();
}
}

@Override
protected void onResume() {
super.onResume();
architectView.onResume();
}
@Override
protected void onPause() {
super.onPause();
architectView.onPause();
}
@Override
protected void onDestroy() {
super.onDestroy();
architectView.onDestroy();

}
} When I'm trying to run the application on the glasses, there is an error I receive about the calibration. Also the camera is not getting active even though I have wrote the script for it. Also, at the: MainActivity.java:26 it is saying that I'm having an error even though the script is without any. I have also tried to open the app on a phone (as a test) but when I am trying to open it, I get the error: Application is shutting down constantly. If you could please give me a hand in regards with the above errors, it would be much appreciated. Thank you very much in advance. Regards, Beniamin

Hi,


Did you make sure to follow the instructions for the calibration - the red rectangle indicates that the image for the calibration is not scanned properly.


https://www.wikitude.com/external/doc/documentation/latest/epson/calibration.html#calibration


If the problem persist please provide the following details:


  • Which version of the SDK are you using?
  • Confirm that you're working with the latest Epson SDK.
  • Is this happening with the unchanged sample app? If it happens with your own app, Does the sample app work on your device?
  • Please share the error / crash log. 


Thx and greetings

Nicola

Hi Nicola,

Unfortunately, I couldn't follow the calibration steps simply because the camera is not turning on. There is the LED light turning on and off indicating that there is some activity happening with the camera but it's not actually turning on.

I am using Android 5.0, Android 6.0, Android 8.0 and Android 10.0 from SDK Platform

The unchanged sample app is turning On on my phone (Hello world) but I can't install it on my smart glasses. It can't read it.


10/24 19:16:16: Launching 'VXDesign' on EPSON EMBT3S.

$ adb shell am start -n "com.example.black.wikitudedemo/com.example.wikitudedemo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Waiting for process to come online...

Connected to process 4629 on device 'epson-embt3s-000065E62110'.

Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.

I/art: Late-enabling -Xcheck:jni

I/art: Debugger is no longer active

I/art: Explicit concurrent mark sweep GC freed 1383(94KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 2035KB/3MB, paused 484us total 17.596ms

Counter: 1

W/linker: libsupportjni.so: unused DT entry: type 0x6ffffffe arg 0xb86c

libsupportjni.so: unused DT entry: type 0x6fffffff arg 0x3

E/GRPC: tcp_client_posix.c:176] failed to connect to 'ipv4:127.0.0.1:12389': socket error: connection refused

V/StudioProfiler: Agent command stream started.

V/StudioProfiler: Acquiring Application for Events

W/linker: libarchitect.so: unused DT entry: type 0x6ffffffe arg 0x26ec14

libarchitect.so: unused DT entry: type 0x6fffffff arg 0x3

I/WebViewFactory: Loading com.android.webview version 39 (eng.H837-x86) (code 399997)

I/LibraryLoader: Time to load native libraries: 2 ms (timestamps 8720-8722)

Expected native library version number "",actual native library version number ""

V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {13373eb4}

I/LibraryLoader: Expected native library version number "",actual native library version number ""

I/chromium: [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0

I/BrowserStartupController: Initializing chromium process, singleProcess=true

W/art: Attempt to remove local handle scope entry from IRT, ignoring

W/chromium: [WARNING:dns_config_service_posix.cc(293)] Failed to read DnsConfig.

W/chromium: [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

W/AudioManagerAndroid: Requires BLUETOOTH permission

I/chromium: [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=37 off=43108 len=3029

[INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:38 off:229484 len:1089587

I/ufoGralloc: Hello, this is UFO GRALLOC/Intel Corporation

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

droid_create_context : config id = 1 conf->NativeVisualID=1

I/ufoEGL: Requested context : GLES 2.0

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

W/chromium: [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup

W/art: Attempt to remove local handle scope entry from IRT, ignoring

W/AwContents: onDetachedFromWindow called when already detached. Ignoring

W/art: Attempt to remove local handle scope entry from IRT, ignoring

Attempt to remove local handle scope entry from IRT, ignoring

Attempt to remove local handle scope entry from IRT, ignoring

Attempt to remove local handle scope entry from IRT, ignoring

I/CameraManagerGlobal: getCameraService: Reconnecting to camera service

D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

D/Atlas: Validating map...

I/OpenGLRenderer: Initialized EGL, version 1.4

W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...

D/ufoEGL: droid_create_context : config id = 9 conf->NativeVisualID=1

I/ufoEGL: Requested context : GLES 2.0

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/OpenGLRenderer: Enabling debug mode 0

D/skuwa: Detected device 22B0:54 family 17:11

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: droid_create_context : config id = 5 conf->NativeVisualID=1

I/ufoEGL: Requested context : GLES 2.0

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: droid_create_context : config id = 1 conf->NativeVisualID=1

I/ufoEGL: Requested context : GLES 2.0

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

D/ufoEGL: droid_create_context : config id = 5 conf->NativeVisualID=1

I/ufoEGL: Requested context : GLES 2.0

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

W/UnimplementedWebViewApi: Unimplemented WebView method onKeyDown called from: android.webkit.WebView.onKeyDown(WebView.java:2310)

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

W/ScreenOrientationListener: Removing an inexistent observer!

W/art: Attempt to remove local handle scope entry from IRT, ignoring

W/AwContents: onDetachedFromWindow called when already detached. Ignoring

W/art: Attempt to remove local handle scope entry from IRT, ignoring

W/art: Attempt to remove local handle scope entry from IRT, ignoring

Attempt to remove local handle scope entry from IRT, ignoring

Attempt to remove local handle scope entry from IRT, ignoring

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: droid_create_context : config id = 5 conf->NativeVisualID=1

I/ufoEGL: Requested context : GLES 2.0

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

D/ufoEGL: Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888

W/UnimplementedWebViewApi: Unimplemented WebView method onKeyDown called from: android.webkit.WebView.onKeyDown(WebView.java:2310)

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection

D/ufoEGL: Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

W/ScreenOrientationListener: Removing an inexistent observer!

Process 4629 terminated.


Event logs:


10/25/2019

9:10 PM Gradle sync started with single-variant sync

9:10 PM Project setup started

9:10 PM Gradle sync finished in 930 ms (from cached state)

9:10 PM Executing tasks: [:app:generateDebugSources] in project B:\WikitudeDemo

9:10 PM NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN

9:10 PM * daemon not running; starting now at tcp:5037

9:10 PM * daemon started successfully

9:10 PM Gradle build finished in 12 s 282 ms

9:11 PM Executing tasks: [:app:assembleDebug] in project B:\WikitudeDemo

9:11 PM Gradle build finished in 6 s 455 ms

9:11 PM Install successfully finished in 5 s 16 ms.


19:13 Your anti-virus program might be impacting your build performance. Android Studio checked the following directories:

D:\WikitudeDemo1

C:\Users\Seb\.AndroidStudio3.5\system

C:\Users\Seb\.gradle

C:\Users\Seb\AppData\Local\Android\Sdk

Don't show again

Don't show again for this project

Details

19:13 Failed to commit install session 979716169 with command pm install-commit 979716169. Error: INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl979716169.tmp/base.apk (at Binary XML file line #7): Requires newer sdk version #23 (current version is #22)

19:13 Session 'VXDesign': Installation did not succeed.

The application could not be installed: INSTALL_FAILED_OLDER_SDK

Retry


Thank you in advance.

Regards,

Beniamin.


Hi Beniamin,


The error message sounds like you need to adapt the SDK version, like indicating in these lines:


19:13    Failed to commit install session 979716169 with command pm install-commit 979716169. Error: INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl979716169.tmp/base.apk (at Binary XML file line #7): Requires newer sdk version #23 (current version is #22) 

 

19:13    Session 'VXDesign': Installation did not succeed. 

            The application could not be installed: INSTALL_FAILED_OLDER_SDK 

            Retry


Did you check already in Android forums (as this is related to Android version and setup) - e.g. does this stackoverflow post help:


https://stackoverflow.com/questions/58178661/error-the-application-could-not-be-installed-install-failed-older-sdk-the-app


Thx and greetings

Nicola


Login or Signup to post a comment