Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Frequent Android Crashes
Started by Yoger Games Oct 25 2017 11:04 AM

96 replies to this topic
[TOPIC CONTROLS]
Page 3 of 4 1 2 3 4
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#51

bansal1988

[GLOBAL: userInfoPane.html]
bansal1988
  • Observer

  • 1 posts
  • Corona SDK

 

I'm getting the following google play report messages:
 

Samsung Galaxy A5(2017) (a5y17lte), 3072MB RAM, Android 7.0
Relatório 1
android.app.RemoteServiceException:
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1813)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6776)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1518)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
 
 

 

Relatório 1 de 1
android.app.RemoteServiceException:
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1410)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5426)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
at dalvik.system.NativeStart.main (Native Method)
 
 
Can anyone tell me what it's all about?

 

 

 

I have the same issue and have no luck fixing this? Did it fix for you, if yes how?



[TOPIC: post.html]
#52

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Corona Geek

  • 1,337 posts
  • Enterprise

fyi, seems that 3175 has "helped" re openal/almixer, but isn't completely fixed, still the #1 ANR with new build:  (bitmap stuff having been previously resolved)

Build 2017.3179 (Nov 24 2017 03:07:35)

executing service org.davebollinger.dropstack/shared.google.play.services.base.PackageStateChangedService

Example devices:
Samsung Galaxy S5 (kltetfnvzw), 2048MB RAM, Android 6.0
bq Aquaris X (bardock), 3072MB RAM, Android 7.1
Samsung Galaxy Note8 (greatlte), 6144MB RAM, Android 7.1
Samsung Galaxy A7(2016) (a7xltechn), 3072MB RAM, Android 6.0


"main" tid=1 Native 
"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 obj=0x75d64360 self=0xb48b6500
  | sysTid=30665 nice=-4 cgrp=default sched=0/0 handle=0xb6fc6b4c
  | state=S schedstat=( 0 0 0 ) utm=84 stm=37 core=3 HZ=100
  | stack=0xbe11a000-0xbe11c000 stackSize=8MB
  | held mutexes=
  #00  pc 0000000000017638  /system/lib/libc.so (syscall+28)
  #01  pc 000000000003fd35  /system/lib/libc.so (pthread_join+124)
  #02  pc 0000000000015b58  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libopenal.so (alcDestroyContext+516)
  #03  pc 0000000000008ed7  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libalmixer.so (ALmixer_Quit+230)
  #04  pc 000000000011d53c  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???)
  #05  pc 000000000011f970  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???)
  #06  pc 000000000012fa64  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???)
  #07  pc 000000000002b6fc  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???)
  #08  pc 000000000002e9f8  /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (Java_com_ansca_corona_JavaToNativeShim_nativeDone+28)
  #09  pc 00000000001dbff5  /data/dalvik-cache/arm/mnt@asec@org.davebollinger.dropstack-2@base.apk@classes.dex (Java_com_ansca_corona_JavaToNativeShim_nativeDone__J+80)
  at com.ansca.corona.JavaToNativeShim.nativeDone (Native method)
  at com.ansca.corona.JavaToNativeShim.destroy (JavaToNativeShim.java:277)
  at com.ansca.corona.Controller.destroy (Controller.java:286)
- locked <0x0641162d> (a com.ansca.corona.Controller)
  at com.ansca.corona.CoronaRuntime.dispose (CoronaRuntime.java:88)
  at com.ansca.corona.CoronaActivity.onDestroy (CoronaActivity.java:1732)
  at android.app.Activity.performDestroy (Activity.java:7130)
  at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1171)
  at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5117)
  at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:5162)
  at android.app.ActivityThread.-wrap9 (ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1880)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:148)
  at android.app.ActivityThread.main (ActivityThread.java:7325)
  at java.lang.reflect.Method.invoke! (Native method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)



[TOPIC: post.html]
#53

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

can I ask what android app is keeps crashing ? URL to the app ?



[TOPIC: post.html]
#54

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Corona Geek

  • 1,337 posts
  • Enterprise

[TOPIC: post.html]
#55

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

davebollinger, thank you for the URL.. I played for a while the game, it works for me.. maybe you know how to reproduce the bug/crash ?



[TOPIC: post.html]
#56

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Corona Geek

  • 1,337 posts
  • Enterprise

davebollinger, thank you for the URL.. I played for a while the game, it works for me.. maybe you know how to reproduce the bug/crash ?

 

