Closed GoogleCodeExporter closed 9 years ago
You need to apply the fix from 255. I recommend jarjar; others have had success
with proguard.
Original comment by limpbizkit
on 31 Jan 2012 at 1:56
we apply this fix (255), but nothing changes - the app still crashes on Acer
A100 devices
Original comment by effectiv...@gmail.com
on 1 Feb 2012 at 6:20
Can you paste a stacktrace? I don't have an A100 to test with.
Original comment by jessewil...@google.com
on 2 Feb 2012 at 6:36
yes, we have several acer devices and we can test all proposed solutions or
prepare additional information about this issue
Original comment by effectiv...@gmail.com
on 2 Feb 2012 at 7:08
Attachments:
Can you still reproduce on Gson 2.1? Some classes from your stacktrace like
ModifierBasedExclusionStrategy don't exist in Gson 2.1.
Original comment by limpbizkit
on 2 Feb 2012 at 7:13
The device is broken and should be returned to the manufacturer.
ModifierBasedExclusionStrategy.shouldSkipField doesn't even call
ArrayList.add().
02-02 10:05:35.500: E/AndroidRuntime(1352):
java.lang.ArrayIndexOutOfBoundsException: index=1081965120 length=0
02-02 10:05:35.500: E/AndroidRuntime(1352): at
java.util.ArrayList.add(ArrayList.java:124)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.ModifierBasedExclusionStrategy.shouldSkipField(ModifierBasedEx
clusionStrategy.java:42)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.DisjunctionExclusionStrategy.shouldSkipField(DisjunctionExclus
ionStrategy.java:38)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.Gson$1.deserializeField(Gson.java:225)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(Refl
ectiveTypeAdapterFactory.java:107)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTy
peAdapterFactory.java:65)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.MiniGson.getAdapter(MiniGson.java:92)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ArrayTypeAdapter$1.create(ArrayTypeAdapter.java:
45)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.MiniGson.getAdapter(MiniGson.java:92)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(Reflective
TypeAdapterFactory.java:75)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(Re
flectiveTypeAdapterFactory.java:74)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(Refl
ectiveTypeAdapterFactory.java:112)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTy
peAdapterFactory.java:65)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.internal.bind.MiniGson.getAdapter(MiniGson.java:92)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.Gson.fromJson(Gson.java:719)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.Gson.fromJson(Gson.java:686)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.Gson.fromJson(Gson.java:636)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.google.myjson.Gson.fromJson(Gson.java:608)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
com.gson.test.JsontestActivity$ParseRunnable.run(JsontestActivity.java:86)
02-02 10:05:35.500: E/AndroidRuntime(1352): at
java.lang.Thread.run(Thread.java:1020)
Original comment by limpbizkit
on 2 Feb 2012 at 7:20
[deleted comment]
unfortunately, gson-2.1 also crashed on Acer (see attached). We have several
Acer a100 devices and all of them has the same problems with gson, all other
application work normally - we think the manufacturer will not accept claims
for non-working device based on one issue.
Original comment by effectiv...@gmail.com
on 3 Feb 2012 at 8:22
Attachments:
Original issue reported on code.google.com by
effectiv...@gmail.com
on 31 Jan 2012 at 8:48Attachments: