New to Android debugging ...

Hello all,

Hopefully someone could guide me here.  I’m testing an app that is randomly crashing on my Android phone.  I finally got the Android SDK / ADB thing configured so I can see a verbose output from the device as it runs … but I have no idea what it is telling me!

Below is a copy/paste of the output near the crash.  Can anyone see something obvious that could be causing the problem?

Thanks!

-Mark

I’m using latest stable build of Corona: Version 2013.1076 (2013.4.3)

Developing on a Mac with LuaGlider

Here’s the output:

… 

04-18 15:01:43.249  1360 21649 E OMXPlayer: waiting to render 0x4b4e40

04-18 15:01:43.249  1360 21665 E OMXPlayer: waiting to render 0x1f2910

04-18 15:01:43.249  1360 21633 E OMXPlayer: waiting to render 0x8ad598

04-18 15:01:43.249  1360 21698 E OMXPlayer: waiting to render 0x9b43a0

04-18 15:01:43.259  1360 21684 E OMXPlayer: waiting to render 0x956800

04-18 15:01:43.259  1360 21619 E OMXPlayer: waiting to render 0x3cd8f0

04-18 15:01:43.439 21517 21529 D dalvikvm: GC_FOR_MALLOC freed 1815K, 72% free 3263K/11591K, external 5740K/6490K, paused 30ms

04-18 15:01:43.479  1672  1672 D dalvikvm: GC_EXPLICIT freed 13K, 49% free 3074K/6023K, external 2357K/2773K, paused 170ms

04-18 15:01:43.499 21517 21529 D dalvikvm: GC_EXTERNAL_ALLOC freed 544K, 72% free 3263K/11591K, external 2357K/2943K, paused 28ms

04-18 15:01:43.609 21517 21520 D dalvikvm: GC_CONCURRENT freed <1K, 55% free 5256K/11591K, external 4350K/5432K, paused 1ms+2ms

04-18 15:01:43.669 21517 21529 D dalvikvm: GC_EXTERNAL_ALLOC freed 2029K, 72% free 3264K/11591K, external 2361K/2948K, paused 27ms

04-18 15:01:43.962  1378  1474 I         : odm_disp_esd_thread is running(7) state=1

04-18 15:01:45.119 21517 21529 D dalvikvm: GC_FOR_MALLOC freed <1K, 72% free 3263K/11591K, external 10549K/12597K, paused 34ms

04-18 15:01:45.359  1360  1449 W AudioFlinger: write blocked for 165 msecs, 1389 delayed writes, thread 0x13b48

04-18 15:01:45.369 21517 21529 I dalvikvm-heap: Grow heap (frag case) to 23.572MB for 8388624-byte allocation

04-18 15:01:45.449 21517 21519 D dalvikvm: GC_FOR_MALLOC freed 0K, 43% free 11455K/19847K, external 10549K/12597K, paused 58ms

04-18 15:01:45.509 21517 21520 D dalvikvm: GC_CONCURRENT freed <1K, 43% free 11456K/19847K, external 10549K/12597K, paused 1ms+7ms

04-18 15:01:45.789  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:45.819  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:45.839 21517 21529 D dalvikvm: GC_FOR_MALLOC freed 8192K, 84% free 3264K/19847K, external 6263K/10549K, paused 20ms

04-18 15:01:45.839 21517 21529 I dalvikvm-heap: Grow heap (frag case) to 15.202MB for 4000016-byte allocation

04-18 15:01:45.879 21517 21519 D dalvikvm: GC_FOR_MALLOC freed <1K, 64% free 7170K/19847K, external 6263K/10549K, paused 16ms

04-18 15:01:45.939 21517 21520 D dalvikvm: GC_CONCURRENT freed 0K, 64% free 7170K/19847K, external 6263K/10549K, paused 1ms+2ms

04-18 15:01:46.019 21517 21529 D dalvikvm: GC_EXTERNAL_ALLOC freed 3906K, 84% free 3264K/19847K, external 2357K/6263K, paused 24ms