Nope, unfortunately that's heart of the problem - if I knew how to reproduce and/or what was causing it, and thought there was something/anything that *I* could do about it, then I'd have tried it.  I've ran it many hundreds of times on devices that have reported the problem but haven't yet been able to duplicate it myself.

 

Plus, it's only a ~1% problem, and seemingly only on certain devices, so it takes a lot of user sessions to reveal the problem via android vitals reporting.  But it happens enough to impact ranking, despite my inability to reproduce.

 

Based on all the "destroy/dispose" -type stuff that's going on, and particularly destroylng the openal context, my "feeling" is that it is only happening at app close, though there's very little that I'm doing at app close that I can even alter in my own code, and most of the crash report seems to stem from deeply internal Corona shutdown stuff.  (granted that I have no ability to trace the internal calls, so my guesses are just based on the phrases present in the stack trace)



[TOPIC: post.html]
#57

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,106 posts
  • Corona SDK

I run around 0.5% ANR/crash rate but when that is thousands of sessions per day it is, as @dave points out, a bad ranking signal for sure.

 

This problem is not something, I believe, we are doing as developers.  If it was I would suspect the percentages would be considerably higher.

 

Vlad has confirmed a lot of the error logs are occurring when our apps close.... surely core could simply suppress errors raised when an app is closing as a simple fix.



[TOPIC: post.html]
#58

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 134 posts
  • Corona SDK

@vitaly1, @davebollinger: I have several apps that reproduce the ANR that Dave reported.

 

Here's one: https://play.google.com/store/apps/details?id=se.appfamily.puzzle.super2.free

 

Steps to reproduce:

1. Start app

2. Exit by pressing back button twice (on my Pixel C tablet, Android 8.0.0 I need to swipe up from bottom to reveal status bar since app runs in Immersive mode)

 

Repeat the steps above, and after 2 - 8 repetitions the app will start to a black screen. What has actually happened is that the previous instance has not shut down properly, so the app has re-opened to a state where there is no UI. Tap the screen and the back button about 50 times and eventually the OS will dump the trace file.

 

Trace file: https://www.dropbox.com/s/eg7ag0wowurc6ss/ANR_traces.txt?dl=0

 

Some pointers for the file (start, exit, restart): https://www.dropbox.com/s/qg7twipk508z0ds/ANR_notes.txt?dl=0

 

Logcat output: https://www.dropbox.com/s/4yxddl0mn33t4ts/ANR_logcat.txt?dl=0

 

 

I've tried these steps in a bunch of my apps.

 

For me, the ANR happens in apps that initialize Kidoz and cache ads. I have tried the following configurations:

- Rewarded

- Panel and rewarded and intersitial

- Panel and interstitial 

 

The ANR happens in both previous and current Kidoz versions.

 

The ANR does NOT happen in apps where Kidoz plugin is configured but un-used (i.e., if you pay to remove all ads). It also does NOT happen in apps which do not use Kidoz.

 

Important: I don't think this is to do with Kidoz specifically, but I'm exhausted from chasing this issue so have not tried builds with just Admob. For example, I believe that Dave does NOT use Kidoz, yet sees this ANR. Perhaps something to do with plugins storing ad data on exit, who knows.



[TOPIC: post.html]
#59

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Corona Geek

  • 1,337 posts
  • Enterprise

Thanks Per!  I'll try reproducing via back button spam.

 

I'll also confirm that I'm NOT using Kidoz, but am using Admob.  I can also confirm that it's not isolated to a single app, but the session counts and thus quantity of crash reports vary considerably, so not all apps demonstrate the fault so "obviously".  but fe, here's another one with enough daily volume to easily notice:  link (also built with 2017.3179, but I won't reproduce the trace here again, as it's essentially the same one previously provided for the other app)

 

Based on Per's comment, I also checked a paid-only no-ads app, and true enough it has had ZERO crashes OR anr's over the last 60 days (longest reporting period available via gplay vitals) across ALL versions (including those that were released before the recent attempt to fix openal/almixer).  However, that's perhaps only of anecdotal value, because unfortunately that paid app doesn't have anywhere near the same daily volume.  (still, "zero" is a pretty good rate! :D)

 

[edit: forum editor keeps deleting the url]



[TOPIC: post.html]
#60

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 134 posts
  • Corona SDK

