mmap failed - GL error: Out of memory - android

Have a fragment implemented that has multiple horizontal scrollviews. When i scroll it multiple times it simply blacks out and on popback the complete application gets blacked out, until the system creates a new instance of activity.
To be noted : Not using hardware accelerator
Couldn't understand a thing given here.
Tried to lookup solution not an option have to use scroll view
LOGCAT
01-20 21:35:18.737 29857-30181/com.amplitude.tron.volksradio22 E/Adreno-GSL: <gsl_memory_alloc_pure:1971>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
01-20 21:35:18.737 29857-30181/com.amplitude.tron.volksradio22 W/Adreno-GSL: <gsl_ldd_control:475>: ioctl fd 27 code 0x40080921 (IOCTL_KGSL_SHAREDMEM_FREE) failed: errno 22 Invalid argument
01-20 21:35:18.746 29857-30181/com.amplitude.tron.volksradio22 W/Adreno-GSL: <sharedmem_gpumem_alloc_id:2260>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
01-20 21:35:18.748 29857-30181/com.amplitude.tron.volksradio22 E/Adreno-GSL: <gsl_memory_alloc_pure:1971>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
01-20 21:35:18.757 29857-30181/com.amplitude.tron.volksradio22 W/Adreno-GSL: <sharedmem_gpumem_alloc_id:2260>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
01-20 21:35:18.759 29857-30181/com.amplitude.tron.volksradio22 E/Adreno-GSL: <gsl_memory_alloc_pure:1971>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
01-20 21:35:18.768 29857-30181/com.amplitude.tron.volksradio22 W/Adreno-GSL: <sharedmem_gpumem_alloc_id:2260>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
01-20 21:35:18.770 29857-30181/com.amplitude.tron.volksradio22 E/Adreno-GSL: <gsl_memory_alloc_pure:1971>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
01-20 21:35:18.770 29857-30181/com.amplitude.tron.volksradio22 W/Adreno-GSL: <gsl_ldd_control:475>: ioctl fd 27 code 0x40080921 (IOCTL_KGSL_SHAREDMEM_FREE) failed: errno 22 Invalid argument
01-20 21:35:18.778 29857-30181/com.amplitude.tron.volksradio22 E/OpenGLRenderer: GL error: Out of memory!
01-20 21:35:53.215 29857-29857/com.amplitude.tron.volksradio22 W/SplitWindow: update focus...

Got the OOM exception covered by adding this to the manifest :
android:largeHeap="true"

Related

why android emulator not working