04-18 15:01:46.769 21568 21568 I DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

04-18 15:01:46.769 21568 21568 I DEBUG   : Build fingerprint: ‘verizon/daytona/daytona:2.3.5/4.5.1A-DTN-200-18/0:user/release-keys’

04-18 15:01:46.769 21568 21568 I DEBUG   : pid: 21517, tid: 21529  >>> com.cherubimmusic.caterpillar <<<

04-18 15:01:46.769 21568 21568 I DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr fffbd1e8

04-18 15:01:46.769 21568 21568 I DEBUG   :  r0 fffbd1e8  r1 00300a68  r2 00000000  r3 002fc1b0

04-18 15:01:46.769 21568 21568 I DEBUG   :  r4 fffbd1e8  r5 00000de1  r6 00300a68  r7 8231a1a4

04-18 15:01:46.769 21568 21568 I DEBUG   :  r8 00000000  r9 00000de1  10 fffbd1e8  fp 44e39ed8

04-18 15:01:46.769 21568 21568 I DEBUG   :  ip 44e39f00  sp 44e39aa0  lr 8230b0f7  pc 8230fd70  cpsr 20000030

04-18 15:01:46.769 21568 21568 I DEBUG   :  d0  0000000000000000  d1  3f8040003f800000

04-18 15:01:46.769 21568 21568 I DEBUG   :  d2  3f8040003f7f8000  d3  3f7f80003f7f8000

04-18 15:01:46.769 21568 21568 I DEBUG   :  d4  4704c0003f804000  d5  3f800000000084c0

04-18 15:01:46.769 21568 21568 I DEBUG   :  d6  3f7f80003f800000  d7  000000003f800000

04-18 15:01:46.769 21568 21568 I DEBUG   :  d8  0000000000000000  d9  0000000000000000

04-18 15:01:46.769 21568 21568 I DEBUG   :  d10 0000000000000000  d11 0000000000000000

04-18 15:01:46.769 21568 21568 I DEBUG   :  d12 0000000000000000  d13 0000000000000000

04-18 15:01:46.769 21568 21568 I DEBUG   :  d14 0000000000000000  d15 0000000000000000

04-18 15:01:46.769 21568 21568 I DEBUG   :  scr 60000012

04-18 15:01:46.769 21568 21568 I DEBUG   : 

04-18 15:01:46.989 21568 21568 I DEBUG   :          #00  pc 0000fd70  /system/lib/egl/libGLESv1_CM_tegra.so

04-18 15:01:46.989 21568 21568 I DEBUG   :          #01  pc 0000b0f2  /system/lib/egl/libGLESv1_CM_tegra.so

04-18 15:01:46.989 21568 21568 I DEBUG   :          #02  pc 000939a8  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.989 21568 21568 I DEBUG   :          #03  pc 000a2668  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.989 21568 21568 I DEBUG   :          #04  pc 000d2178  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.989 21568 21568 I DEBUG   :          #05  pc 0009636c  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.989 21568 21568 I DEBUG   :          #06  pc 000ce6e4  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.999 21568 21568 I DEBUG   :          #07  pc 00097028  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.999 21568 21568 I DEBUG   :          #08  pc 000c7be8  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:46.999 21568 21568 I DEBUG   :          #09  pc 0008ab0c  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #10  pc 00011e74  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #11  pc 0004354a  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #12  pc 00017088  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #13  pc 0001c210  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #14  pc 0001b0f8  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #15  pc 00059c0c  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #16  pc 00059e24  /system/lib/libdvm.so

04-18 15:01:47.019 21568 21568 I DEBUG   :          #17  pc 0004e186  /system/lib/libdvm.so

04-18 15:01:47.019  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:47.029 21568 21568 I DEBUG   :          #18  pc 00011b94  /system/lib/libc.so

04-18 15:01:47.029 21568 21568 I DEBUG   :          #19  pc 0001173c  /system/lib/libc.so