Please note I'm not "spamming" the back button. I simply start the app, and exit via back button with double-press (I have a key listener requiring two quick presses to exit, in order to avoid accidental exit).

 

I've experimented with os.exit() now, in the system exit event handler. Seems to trigger a crash rather than an ANR. Feels like it happens less often than the ANR. Don't know if those backtraces will have anything useful, but I found it interesting to see the following after Corona reports the applicationExit:

 

a) chromium. I guess a webview for the ads?

B) Two network requests left hanging.

 

I'm a bit tired so these things might be completely unrelated and simply caused by the unclean exit. But perhaps something related to the ad plugin is not cleaned up in certain situations.

 

12-11 21:21:42.094  1610  1610 I Corona  : /DUMP: [System] applicationExit  (@D:\Dropbox\Code\workspace-Corona\DevProjects\Pop Balloons Rewarded unlock\main.lua:func:280)
12-11 21:21:42.104  1610  2049 E chromium: [ERROR:gl_fence_egl.cc(34)] Failed to get EGLSync attribute. error code:12300
12-11 21:21:42.104  1610  1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1
12-11 21:21:42.115  1610  1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1
12-11 21:21:42.137  1610  1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=2 refcnt=2
12-11 21:21:42.264   948  1198 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=56, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@477a37c)
12-11 21:21:42.265   948  4258 I ActivityManager: Process se.appfamily.balloonpopfree (pid 1610) has died: cch  CEM
12-11 21:21:42.265   948  1029 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=56, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
12-11 21:21:42.265   948  1545 I WindowManager: WIN DEATH: Window{13c268d u0 se.appfamily.balloonpopfree/com.ansca.corona.CoronaActivity}
12-11 21:21:42.266   948  1401 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=55, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@8a89405)
12-11 21:21:42.266  1827  1827 I cr_ChildProcessService: Destroying ChildProcessService pid=1827
12-11 21:21:42.267   948  1029 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=55, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
12-11 21:21:42.269   948  4258 I ActivityManager: Killing 1827:com.android.chrome:sandboxed_process0/u0a672i12 (adj 0): isolated not needed
12-11 21:21:42.270   948   969 W ActivityManager: setHasOverlayUi called on unknown pid: 1610
12-11 21:21:42.296   948   964 W zygote64: failed to open /acct/uid_99012/pid_1827/cgroup.procs: No such file or directory
12-11 21:21:46.721   948   961 E memtrack: Couldn't load memtrack module
12-11 21:21:46.721   948   961 W android.os.Debug: failed to get memory consumption info: -1


[TOPIC: post.html]
#61

Yoger Games

[GLOBAL: userInfoPane.html]
Yoger Games
  • Contributor

  • 109 posts
  • Corona SDK

I'm getting more and more frequent reports of this issue:

signal 5 (SIGTRAP), code 1 (TRAP_BRKPT)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.kavrakids.Cats_Dogs_Photo_Jigsaw_Puzzle <<<

backtrace:
  #00  pc 00000000002dfc72  /data/app/com.google.android.webview-2/lib/arm/libwebviewchromium.so

Currently I don't have more info than this, but googling it gave this: https://groups.google.com/forum/#!topic/google-admob-ads-sdk/I6giN0VbVa0

 

I'm not using Admob, but I am using Kidoz plugin and calls system.openURL in a couple of places. Nothing fancy. 

 

When is the libwebview library used?



[TOPIC: post.html]
#62

Yoger Games

[GLOBAL: userInfoPane.html]
Yoger Games
  • Contributor

  • 109 posts
  • Corona SDK

I have 2 very frequent crashes that puts me above the threshold for a bunch of my apps:

signal 5 (SIGTRAP), code 4 (TRAP_HWBKPT)

Lenovo Tab 7 Essential (TB-7304F), 1024MB RAM, Android 7.0

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.yogergames.peg_puzzle_1 <<<

backtrace:
  #00  pc 0000000000593c5a  /data/app/com.android.chrome-1/base.apk
signal 5 (SIGTRAP), code 1 (TRAP_BRKPT)
base.apk

Sony Xperia XZs (SO-03J), 4096MB RAM, Android 7.1

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.kavrakids.Cats_Dogs_Photo_Jigsaw_Puzzle <<<

backtrace:
  #00  pc 0000000000593c5a  /data/app/com.android.chrome-2/base.apk

Both using Corona version 2017.3184. I haven't been able to reproduce.

 

I'm using plugins

