Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). How can it be tracked down?

后端 未结 24 1438
遥遥无期
遥遥无期 2020-11-22 08:33

I\'ve been reading the other posts on tracking down the reasons for getting a SIGSEGV in an Android app. I plan to scour my app for possible NullPointers relate

24条回答
  •  佛祖请我去吃肉
    2020-11-22 09:06

    I've faced with SIGSEGV on Android 4.4.4 (Nexuses, Samsungs) And it turned out that fatal error was in parsing null String using DecimalFormat

     static DecimalFormat decimalFormat = new DecimalFormat("###,###.###");
     void someMethod(String value) {
    ...
        Number number = decimalFormat.parse(value);//value is null, SIGSEGV will happen`
    ...
    }
    

    On Android > 21 it was handled successfully with try/catch

提交回复
热议问题