04-18 15:01:47.029 21568 21568 I DEBUG   : 

04-18 15:01:47.029 21568 21568 I DEBUG   : code around pc:

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230fd50 4604b510 68c0b148 60e31e43 4620b92b 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230fd60 478868a1 f7f24620 bd10ee1a 4604b570 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230fd70 460d6800 ffecf7ff 68e8b115 60eb1c43 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230fd80 bd706025 2210b570 2100460d f7f24604 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230fd90 2301ee1e 60e360a5 bf00bd70 f021b570 

04-18 15:01:47.029 21568 21568 I DEBUG   : 

04-18 15:01:47.029 21568 21568 I DEBUG   : code around lr:

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230b0d4 f2404620 f0025105 e00dfba7 2940f8d4 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230b0e4 69104631 f0044642 4650fdd1 f0044631 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230b0f4 2001fe3b 0938f884 87f0e8bd 0000f150 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230b104 ffffffe0 41f3e92d 46054c1b 481b447c 

04-18 15:01:47.029 21568 21568 I DEBUG   : 8230b114 5823461e f8d34688 46170234 3ffff1b0 

04-18 15:01:47.029 21568 21568 I DEBUG   : 

04-18 15:01:47.029 21568 21568 I DEBUG   : stack:

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a60  002fb608  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a64  8230d847  /system/lib/egl/libGLESv1_CM_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a68  002fbe5c  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a6c  82805f24  /system/lib/egl/libGLESv2_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a70  002fbe5c  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a74  8230d847  /system/lib/egl/libGLESv1_CM_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a78  002fbe5c  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a7c  8231a1a4  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a80  002fb608  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a84  8280546c  /system/lib/egl/libGLESv2_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a88  002fb608  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a8c  8280f5a0  /system/lib/egl/libGLESv2_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a90  002fb608  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a94  82805f24  /system/lib/egl/libGLESv2_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a98  df002777  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39a9c  e3a070ad  

04-18 15:01:47.029 21568 21568 I DEBUG   : #00 44e39aa0  002fb608  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39aa4  00000de1  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39aa8  00300a68  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39aac  8230b0f7  /system/lib/egl/libGLESv1_CM_tegra.so

04-18 15:01:47.029 21568 21568 I DEBUG   : #01 44e39ab0  003463b8  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39ab4  003463b8  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39ab8  000000ff  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39abc  006b16a8  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39ac0  0000002a  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39ac4  44d39efc  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39ac8  000000ff  

04-18 15:01:47.029 21568 21568 I DEBUG   :     44e39acc  818939ac  /data/data/com.cherubimmusic.caterpillar/lib/libcorona.so

04-18 15:01:47.449  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:47.559  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:48.109  1453  1682 I WindowManager: WIN DEATH: Window{40ec6518 com.cherubimmusic.caterpillar/com.ansca.corona.CoronaActivity paused=false}

04-18 15:01:48.109  1453  1494 I BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)

04-18 15:01:48.119  1358  1358 D Zygote  : Process 21517 terminated by signal (11)

04-18 15:01:48.169  1453  1527 E InputDispatcher: channel ‘40ec6518 com.cherubimmusic.caterpillar/com.ansca.corona.CoronaActivity (server)’ ~ Consumer closed input channel or an error occurred.  events=0x8

04-18 15:01:48.169  1453  1527 E InputDispatcher: channel ‘40ec6518 com.cherubimmusic.caterpillar/com.ansca.corona.CoronaActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!

04-18 15:01:48.179  1453  3217 I ActivityManager: Process com.cherubimmusic.caterpillar (pid 21517) has died.

04-18 15:01:48.219  1453  1808 I WindowManager: WIN DEATH: Window{410a9680 SurfaceView paused=false}

04-18 15:01:48.239  1453  1684 I WindowManager: Setting rotation to 0, animFlags=1