plugin.kidoz

plugin.google.iap.v3

plugin.google.play.services

 

I'm calling system.openURL from a couple of places to open google play links / youtube / facebook. 



[TOPIC: post.html]
#63

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,786 posts
  • Enterprise

This plugin needs to go away:  plugin.google.play.services

 

I don't know if that's the cause, but it's based on Google Play v4 and they are now on v11.

 

Rob



[TOPIC: post.html]
#64

Yoger Games

[GLOBAL: userInfoPane.html]
Yoger Games
  • Contributor

  • 109 posts
  • Corona SDK

This plugin needs to go away:  plugin.google.play.services

 

I don't know if that's the cause, but it's based on Google Play v4 and they are now on v11.

 

Rob

 

Thanks Rob, tried it (actually just remove the plugin) and get the crashes a bit less frequently now. I'll keep an eye on it for a few more days. 



[TOPIC: post.html]
#65

fungrip

[GLOBAL: userInfoPane.html]
fungrip
  • Enthusiast

  • 56 posts
  • Corona SDK

One of the apps I was testing with the pre-launch review crashes. The test device was a Pixel with Android 8.0

01-24 21:02:47.965: I/cr_LibraryLoader(10900): Expected native library version number "58.0.3029.125", actual native library version number "58.0.3029.125"
01-24 21:02:47.981: W/crash_dump32(10987): type=1400 audit(0.0:114): avc: denied { search } for name="net.facv.playwater7" dev="sda35" ino=877676 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
01-24 21:02:48.033: I/crash_dump32(10987): obtaining output fd from tombstoned
01-24 21:02:48.033: I//system/bin/tombstoned(678): received crash request for pid 10643
01-24 21:02:48.036: I/crash_dump32(10987): performing dump of process 10643 (target tid = 10688)
01-24 21:02:48.036: A/DEBUG(10987): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-24 21:02:48.037: A/DEBUG(10987): Build fingerprint: 'google/sailfish/sailfish:8.0.0/OPR3.170623.008/4294783:user/release-keys'
01-24 21:02:48.037: A/DEBUG(10987): Revision: '0'
01-24 21:02:48.037: A/DEBUG(10987): ABI: 'arm'
01-24 21:02:48.037: A/DEBUG(10987): pid: 10643, tid: 10688, name: GLThread 61  >>> net.facv.playwater7 <<<
01-24 21:02:48.037: A/DEBUG(10987): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
01-24 21:02:48.037: A/DEBUG(10987): Cause: null pointer dereference
01-24 21:02:48.037: A/DEBUG(10987):     r0 00000000  r1 fffffd3c  r2 c7883f00  r3 00000003
01-24 21:02:48.037: A/DEBUG(10987):     r4 e756db70  r5 c7883f00  r6 000513fc  r7 00000000
01-24 21:02:48.037: A/DEBUG(10987):     r8 02a0e9a0  r9 ca03a610  sl 00000004  fp c77f4900
01-24 21:02:48.037: A/DEBUG(10987):     ip c9b4acd0  sp c9b4b1d8  lr e7553f4d  pc ca02ff94  cpsr 600f0010
01-24 21:02:48.044: A/DEBUG(10987): backtrace:
01-24 21:02:48.044: A/DEBUG(10987):     #00 pc 000a2f94  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libopenal.so
01-24 21:02:48.044: A/DEBUG(10987):     #01 pc 00016874  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libopenal.so (alcCreateContext+436)
01-24 21:02:48.045: A/DEBUG(10987):     #02 pc 00005ff7  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libalmixer.so (ALmixer_Init+214)
01-24 21:02:48.045: A/DEBUG(10987):     #03 pc 0011de04  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libcorona.so
01-24 21:02:48.045: A/DEBUG(10987):     #04 pc 000fce20  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libcorona.so
01-24 21:02:48.045: A/DEBUG(10987):     #05 pc 0000cc04  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #06 pc 0001ce18  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #07 pc 0000d050  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #08 pc 00005524  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so (lua_call+32)
01-24 21:02:48.045: A/DEBUG(10987):     #09 pc 000126cc  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #10 pc 0000cc04  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #11 pc 0001c954  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #12 pc 0000d050  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #13 pc 00005524  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so (lua_call+32)
01-24 21:02:48.045: A/DEBUG(10987):     #14 pc 000126cc  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #15 pc 0000cc04  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #16 pc 0001c954  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #17 pc 0000d050  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #18 pc 0000c35c  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #19 pc 0000d1c8  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #20 pc 000055a0  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so (lua_pcall+88)
01-24 21:02:48.045: A/DEBUG(10987):     #21 pc 00006ff8  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #22 pc 0000cc04  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/l
ib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #23 pc 0001ce18  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #24 pc 0000d050  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #25 pc 0000c35c  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #26 pc 0000d1c8  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so
01-24 21:02:48.045: A/DEBUG(10987):     #27 pc 000055a0  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/liblua.so (lua_pcall+88)
01-24 21:02:48.045: A/DEBUG(10987):     #28 pc 000f59e8  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libcorona.so
01-24 21:02:48.045: A/DEBUG(10987):     #29 pc 00089904  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libcorona.so
01-24 21:02:48.045: A/DEBUG(10987):     #30 pc 0012fa5c  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libcorona.so
01-24 21:02:48.046: A/DEBUG(10987):     #31 pc 0007bad8  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/lib/arm/libcorona.so
01-24 21:02:48.046: A/DEBUG(10987):     #32 pc 0005262f  /data/app/net.facv.playwater7-G3AZSaR5hROGFwvVzNJPQA==/oat/arm/base.odex (offset 0x2c000)

