Start a new topic

Error with Nexus4 (callAsync)

Error with Nexus4 (callAsync)


Hi Andreas,

Thanks for the solution :)

Regards

Ravi Tamada

Hi

I am developing an application with Phonegap and Wikitude, and, for some reason, it doesn't work when I test it in a Nexus 4 (Android 4.2.2). It works in other devices,for example Samsung Galaxy (1, 2 and 3), an Asus Tablet TF101 and a Huawei  G300Ascend.

I use WikitudeSDK 2.0, the latest Phonegap plugin, and cordova 2.4.0.

The error occurs when I try to access the AR object. For example, if i use AR.context.destroyAll, this is what appears in the logcat. I think the error is the one that says Object has no method 'callAsync'

07-04 11:56:50.170: E/SQLiteLog(30514): (14) cannot open file at line 30176 of

07-04 11:56:50.170: E/SQLiteLog(30514): (14) os_unix.c:30176: (2) open(/GeolocationPermissions.db) - 

07-04 11:56:50.170: D/WebKit(30514): ERROR: 

07-04 11:56:50.170: D/WebKit(30514): SQLite database failed to load from /GeolocationPermissions.db

07-04 11:56:50.170: D/WebKit(30514): Cause - unable to open database file

07-04 11:56:50.170: D/WebKit(30514): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)

07-04 11:56:50.180: I/System.out(30514): WikitudePlugin::execute onUrlInvoke

07-04 11:56:50.250: D/dalvikvm(30514): GC_CONCURRENT freed 2101K, 18% free 11727K/14252K, paused 3ms+3ms, total 23ms

07-04 11:56:50.250: D/dalvikvm(30514): WAIT_FOR_CONCURRENT_GC blocked 7ms

07-04 11:56:50.871: I/ArchitectWebView(30514): ARchitect Build: 1067M

07-04 11:56:50.871: D/PVRShellView(30514): Start rendering

07-04 11:56:50.921: D/dalvikvm(30514): GC_CONCURRENT freed 613K, 15% free 12133K/14252K, paused 2ms+2ms, total 21ms

07-04 11:56:50.921: D/dalvikvm(30514): WAIT_FOR_CONCURRENT_GC blocked 7ms

07-04 11:56:50.921: D/dalvikvm(30514): WAIT_FOR_CONCURRENT_GC blocked 12ms

07-04 11:56:51.011: D/dalvikvm(30514): GC_CONCURRENT freed 545K, 12% free 12640K/14252K, paused 3ms+2ms, total 23ms

07-04 11:56:51.011: D/dalvikvm(30514): WAIT_FOR_CONCURRENT_GC blocked 19ms

07-04 11:56:51.031: D/dalvikvm(30514): GC_FOR_ALLOC freed 970K, 12% free 12593K/14252K, paused 17ms, total 19ms

07-04 11:56:51.051: D/dalvikvm(30514): GC_FOR_ALLOC freed 949K, 12% free 12569K/14252K, paused 16ms, total 17ms

07-04 11:56:51.101: D/dalvikvm(30514): GC_FOR_ALLOC freed 672K, 9% free 12982K/14252K, paused 29ms, total 29ms

07-04 11:56:51.131: D/dalvikvm(30514): GC_FOR_ALLOC freed 207K, 9% free 12981K/14252K, paused 24ms, total 24ms

07-04 11:56:51.151: D/dalvikvm(30514): GC_FOR_ALLOC freed 211K, 9% free 13084K/14252K, paused 18ms, total 18ms

07-04 11:56:51.461: D/Camera(30514): app passed NULL surface

07-04 11:56:51.461: D/CordovaLog(30514): Empezando startLocationUpdates

07-04 11:56:51.461: I/Web Console(30514): Empezando startLocationUpdates at file:///android_asset/www/scripts/WikitudePlugin.js:265

07-04 11:56:51.461: D/CordovaLog(30514): SUCCESS

07-04 11:56:51.461: I/Web Console(30514): SUCCESS at file:///android_asset/www/scripts/web-service-manager/ws-generic.js:91

07-04 11:56:51.461: I/Choreographer(30514): Skipped 35 frames!  The application may be doing too much work on its main thread.

07-04 11:56:51.952: E/libEGL(30514): called unimplemented OpenGL ES API

07-04 11:56:51.982: E/Web Console(30514): Uncaught ReferenceError: AR is not defined at null:1

07-04 11:56:52.032: E/Web Console(30514): Uncaught TypeError: Object has no method 'callAsync' at file:///android_asset/world/:16

07-04 11:56:53.073: I/System.out(30514): WikitudePlugin::execute setLocation

07-04 11:56:53.083: E/Web Console(30514): Uncaught TypeError: Object has no method 'callAsync' at file:///android_asset/world/:16 

07-04 11:56:53.203: D/CordovaLog(30514): Hiding loader

07-04 11:56:53.203: I/Web Console(30514): Hiding loader at file:///android_asset/www/scripts/main-application/loader.js:14

07-04 11:57:12.474: D/dalvikvm(30514): GC_CONCURRENT freed 2074K, 15% free 12355K/14476K, paused 2ms+2ms, total 27ms

07-04 11:57:32.385: I/System.out(30514): WikitudePlugin::execute setLocation

07-04 11:57:32.395: I/Web Console(30514): Empezando a poner las localizaciones at file:///android_asset/world/:125

07-04 11:57:32.395: E/Web Console(30514): Uncaught TypeError: Object has no method 'callAsync' at file:///android_asset/world/:16

07-04 11:57:40.053: D/dalvikvm(30514): GC_CONCURRENT freed 1102K, 15% free 12354K/14476K, paused 2ms+3ms, total 35ms

 

PD: I hope I explained myself well, because my english needs some practice. Thanks.

Hi there!

Hi there!

Unfortunately Android 4.2 changed WebView behavior. Please try using targetSDK < 17 in your AndroidManifest or update to latest SDK.

Kind regards;
Andreas
Login or Signup to post a comment