Force close après l'affichage d'une ListView
Bonjour à tous. J'expose mon problème :
J'ai une listView customs (image + texte). Je l'affiche, la scroll dans tous les sens, et après quelques temps, F/C.
le logCat :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| 08-25 15:12:34.329: ERROR/AndroidRuntime(352): FATAL EXCEPTION: main
08-25 15:12:34.329: ERROR/AndroidRuntime(352): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.chlorophyll.passage/com.android.chlorophyll.passage.MenuEcran}: java.lang.NullPointerException
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.os.Handler.dispatchMessage(Handler.java:99)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.os.Looper.loop(Looper.java:123)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at java.lang.reflect.Method.invokeNative(Native Method)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at java.lang.reflect.Method.invoke(Method.java:521)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at dalvik.system.NativeStart.main(Native Method)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): Caused by: java.lang.NullPointerException
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at com.android.chlorophyll.passage.MenuEcran.remplirTextView(MenuEcran.java:229)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at com.android.chlorophyll.passage.MenuEcran.onCreate(MenuEcran.java:51)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
08-25 15:12:34.329: ERROR/AndroidRuntime(352): ... 11 more
avec plusieurs fois
08-25 15:12:32.959: ERROR/dalvikvm-heap(304): 345600-byte external allocation too large for this process.
08-25 15:12:32.959: ERROR/GraphicsJNI(304): VM won't let us allocate 345600 bytes |
juste au dessus du premier bout du log.
Je ne sais pas d'où cela peut venir, je n'ai jamais eu de problème de ce type. Si quelqu'un avait une idée. Merci à vous !
Un problème dû à la mémoire et des images trop volumineuses ?