04-18 15:01:48.319  1360  1449 D AudioHardwareMot: AudioStreamOutMot::setParameters() fm_attenuate=0;fm_mute=0

04-18 15:01:48.339  1453  3217 I ActivityManager: Config changed: { scale=1.0 imsi=310/4 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=268435490 uiMode=17 seq=223}

04-18 15:01:48.349  1660  9465 D MirrorService: onRotationChanged - rotation = 0

04-18 15:01:48.349  1660  9465 D MirrorService: onRotationChanged! - PORTRAIT!!!

04-18 15:01:48.630  1657  1657 I PortalService: onConfigurationChanged

04-18 15:01:48.729  1453  3217 I ActivityManager: Low Memory: No more background processes.

04-18 15:01:49.059 21546 21546 I QuickContactProvider: Query: content://com.motorola.blur.quickcontact.quickcontactprovider/qcwidget

04-18 15:01:49.059 21546 21546 I QuickContactProvider: 101

04-18 15:01:49.079 21546 21546 I QuickContactService: OnCreate of the Service

04-18 15:01:49.129  1453  1453 W InputManagerService: Got RemoteException sending setActive(false) notification to pid 21517 uid 10113

04-18 15:01:49.179  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:50.939  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:50.939  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:50.959  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:50.999  1453  1525 D dalvikvm: GC_EXPLICIT freed 1401K, 52% free 10954K/22407K, external 4947K/6972K, paused 201ms

04-18 15:01:51.131  1360  1449 D AudioHardwareMot: AudioStreamOutMot::standby called

04-18 15:01:51.131  1360  1449 D AudioHardwareMot: Output 0x13648 entering standby

04-18 15:01:51.131  1360  1449 D AudioHardwareMot: Closing stereo device

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x200 = 65

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x201 = 8000

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x202 = 8603

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x203 = 8

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x204 = 3c

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x205 = 0

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x206 = 39c

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x207 = 0

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x208 = b2c

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x209 = 0

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x20A = 0

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x20B = 0

04-18 15:01:51.131  1360  1449 D CpcapAudio:  0x20D = 30

04-18 15:01:51.131  1360  1449 D AudioHardwareMot: disable configClock count = 0

04-18 15:01:51.131  1360  1449 D AudioHardwareMot: Disabling CPCAP input clock 

04-18 15:01:51.131  1360  1449 D AudioHardwareMot: NvOdmExternalClockConfig status 0x00000001 

04-18 15:01:51.139  1360  1449 D AudioHardwareMot: [int android::AudioHardwareMot::audioSelectSpeakers(int)] enter with spkr = 0

04-18 15:01:51.139  1360  1449 D AudioHardwareMot: spkr1 = 0, spkr2 = 0

04-18 15:01:51.139  1360  1449 D AudioHardwareMot: Setting STDAC speakers to none

04-18 15:01:51.139  1360  1449 D AudioHardwareMot: configPostProcessor() called with accy = 0

04-18 15:01:51.139  1360  1449 D AudioPostProcessor: configPostProcessing() called, inputAccy= 40, outputAccy= 0, sampleRate= 44100, ringtoneMode= 0

04-18 15:01:51.139  1360  1449 D AudioPostProcessor: updatePostProcessor: speakerConfig

04-18 15:01:51.139  1360  1449 D AudioPostProcessor: updatePostProcessor calling SuperAPI parser with: accy=8 config=0 SE_level_index=1

04-18 15:01:51.139  1360  1449 D AudioMgrRIL: Sending accessory : 3

04-18 15:01:51.139  1360  1449 D AudioPostProcessor: slider opened, coeffs device for handset =0

04-18 15:01:51.139  1360  1449 D AudioHardwareMot: Turning off EMU

04-18 15:01:51.139  1360  1449 D AudioHardwareMot: doRouting devs: stereo 0, mono 0, input 0. Chose speaker None (gain 0) mic None (gain 0x1c1c)

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x200 = 65

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x201 = 8000

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x202 = 8603

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x203 = 8

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x204 = 3c

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x205 = 0

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x206 = 39c

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x207 = 0

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x208 = 0

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x209 = 0

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x20A = 0

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x20B = 0