The full log is here. Video is here.



[TOPIC: post.html]
#66

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 76 posts
  • Corona SDK

I am also getting a lot of crashes of this kind (on Android 7.0+):

 

signal 5 (SIGTRAP), code 1 (TRAP_BRKPT)

base.apk

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.*mycompanyname*.*myappname* <<<

backtrace:
  #00  pc 00000000005d02be  /data/app/com.android.chrome-2/base.apk

Did anyone have a solution for that?

 

Best regards,

Bjoern



[TOPIC: post.html]
#67

zsolt_huszar

[GLOBAL: userInfoPane.html]
zsolt_huszar
  • Observer

  • 6 posts
  • Corona SDK

Dear All,

 

I am facing a "signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) libcorona.so" crash problem similar to a previous one reported by Sphere Game Studios below.

 

My GOOGLE PLAY crash details are the following:

 

 
Samsung Galaxy J1 Mini (j1mini3gxw), 768MB RAM, Android 5.1
 

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

pid: 0, tid: 0 >>> com.gmail.huzso78.stickball.europeanedition <<<

 

backtrace:
#00 pc 0000000000030c7c /data/app/com.gmail.huzso78.stickball.europeanedition-1/lib/arm/libcorona.so
#01 pc 000000000002b6e4 /data/app/com.gmail.huzso78.stickball.europeanedition-1/lib/arm/libcorona.so
#02 pc 000000000002e9f8 /data/app/com.gmail.huzso78.stickball.europeanedition-1/lib/arm/libcorona.so (Java_com_ansca_corona_JavaToNativeShim_nativeDone+28)
#03 pc 000000000041cf45 /data/dalvik-cache/arm/data@app@com.gmail.huzso78.stickball.europeanedition-1@base.apk@classes.dex

 

 

The Corona build is 2017.3145.

 

Do these lines hint the root problem? Is there a known solution to this issue?

I would highly appreciate any tips or advice. Many thanks in advance!

 

In the meantime, I will try to reproduce the error (I am not sure whether I can do this, since this kind of problem has not come up so far with my devices despite a long test period).

 

Kind regards,

Zsolt

 

 

 

My top crash is

 

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

libcorona.so

backtrace:
  native: pc 0000000000030c7c  /data/app/com.spheregamestudios.designercity-1/lib/arm/libcorona.so
  native: pc 000000000002b6e4  /data/app/com.spheregamestudios.designercity-1/lib/arm/libcorona.so
  native: pc 000000000002e9f8  /data/app/com.spheregamestudios.designercity-1/lib/arm/libcorona.so (Java_com_ansca_corona_JavaToNativeShim_nativeDone+28)
  native: pc 0000000000937be5  /data/app/com.spheregamestudios.designercity-1/oat/arm/base.odex

 



[TOPIC: post.html]
#68

jacques1

[GLOBAL: userInfoPane.html]
jacques1
  • Contributor

  • 318 posts
  • Corona SDK

For us its easy to replicate these ANR crashes, seems only to happen frequently on Android 7 >

And it crashes right after asking for permissions during a fresh install.



[TOPIC: post.html]
#69

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 710 posts
  • Corona Staff

