Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

App crashes occasionally with fatal signal 11 on Android

$
0
0

Hey all,

I'm having a really strange problem right now. First of all my specs:

  • Titanium Studio, build: 3.1.0.201304151600
  • Titanium SDK 3.1
  • Alloy 1.1.2
  • Android 4.0.4 (device), Android 2.2 (emulator), Android 2.3.3 (emulator), Android 4.2 (emulator)
  • Mint 15

I want my app to have a registration form. At the moment the app crashes on Android occasionally when I hit the registration button, which is very weird, because I can confirm that my code works generally. It works like a charm on iOS and it sometimes works on Android. There is no platform specific code used.

Here is code from the controller which is called when registration button is hit:

function doRegistration() {
 
    // hides keyboard, if visible
    $.mailTextfield.blur();
    $.passwordTextfield.blur();
    $.repeatPasswordTextfield.blur();
 
    if (Ti.Network.online) {
        var email = $.mailTextfield.value;
        var password = $.passwordTextfield.value;
        var repeatedPassword = $.repeatPasswordTextfield.value;
 
        if (email == '' || password == '' || repeatedPassword == '') {
            $.emptyTextfieldsDialog.show();
        } else if (!validateEmail(email)) {
            $.invalidEmailDialog.show();
        } else if (!validatePassword(password, repeatedPassword)) {
            $.noMatchtingPasswordsDialog.show();
        } else {
            var registrationData = {
                email : email,
                password : Ti.Utils.md5HexDigest(password)
            };
 
            showIndicators();
 
            Ti.API.info(JSON.stringify(registrationData));
            networkUtil.register(registrationData, successfulLoad, unsuccessfulLoad);
        }
    } else {
        $.noConnectionDialog.show();
    }
}
The app crashes at different points. Sometimes it crashes when showing the indicators, sometimes it crashes when doing network stuff in the register method (where I use HTTPClient).

On Android 4.0.4 I get the following error in DDMS (nothing is shown in the app):