When I updated the Android Studio a few days ago, the Android Emulator stopped working. I tried to open a blank activity and the emulator did not work as well.
All the SDK tools have been installed and updated. Below are the event log and Logcat of a blank activity (Hello World!) when I run the blank activity.
Event Log: 1/1/2018 4:43 PM Gradle sync started
4:43 PM Project setup started
4:44 PM Gradle sync finished in 34s 677ms
4:44 PM Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
4:45 PM Gradle build finished in 1m 28s 392ms
5:00 PM Unable to run 'adb': null
5:00 PM 'C:\Media\platform-tools\adb.exe start-server' failed -- run manually if necessary
5:00 PM * daemon not running; starting now at tcp:5037
5:00 PM * daemon started successfully
5:03 PM Executing tasks: [:app:assembleDebug]
5:03 PM Emulator: emulator: ERROR: Missing initial data partition file: C:\Users\Android Studio.android\avd\Nexus_5_API_27.avd/userdata.img
5:03 PM Emulator: compileAndValidateCoreShader: fail to compile. infolog Fragment shader failed to compile with the following errors:
5:03 PM Emulator: ERROR: 0:85: error(#143) Undeclared identifier undefined
5:03 PM Emulator: ERROR: 0:85: error(#132) Syntax error: '<' parse error
5:03 PM Emulator: ERROR: error(#273) 2 compilation errors. No code generated
5:03 PM Emulator:
5:03 PM Emulator: linkAndValidateProgram: fail to link program. infolog: Fragment shader(s) were not successfully compiled before glLinkProgram() was called. Link failed.
5:03 PM Emulator:
Logcat:
01-01 04:05:27.996 3188-3188/com.example.androidstudio.fixit I/zygote: Not late-enabling -Xcheck:jni (already on)
01-01 04:05:28.262 3188-3188/com.example.androidstudio.fixit W/zygote: Unexpected CPU variant for X86 using defaults: x86
01-01 04:05:28.565 3188-3201/com.example.androidstudio.fixit I/zygote: Debugger is no longer active
01-01 04:05:28.915 3188-3188/com.example.androidstudio.fixit I/InstantRun: starting instant run server: is main process
01-01 04:05:29.650 3188-3235/com.example.androidstudio.fixit D/OpenGLRenderer: HWUI GL Pipeline
01-01 04:05:29.872 3188-3235/com.example.androidstudio.fixit I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
01-01 04:05:29.872 3188-3235/com.example.androidstudio.fixit I/OpenGLRenderer: Initialized EGL, version 1.4
01-01 04:05:29.872 3188-3235/com.example.androidstudio.fixit D/OpenGLRenderer: Swap behavior 1
01-01 04:05:29.873 3188-3235/com.example.androidstudio.fixit W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
01-01 04:05:29.873 3188-3235/com.example.androidstudio.fixit D/OpenGLRenderer: Swap behavior 0
01-01 04:05:30.001 3188-3235/com.example.androidstudio.fixit D/EGL_emulation: eglCreateContext: 0xa2b59da0: maj 2 min 0 rcv 2
01-01 04:05:30.073 3188-3235/com.example.androidstudio.fixit D/EGL_emulation: eglMakeCurrent: 0xa2b59da0: ver 2 0 (tinfo 0xac24c670)
01-01 04:05:30.269 3188-3235/com.example.androidstudio.fixit D/EGL_emulation: eglMakeCurrent: 0xa2b59da0: ver 2 0 (tinfo 0xac24c670)
I went to the Settings->Advanced in the Extented Controls in the emulator and then to Advanced and changed the OpenGL ES Render to SwiftShader and the OpenGL ES API level to Compatibility (OpenGL ES 1.1/2.0) and the errors appear to have gone away and the screen is now not displaying a white screen and is instead is displaying the google map, which is what the program is supposed to do. Does this seem like a good solution? Is there more I should do to not get screwed up in the future?

BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed

There is a RecyclerView in my page and filled with TextureViews:
Activity page capture in my demo
I use eglCreateWindowSurface() to create EGLSurface for every TextureViews(SurfaceTexture), and use eglDestroySurface() to destroy them when the
Activity is not visible (Stopped).
When i launch several Activities like this, i get an exception as below:
E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
....
E Surface : dequeueBuffer: error duping fence: 24
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646
E GLConsumer: [SurfaceTexture-0-9639-1084] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1085] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1086] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1087] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1088] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1089] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1090] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1091] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
Does anyone have suggestions for solving this problem?
Thanks.

After loading webarchiev into WebView app crashes

After trying to load WebArchievs for some sites I get this error.
06-12 11:03:36.604 6257-6257/<packageName> D/﹕ Page started file:///data/data/<packageName>/files/savedData3.mht
06-12 11:03:36.644 6257-6281/<packageName> V/RenderScript﹕ Application requested CPU execution
06-12 11:03:36.649 6257-6281/<packageName> V/RenderScript﹕ 0xb8ec6f88 Launching thread(s), CPUs 2
06-12 11:03:36.662 6257-6332/<packageName> E/chromium﹕ ### WebView Version 43.0.2357.121 (code 2357121)
06-12 11:03:36.662 6257-6332/<packageName> A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 6332 (Thread-36203)
Saving WebArchiev:
getWebView().saveWebArchive(<pathToFile>);
Loading WebArchiv:
getWebView().loadUrl(<pathToFile>);

RenderScript No JNI_OnLoad found error

