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

后端 未结 24 1297
遥遥无期
遥遥无期 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 08:55

    For me that issue was due to a bad cast between two activities. I recently moved this method from Activity1 to another 2. Doing so, the refactor left this explicit cast as it was before. So instead of doing

    ((Activity1) mainActivity).hideDialog();
    

    I was supposed to do

    ((Activity2) mainActivity).hideDialog();
    

    Note: But this error did not happen on android 8.0 I'm not yet sure why.

    *** Hope it helps.

提交回复
热议问题