libc        Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1)
On Android 2.2 and 2.3.3 I get the following error (nothing is shown in the app):
I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (   31): Build fingerprint: 'generic/google_sdk/generic/:2.2/FRF91/43546:eng/test-keys'
I/DEBUG   (   31): pid: 344, tid: 353  >>> com.***.*** <<<
I/DEBUG   (   31): signal 11 (SIGSEGV), fault addr 00000014
I/DEBUG   (   31):  r0 00000000  r1 81487a7c  r2 00000082  r3 00000000
I/DEBUG   (   31):  r4 00000000  r5 00000000  r6 464a3a47  r7 5ea57771
I/DEBUG   (   31):  r8 0000287c  r9 81092a19  10 39708091  fp 397572d1
I/DEBUG   (   31):  ip 81553f4c  sp 464a3a18  lr 81092a87  pc 81071c3c  cpsr 60000030
I/ActivityManager(   60): Process com.android.settings (pid 120) has died.
I/DEBUG   (   31):          #00  pc 00071c3c  /data/data/com.***.***/lib/libkroll-v8.so
I/DEBUG   (   31):          #01  pc 00092a82  /data/data/com.***.***/lib/libkroll-v8.so
I/DEBUG   (   31):          #02  pc 0015c04c  /data/data/com.***.***/lib/libkroll-v8.so
I/DEBUG   (   31): 
I/DEBUG   (   31): code around pc:
I/DEBUG   (   31): 81071c1c 1c2060e5 ffc8f7ff 46c0bd70 ffffff9b 
I/DEBUG   (   31): 81071c2c 4b19b570 447b1c04 781b681b d1162b00 
I/DEBUG   (   31): 81071c3c 2b007d03 6900d00d fefaf004 d01a1e05 
I/DEBUG   (   31): 81071c4c 23004a12 68607523 1c21447a e9e6f0c2 
I/DEBUG   (   31): 81071c5c 6900e003 fed8f004 1c281c05 f7ffbd70 
I/DEBUG   (   31): 
I/DEBUG   (   31): code around lr:
I/DEBUG   (   31): 81092a64 2500d100 2b0068b3 6870dd04 ee5af0b8 
I/DEBUG   (   31): 81092a74 d0492800 466e2300 361f9304 f7df1c28 
I/DEBUG   (   31): 81092a84 4b45f8d3 1c056821 6fda447b 58cb23fc 
I/DEBUG   (   31): 81092a94 1c291c20 ab04469c 4b4047e0 681b447b 
I/DEBUG   (   31): 81092aa4 2b00781b 7833d013 d1182b00 23e46822 
I/DEBUG   (   31): 
I/DEBUG   (   31): stack:
I/DEBUG   (   31):     464a39d8  00281550  [heap]
I/DEBUG   (   31):     464a39dc  4df53275  
I/DEBUG   (   31):     464a39e0  464a3a60  
I/DEBUG   (   31):     464a39e4  00281550  [heap]
I/DEBUG   (   31):     464a39e8  464a3ae8  
I/DEBUG   (   31):     464a39ec  464a3ae4  
I/DEBUG   (   31):     464a39f0  464a3ae8  
I/DEBUG   (   31):     464a39f4  464a3a60  
I/DEBUG   (   31):     464a39f8  00001f64  
I/DEBUG   (   31):     464a39fc  464a3aa0  
I/DEBUG   (   31):     464a3a00  00000001  
I/DEBUG   (   31):     464a3a04  81284008  /data/data/com.***.***/lib/libkroll-v8.so
I/DEBUG   (   31):     464a3a08  464a3aa0  
I/DEBUG   (   31):     464a3a0c  00000000  
I/DEBUG   (   31):     464a3a10  df002777  
I/DEBUG   (   31):     464a3a14  e3a070ad  
I/DEBUG   (   31): #00 464a3a18  0012ea10  [heap]
I/DEBUG   (   31):     464a3a1c  00000000  
I/DEBUG   (   31):     464a3a20  464a3a47  
I/DEBUG   (   31):     464a3a24  81092a87  /data/data/com.***.***/lib/libkroll-v8.so
I/DEBUG   (   31): #01 464a3a28  00281550  [heap]
I/DEBUG   (   31):     464a3a2c  002a6cac  [heap]
I/DEBUG   (   31):     464a3a30  002a7c78  [heap]
I/DEBUG   (   31):     464a3a34  81431500  /data/data/com.***.***/lib/libkroll-v8.so
I/DEBUG   (   31):     464a3a38  00000000  
I/DEBUG   (   31):     464a3a3c  464a3ae4  
I/DEBUG   (   31):     464a3a40  00000001  
I/DEBUG   (   31):     464a3a44  3572a140  
I/DEBUG   (   31):     464a3a48  00000001  
I/DEBUG   (   31):     464a3a4c  00281550  [heap]
I/DEBUG   (   31):     464a3a50  00000000  
I/DEBUG   (   31):     464a3a54  00000000  
I/DEBUG   (   31):     464a3a58  5ea57771  
I/DEBUG   (   31):     464a3a5c  8115c050  /data/data/com.***.***/lib/libkroll-v8.so
D/Zygote  (   33): Process 344 terminated by signal (11)
I/WindowManager(   60): WIN DEATH: Window{440928e0 com.***.***/org.appcelerator.titanium.TiActivity paused=false}
I/ActivityManager(   60): Process com.***.*** (pid 344) has died.
I/WindowManager(   60): WIN DEATH: Window{44086c80 com.***.***/org.appcelerator.titanium.TiActivity paused=false}
I/WindowManager(   60): WIN DEATH: Window{440cfb28 com.***.***/org.appcelerator.titanium.TiActivity paused=false}
I/WindowManager(   60): WIN DEATH: Window{4404b750 com.***.***/com.***.***.HundehaufenActivity paused=false}
I/ActivityManager(   60): Start proc com.***.*** for activity com.***.***/org.appcelerator.titanium.TiActivity: pid=358 uid=10040 gids={1015, 3003}
I/BootReceiver(   60): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
After these errors the app just restarts. I searched for hours but couldn't solve that problem. It looks like some memory or JavaScript interpreter issue.

Anybody got an idea what I could do to solve this problem?


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>