For us its easy to replicate these ANR crashes, seems only to happen frequently on Android 7 >

And it crashes right after asking for permissions during a fresh install.

 

Wow! That's amazing (for fixing it)! Could you please list plugins which are calling for permissions, or make a sample?



[TOPIC: post.html]
#70

jacques1

[GLOBAL: userInfoPane.html]
jacques1
  • Contributor

  • 318 posts
  • Corona SDK

Wow! That's amazing (for fixing it)! Could you please list plugins which are calling for permissions, or make a sample?

 

Not sure if you quoted the right post there, as we are having the ANR problems not finding any fixes. But below is our build.settings

settings =
{
	plugins =
	{
		["CoronaProvider.gameNetwork.apple"] =
		{
			publisherId = "com.coronalabs",
			supportedPlatforms = { iphone=true, ["iphone-sim"]=true },
		},
		
		--for vungle below
		
		["CoronaProvider.ads.vungle"] =
        {
            publisherId = "com.vungle",
        },

	},
	
	orientation =
	{
		default = "landscapeRight",
		supported = {"landscapeLeft", "landscapeRight"}
	},
	
	iphone =
	{
			xcassets = "Images.xcassets",
			plist =
			{
					UIPrerenderedIcon = true,
					UIStatusBarHidden = true,
					UIApplicationExitsOnSuspend = false,					
					UILaunchStoryboardName = "LaunchScreen",
					CFBundleDisplayName = "WOTZ"
			},
	},
	android =
    {
    	largeHeap = true,
    	usesExpansionFile = true,
        versionCode = "464",
        usesPermissions =
        {
            "android.permission.INTERNET",
            "android.permission.WRITE_EXTERNAL_STORAGE",
            "com.android.vending.CHECK_LICENSE"
        },
    }
}

 And this is the code in the main.lua calling for the permissions.

--------------------------------------------------------
-- CHECK STORAGE PERMISSION IS GRANTED
--------------------------------------------------------
local function isStoragePermissionGranted( grantedAppPermissionsTable )
	if grantedAppPermissionsTable then
		for k,v in pairs( grantedAppPermissionsTable ) do
			 if ( v == "Storage" ) then
				 print( "** Storage permission granted! **" )
				 return true
			 end
		end
    end
    return false
end

local function appPermissionsListener( event )
    if ( isStoragePermissionGranted( event.grantedAppPermissions ) ) then
        -- Do stuff requiring storage permission
        print("* Storage Permission granted *")
        debugLog.text=debugLog.text.."\n STORAGE PERMISSION GRANTED"
    else
        -- Handle not having storage permission
        print("* Storage Permission NOT granted *")
        debugLog.text=debugLog.text.."\n STORAGE PERMISSION NOT GRANTED"
    end
end

if ( not isStoragePermissionGranted( system.getInfo( "grantedAppPermissions" ) ) ) then
    if ( native.canShowPopup( "requestAppPermission" ) ) then
        -- Request Storage Permission.
        local options =
		{
			appPermission = "Storage",
			urgency = "Critical",
			listener = appPermissionsListener,
			rationaleTitle = "Storage access required",
			rationaleDescription = "Storage access is required to store your career data. Re-request now?",
			settingsRedirectTitle = "Alert",
			settingsRedirectDescription = "Without the ability to store data, this app cannot properly function. Please grant storage access within Settings."
		}
        native.showPopup( "requestAppPermission", options )
    else
        -- You need to add a permission in the Storage group to your build.settings.
         print("* requestAppPermission NOT compatible, Storage Permission NOT granted *")
    end
end 

Whether the permissions request is one of the causes of ANRs I am not sure as we don't actually have a device with android 7.0 or newer, we only got this info from one of our core beta testers in Europe.

 

We are using Build: 2018.3224, and the same build.settings for both android and ios.

 

**Apologies, CORRECTION to the build number, for our last android build we used 2018.3222 NOT 2018.3224.**

We use 2018.3224 for our mac osx builds which run fine.



[TOPIC: post.html]
#71

zsolt_huszar

[GLOBAL: userInfoPane.html]
zsolt_huszar
  • Observer

  • 6 posts
  • Corona SDK

Many thanks Jacques for the info!

I am sharing the excitement along with Vlad – would be great if Corona Staff could make a fix!

 

As for plugins and permissions, my app is simple:

 

