App randomly crashes with A/libc: fatal signal 11

前端 未结 2 993
眼角桃花
眼角桃花 2021-01-06 01:25

so my app started randomly crashing with Fatal Signal 11 (on random activities, some seem to do it more often than other but I haven\'t found a pattern yet). I have no idea

2条回答
  •  情歌与酒
    2021-01-06 01:52

    be careful if you are using gson and you serialize android.location.Location objects, I got this error and I fixed it replacing android.location.Location with my on Location wrapper.

    UPDATE: Jun 3rd 2019

    Something like:

    data class Location(val latitude: Double, val longitude: Double)
    

提交回复
热议问题