I am using renderscript library in my project and I perfectly run my apk on Samsung S4 I9500. But when I tried this in other phones I get crash.
No JNI_OnLoad found in /system/lib/libRSSupport.so 0x4185f0f0, skipping init
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ ERROR: couldn't find native method
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ Requested: Landroid/support/v8/renderscript/RenderScript;._nInit:()V
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/JNIHelp﹕ RegisterNatives failed for 'android/support/v8/renderscript/RenderScript', aborting
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 8994
Any help appreciated. Thanks.
You forgot to include libRSSupport.so + the other native libraries in your .apk. This is attempting to load the system version of the compatibility, library, which will not work with your app.

App crashes on first-time launch only in Sony devices

We are using Worklight JSONStore in a native Android application.
Whenever we are installing the app for the first time, the app is crashes - it will not crash after opening it for the second time.
We were able to find the logs and find that the problem is in sqlite (JSONStore).
We have added the logs below.
01-20 10:03:27.682: W/ActivityThread(23197): Application com.MeaWallet can be debugged on port 8100...
01-20 10:03:27.802: D/webcoreglue(23197): netstack: Memory Cache feature is ON
01-20 10:03:28.002: D/JSENGINE(23197): qualcomm.jsengine.version:C.2-patch35-git:7b7ad6f
01-20 10:03:28.022: I/TAG(23197): **************** File /data/data/APP_PACKAGE/cache DELETED *******************
01-20 10:03:28.022: I/TAG(23197): **************** File /data/data/APP_PACKAGE/files DELETED *******************
01-20 10:03:28.022: I/TAG(23197): **************** File /data/data/APP_PACKAGE/app___WL_EVENTS DELETED *******************
01-20 10:03:28.032: I/TAG(23197): **************** File /data/data/APP_PACKAGE/databases DELETED *******************
01-20 10:03:28.032: I/TAG(23197): **************** File /data/data/APP_PACKAGE/shared_prefs DELETED *******************
01-20 10:03:28.032: E/SQLiteLog(23197): (1802) os_unix.c:30033: (2) stat(/data/data/com.MeaWallet/databases/webview.db) -
01-20 10:03:28.032: E/SQLiteLog(23197): (1802) statement aborts at 9: [CREATE TABLE formurl (_id INTEGER PRIMARY KEY, url TEXT);]
01-20 10:03:28.032: E/SQLiteLog(23197): (1) statement aborts at 2: [ROLLBACK;] cannot rollback - no transaction is active
01-20 10:03:28.032: W/dalvikvm(23197): threadid=13: thread exiting with uncaught exception (group=0x415b68b0)
01-20 10:03:28.082: E/AndroidRuntime(23197): FATAL EXCEPTION: Thread-9715
01-20 10:03:28.082: E/AndroidRuntime(23197): android.database.sqlite.SQLiteException: cannot rollback - no transaction is active (code 1)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:555)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.database.sqlite.SQLiteSession.endTransactionUnchecked(SQLiteSession.java:439)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:401)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:530)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.webkit.WebViewDatabaseClassic.initDatabase(WebViewDatabaseClassic.java:165)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.webkit.WebViewDatabaseClassic.init(WebViewDatabaseClassic.java:130)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.webkit.WebViewDatabaseClassic.access$000(WebViewDatabaseClassic.java:35)
01-20 10:03:28.082: E/AndroidRuntime(23197): at android.webkit.WebViewDatabaseClassic$1.run(WebViewDatabaseClassic.java:109)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): Logger$UncaughtExceptionHandler.uncaughtException in Logger.java:400 :: Uncaught Exception
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): android.database.sqlite.SQLiteException: cannot rollback - no transaction is active (code 1)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:555)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.database.sqlite.SQLiteSession.endTransactionUnchecked(SQLiteSession.java:439)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:401)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:530)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.webkit.WebViewDatabaseClassic.initDatabase(WebViewDatabaseClassic.java:165)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.webkit.WebViewDatabaseClassic.init(WebViewDatabaseClassic.java:130)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.webkit.WebViewDatabaseClassic.access$000(WebViewDatabaseClassic.java:35)
01-20 10:03:28.092: E/com.worklight.common.Logger$UncaughtExceptionHandler(23197): at android.webkit.WebViewDatabaseClassic$1.run(WebViewDatabaseClassic.java:109)
01-20 10:03:28.112: D/com.worklight.nativeandroid.common.WLUtils(23197): WLUtils.loadLib in WLUtils.java:533 :: Extracting zip file: featurelibs/armeabi/libcrypto.so.1.0.0
01-20 10:03:28.152: D/HostStatisticManager(23197): netstack: DNS Host Prioritization is: ON, Version: 5.0.1
01-20 10:03:28.152: I/(23197): netstack: LIB_MGR - Lib loaded: libdnshostprio.so
01-20 10:03:28.152: I/(23197): netstack: STAT_HUB - Succeeded to load plugin: libdnshostprio.so
01-20 10:03:28.152: E/(23197): netstack: LIB_MGR - Error loading lib spl_proc_plugin.so
01-20 10:03:28.152: E/(23197): netstack: STAT_HUB - Failed to load plugin: spl_proc_plugin.so
01-20 10:03:28.152: I/(23197): netstack: LIB_MGR - Lib loaded: pp_proc_plugin.so
01-20 10:03:28.152: I/(23197): netstack: STAT_HUB - Succeeded to load plugin: pp_proc_plugin.so
01-20 10:03:28.152: E/(23197): netstack: STAT_HUB - App com.MeaWallet isn't supported
01-20 10:03:28.273: D/dalvikvm(23197): Trying to load lib /data/data/com.MeaWallet/files/libcrypto.so.1.0.0 0x4185f6a8
01-20 10:03:28.273: D/dalvikvm(23197): Added shared lib /data/data/com.MeaWallet/files/libcrypto.so.1.0.0 0x4185f6a8
01-20 10:03:28.273: D/dalvikvm(23197): No JNI_OnLoad found in /data/data/com.MeaWallet/files/libcrypto.so.1.0.0 0x4185f6a8, skipping init
01-20 10:03:28.273: D/com.worklight.nativeandroid.common.WLUtils(23197): WLUtils.loadLib in WLUtils.java:541 :: Loading library using System.load: /data/data/com.MeaWallet/files/libcrypto.so.1.0.0
01-20 10:03:28.303: D/dalvikvm(23197): Trying to load lib /data/app-lib/com.MeaWallet-1/libstlport_shared.so 0x4185f6a8
01-20 10:03:28.303: D/dalvikvm(23197): Added shared lib /data/app-lib/com.MeaWallet-1/libstlport_shared.so 0x4185f6a8
01-20 10:03:28.303: D/dalvikvm(23197): No JNI_OnLoad found in /data/app-lib/com.MeaWallet-1/libstlport_shared.so 0x4185f6a8, skipping init
01-20 10:03:28.303: D/dalvikvm(23197): Trying to load lib /data/app-lib/com.MeaWallet-1/libsqlcipher_android.so 0x4185f6a8
01-20 10:03:28.303: D/dalvikvm(23197): Added shared lib /data/app-lib/com.MeaWallet-1/libsqlcipher_android.so 0x4185f6a8
01-20 10:03:28.303: D/dalvikvm(23197): No JNI_OnLoad found in /data/app-lib/com.MeaWallet-1/libsqlcipher_android.so 0x4185f6a8, skipping init
01-20 10:03:28.303: D/dalvikvm(23197): Trying to load lib /data/app-lib/com.MeaWallet-1/libdatabase_sqlcipher.so 0x4185f6a8
01-20 10:03:28.303: D/dalvikvm(23197): Added shared lib /data/app-lib/com.MeaWallet-1/libdatabase_sqlcipher.so 0x4185f6a8
01-20 10:03:28.303: I/Database(23197): JNI_OnLoad called
01-20 10:03:28.303: I/Database(23197): JNI_OnLoad register methods
01-20 10:03:29.334: D/JSONSTORE(23197): JSONStoreLogger.logDebug in JSONStoreLogger.java:174 :: provisioning database "user" (already exists: false)
01-20 10:03:29.394: D/JSONSTORE(23197): JSONStoreLogger.logDebug in JSONStoreLogger.java:174 :: provisioning database "mktMsg" (already exists: false)
01-20 10:03:29.454: D/JSONSTORE(23197): JSONStoreLogger.logDebug in JSONStoreLogger.java:174 :: provisioning database "simplytapp" (already exists: false)
01-20 10:03:31.126: D/JSONSTORE(23197): JSONStoreLogger.logDebug in JSONStoreLogger.java:174 :: provisioning database "event" (already exists: false)
01-20 10:03:31.186: D/JSONSTORE(23197): JSONStoreLogger.logDebug in JSONStoreLogger.java:174 :: provisioning database "widget" (already exists: false)
01-20 10:03:31.256: D/JSONSTORE(23197): JSONStoreLogger.logDebug in JSONStoreLogger.java:174 :: provisioning database "receiptList" (already exists: false)
01-20 10:03:31.316: V/DeviceInfoManager(23197): DeviceInfo is: {"device_properties":[{"data":{"product":"C5303","device":"C5303","model":"C5303","hardware":"qcom","manufacturer":"Sony"},"available":true,"name":"device"},{"data":{"version":"18","name":"Android"},"available":true,"name":"os"},{"available":true,"name":"camera"},{"available":false,"name":"hce"},{"data":{"mac_address":"44:d4:e0:3c:d9:36"},"available":true,"name":"wifi"},{"available":false,"name":"credenSE"}]}
01-20 10:03:31.366: W/HomeActivity(23197): HomeActivity.java DESTROYED!
01-20 10:03:31.376: D/WLClient(23197): WLClient.createInstance in WLClient.java:169 :: WLClient has already been created.
01-20 10:03:31.406: W/com.worklight.wlclient.api.WLPush(23197): WLPush.unregisterReceivers in WLPush.java:763 :: unregisterReceivers:Receiver not registered: com.worklight.wlclient.api.WLPush$3#41c11b40
01-20 10:03:31.406: V/WalletServerManager(23197): Set challenge handler to MwChallengeHandler
01-20 10:03:31.406: W/com.worklight.wlclient.api.WLPush(23197): WLPush.unregisterReceivers in WLPush.java:768 :: unregisterReceivers:Receiver not registered: com.worklight.wlclient.api.WLPush$4#41c11df8
01-20 10:03:31.426: W/com.worklight.wlclient.api.WLPush(23197): WLPush.unregisterReceivers in WLPush.java:773 :: unregisterReceivers:Receiver not registered: com.worklight.wlclient.api.WLPush$5#41c120b0
Relevant code snippet (from comments below):
List<JSONStoreCollection> collections = new ArrayList<JSONStoreCollection>();
uRDao = new UserInfoDao();
JSONStoreCollection userStore = userDao.getJsonStoreCollection();
collections.add(userStore);
MMDao = new MarketMessageDao();
JSONStoreCollection MMStore = MMDao.getJsonStoreCollection();
collections.add(marketMessageStore);
WLJSONStore.getInstance(application).openCollections(collections);
The code fails somewhere on the initialization.
public class EventDao extends BaseDao<EventPojo> {
public EventDao() {
super(EventPojo.class);
}
#Override
public JSONStoreCollection getJsonStoreCollection() {
try {
store = new JSONStoreCollection("event");
} catch (JSONStoreInvalidSchemaException e) {
Log.e(getClass().getSimpleName(), "Exception " + Util.printException(e));
return null;
}
return store;
}
}
BalajiG and Rahul Hawge are not responding the comments.
This was solved by them like so:
yeah did little bit of code changes by adding checks in jsonStores
creation. And it stopped crashing.

Categories

Resources