plugins =
    {
        ["plugin.applovin"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
    },

 

Based on the plugin's doc the following permissions are automatically added:
  • "android.permission.INTERNET"
  • "android.permission.ACCESS_NETWORK_STATE"
  • "android.permission.WRITE_EXTERNAL_STORAGE"

 

 

I am still trying to replicate the mentioned crash, I would let you know if I succeed...



[TOPIC: post.html]
#72

JBean

[GLOBAL: userInfoPane.html]
JBean
  • Contributor

  • 175 posts
  • Corona SDK

We have had 486 reports in the last 7 days of this CRASH. PLEASE FIX IT ASAP. (This was posted in another thread, and has not been dealt with in over a week)
 
We really hope this is expedited soon.
 
All of our Corona based apps that have had crash issues have dived in ranking on the google play store. This is the reality of revenue and sales hurt over these crashes.
 
We have unity based apps on the store which don't have this amount of crash issues. C'mon guys, I realize you have a lot to do, but at the very least, these issues need to be taken care of.
 
java.lang.IllegalStateException:

 

 

 
at android.app.FragmentManagerImpl.checkStateLoss (FragmentManager.java:1323)
 
at android.app.FragmentManagerImpl.popBackStackImmediate (FragmentManager.java:493)
 
at android.app.Activity.onBackPressed (Activity.java:2304)
 
at android.app.Activity.onKeyUp (Activity.java:2282)
 
at com.ansca.corona.CoronaActivity.onKeyUp (CoronaActivity.java:3482)
 
at android.view.KeyEvent.dispatch (KeyEvent.java:3232)
 
at android.app.Activity.dispatchKeyEvent (Activity.java:2512)
 
at com.ansca.corona.input.RaiseKeyEventTask$1.run (RaiseKeyEventTask.java:90)
 
at android.os.Handler.handleCallback (Handler.java:733)
 
at android.os.Handler.dispatchMessage (Handler.java:95)
 
at android.os.Looper.loop (Looper.java:136)
 
at android.app.ActivityThread.main (ActivityThread.java:5584)
 
at java.lang.reflect.Method.invokeNative (Native Method)
 
at java.lang.reflect.Method.invoke (Method.java:515)
 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
 
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
 
at dalvik.system.NativeStart.main (Native Method)


[TOPIC: post.html]
#73

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 710 posts
  • Corona Staff

Hey JBean, please, refrain from using ALL CAPS.

Can you reproduce the crash? Do you have any information why it happens? Also, 486 doesn't mean much. If you have 1m sessions, it's like 0.05%.

We do not use Fragments or FragmentManager inside Corona which seem to be causing this crashes. Lot of ad networks and other plugins use them. I suggest trying your app, pressing back button and look for the crash while various ads are playing. 



[TOPIC: post.html]
#74

JBean

[GLOBAL: userInfoPane.html]
JBean
  • Contributor

  • 175 posts
  • Corona SDK

@vlads: Sorry I was copying and pasting something and that happened to be the text that was auto-typing from a prior message. (It somehow copied the same font style as the code I pasted)

 

I haven't been able to reproduce the crash on my device.

 

What I am speculating is that the users are trying to hit the back button to back out of the ads showing up. We are noticing significant delays with the very first ad that shows up from the Applovin plugin (not sure if this is an Applovin thing, or a preload issue)

 

So what is happening is, when the first ad shows up with Applovin paid plugn, there is a black screen for about 3-4 seconds, then the ad finally appears (This only happens with the first ad) subsequent ads show up as normal.

 

So what I am speculating due to this issue is that users are possibly tapping the back button to get out of the ad, and there's no response, and it inadvertently exits out of the app.

 

I tested the app myself, and unless I repeatedly tap the back button, it does not crash. So I'm not sure if it's user behavior that's getting inputted as a crash.

 

How do we prevent this error from happening then? What is your solution?

 

Thanks Vlad! Let me know if you have any ideas on how to fix it.

 

Also, what version of the Applovin SDK is implemented in the paid applovin plugin right now? According to Applovin, the latest SDK version for android is 8.0.0

 

That latest version is currently out, so hoping that this new one may fix that black screen issue on the first ad impresion, which may inadvertently fix the issue above that I have described.



[TOPIC: post.html]
#75

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 710 posts
  • Corona Staff

Can I get full list of plugins you're using?




[topic_controls]
Page 3 of 4 1 2 3 4
 
[/topic_controls]