Issue Description
When testing on any sort of Android app (Classic or Alloy), Crittercism is failing to initialise during app launching.
Code
Throw these couple lines to app.js.
var apm = require("com.appcelerator.apm");
apm.init();
Logs
These logs on a Samsung Galaxy S6 running Android 5.0.1 and a Google Nexus 6
[DEBUG] : Initializing application...
[ERROR] : art: dlopen("/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] : art: dlopen("/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] : Crittercism: Unable to load breakpadjava.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
Stack Trace
Can be also reproduced using Genymotion emulator.
-- Start application log -----------------------------------------------------
[INFO] TiApplication: (main) [0,0] checkpoint, app created.
[INFO] TiApplication: (main) [36,36] Titanium 4.1.0 (2015/07/06 11:15 d57aa7d)
[INFO] TiApplication: (main) [67,103] Titanium Javascript runtime: v8
[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[WARN] V8Object: (KrollRuntimeThread) [78,78] Runtime disposed, cannot set property 'userAgent'
[INFO] CrittercismInstance: Initializing Crittercism...
[ERROR] art: dlopen("/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] art: dlopen("/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] Crittercism: Unable to load breakpadjava.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test.AppctouchtestActivity@1d4205bb
[INFO] OpenGLRenderer: Initialized EGL, version 1.4
[WARN] EGL_emulation: eglSurfaceAttrib not implemented
[WARN] OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb00287e0, error=EGL_SUCCESS
[INFO] APSAnalyticsService: Analytics Service Started
[INFO] APSAnalyticsService: Stopping Analytics Service
I am seeing this same issue But i am seeing app loads in the performance -> live stats and i believe that it is catching crashes (see screen shot) I am initializing as follows: Alloy.Globals.apm = require("com.appcelerator.apm"); Alloy.Globals.apm && Alloy.Globals.apm.init(Ti.App.Properties.getString('com-appcelerator-apm-id'),{}); [ERROR] : art: dlopen("/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40 [ERROR] : art: dlopen("/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40 [ERROR] : Crittercism: Unable to load breakpadjava.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[~lbrenman] Which version of APM are you using?
[~msamah] I am using the latest (1.1.1) - see screen shot
[~lbrenman], the latest fix is 1.1.5. Please wait for the updated. :)
Hi [~msamah] is there a pre-release available already? Please?
[~pkclark] it appears we need to publish this APM version (1.1.5). Any help you need with doing that?
Verified the fix with standalone APM 1.1.5. Waiting for the APM module 1.1.5 to come with the SDK. I still see 1.1.1 with SDK 5.0.1.v20150924103934
Closing ticket as fixed.