04-18 15:01:51.139  1360  1449 D CpcapAudio:  0x20D = 30

04-18 15:01:51.149  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:51.407  1347  1384 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter ‘UDEV_LOG’ not found

04-18 15:01:52.717  1378  1474 I         : odm_disp_esd_thread is running(39) state=1

04-18 15:01:53.249  1360 21633 E OMXPlayer: waiting to render 0x8ad598

04-18 15:01:53.249  1360 21698 E OMXPlayer: waiting to render 0x9b43a0

04-18 15:01:53.249  1360 21665 E OMXPlayer: waiting to render 0x1f2910

04-18 15:01:53.249  1360 21649 E OMXPlayer: waiting to render 0x4b4e40

04-18 …

I’m with you, I have no idea what that means.

However, when I am debugging on an Android device I also use the command “adb logcat | Grep Corona” in terminal which should filter all of the feeds to only Corona events. And then combined with print statements I can usually troubleshoot the problem. Hope that helps you out!

A segment violation (SIGSEGV or signal 11) happens when you try to access memory that you are not allowed to.  The Operating system chops memory up into segments, some you are allowed to access, others the OS is allowed to access.  If you try to access a segment you don’t have permission to the OS will kill your app.

The typical cause of this is trying to access a function that’s no longer in memory.   Here is an example:

local function fred(event)

    – code  here irrelevent

end

someButton:addEventListener(“touch”, fred)

fred = 32  – accidentally overwrote the function reference.

now touch your button.  It will try to call a function fred, but memory address 32 is not something you have access to and your app will die a quite quick death at the hands of the OS’s Kernel.

Now that’s an exaggerated example.  You are probably not going to intentionally overwrite the variable, but its too easy to accidentally do it or destroy an object then try to call one of the object’s methods.  But honestly the place where this burns me the most is having some “onComplete” like for when a voice over sound is finishing or a transition’s onComplete tries to fire and you’re using Storyboard and you change scenes then purge the previous scene.  That function that triggers on onComplete isn’t there and you get this error.

Rob,

Thank you once again! Your “where this burns me the most” is exactly what’s happening.  I’m afraid I have a rat’s nest of jumping from one scene to another and destroying and rebuilding.

Thanks again,

-Mark

I’m with you, I have no idea what that means.

However, when I am debugging on an Android device I also use the command “adb logcat | Grep Corona” in terminal which should filter all of the feeds to only Corona events. And then combined with print statements I can usually troubleshoot the problem. Hope that helps you out!

A segment violation (SIGSEGV or signal 11) happens when you try to access memory that you are not allowed to.  The Operating system chops memory up into segments, some you are allowed to access, others the OS is allowed to access.  If you try to access a segment you don’t have permission to the OS will kill your app.

The typical cause of this is trying to access a function that’s no longer in memory.   Here is an example:

local function fred(event)

    – code  here irrelevent

end

someButton:addEventListener(“touch”, fred)

fred = 32  – accidentally overwrote the function reference.

now touch your button.  It will try to call a function fred, but memory address 32 is not something you have access to and your app will die a quite quick death at the hands of the OS’s Kernel.

Now that’s an exaggerated example.  You are probably not going to intentionally overwrite the variable, but its too easy to accidentally do it or destroy an object then try to call one of the object’s methods.  But honestly the place where this burns me the most is having some “onComplete” like for when a voice over sound is finishing or a transition’s onComplete tries to fire and you’re using Storyboard and you change scenes then purge the previous scene.  That function that triggers on onComplete isn’t there and you get this error.

Rob,

Thank you once again! Your “where this burns me the most” is exactly what’s happening.  I’m afraid I have a rat’s nest of jumping from one scene to another and destroying and rebuilding.

Thanks again,

-Mark