I get A / libc: Fatal signal 11 (SIGSEGV), code 1 when using the retrofit class to generate an implementation of my service interface.
I believe this is due to a null pointer segment error in my own libraries. Nothing is thrown away, so I can’t track it. The strangest part is that this does not happen on any of my emulators or physical devices (6.0 in total), except for my HTC, which is usually 6.0.1.
Here is my interface:
public interface RestApiPerson {
@GET(QUERY_PERSON)
Call<PersonSearchResults> getPersonSearchResult(@Query("query") String q);
}
Here is the implementation. Crash occurs (Call <PersonSearchResults> call = restApi.getPersonSearchResult (query);)
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(END_POINT_PERSON)
.addConverterFactory(GsonConverterFactory.create())
.build();
RestApiPerson restApi = retrofit.create(RestApiPerson.class);
Call<PersonSearchResults> call = restApi.getPersonSearchResult(query);
Here's the stack:
07-31 12:58:08.492 18310-18310/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3ad75934
07-31 12:58:08.522 18310-18310/? A/DEBUG: r0 70fc5774 r1 12d78a00 r2 0025af14 r3 b276c070
07-31 12:58:08.522 18310-18310/? A/DEBUG: r4 0025af14 r5 12d78a00 r6 70fc4dc4 r7 715c4a80
07-31 12:58:08.522 18310-18310/? A/DEBUG: r8 12c5d190 r9 b8cbad20 sl 71866e80 fp be9a3a9c
07-31 12:58:08.522 18310-18310/? A/DEBUG: ip b276c070 sp be9a3a20 lr 73d5b6e5 pc b49ffa68 cpsr 000e0030
07-31 12:58:08.522 18310-18310/? A/DEBUG: backtrace:
07-31 12:58:08.522 18310-18310/? A/DEBUG:
07-31 12:58:08.522 18310-18310/? A/DEBUG:
07-31 12:58:09.812 18310-18310/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_05
Any ideas on what could potentially cause problems, or how could I define this for myself?