Pourquoi l'application se ferme

bonjour, savez vous pourquoi l'application se ferme toute seule de temps en temps ? quand je la teste et que j'arrive sur un certain écran elle se ferme !

To find out what is going on, use logcat

Taifun

voilà ce que j'obtiens , mais je n'y comprends rien !!!!!

avez vous une idée ?
je crois qu'on y voit pas bien !

This post was flagged by the community and is temporarily hidden.

just read the error message

probably you disconnected your device?

Taifun

j'ai recommencé et maintenant j'ai ça , j'ai testé avec companion

et ça c'est un test avec l'application que j'ai téléchargé sur mon téléphone

parfois j'ai ceci aussi (je pensais aux images qui doivent être trop lourdes ?) :

not everything from the log is relevant... other apps also produce a lot of information...

see here how to copy the log, so you do not have to take screenshots...

Taifun

comme ça :
fichier.txt (791.7 KB)

this seems to be the relevant part

04-28 21:25:43.879 13536 13536 W Thread-73: type=1400 audit(0.0:32468): avc: denied { search } for name="ppm" dev="proc" ino=4026531935 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:proc_ppm:s0 tclass=dir permissive=0 app=appinventor.ai_fazio_agnes.MAMconnect2
04-28 21:25:43.882 13536 13808 D libjpeg-alpha: Tile Decoder (#thread:4, size:512 512 512 296x704, alignment:256x16)
04-28 21:25:43.927 13536 13808 D skia    : SkJpegCodec::onGetPixels -
04-28 21:25:43.942 13536 13815 D MediaUtil: mediaPath = ***********************************************
04-28 21:25:44.117 13536 13815 D MediaUtil: IOException reading file.
04-28 21:25:44.117 13536 13815 D MediaUtil: java.io.FileNotFoundException: ***********************************************
04-28 21:25:44.117 13536 13815 D MediaUtil:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:255)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at java.net.URL.openStream(URL.java:1072)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at com.google.appinventor.components.runtime.util.MediaUtil.openMedia(MediaUtil.java:326)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at com.google.appinventor.components.runtime.util.MediaUtil.-$$Nest$smopenMedia(Unknown Source:0)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at com.google.appinventor.components.runtime.util.MediaUtil$2.run(MediaUtil.java:511)
04-28 21:25:44.117 13536 13815 D MediaUtil:     at java.lang.Thread.run(Thread.java:1012)
04-28 21:25:44.117 13536 13536 E Image   : Unable to load ***********************************************
0

this IOException appears 4 times... it looks like 4 images can't be loaded...

in your log you can search for appinventor.ai_fazio_agnes.MAMconnect2 to get all relevant information...

Taifun

un autre test :

fichier2.txt (715.2 KB)

celui là est un essai avec l'application téléchargé sur le téléphone
fichier3.txt (743.2 KB)

your app still closes unexpectedly?
there is no error available for your app in the log...
just debug messages with D (debug) or I (information), but not W (warning) or E (error), see also https://developer.android.com/tools/logcat

generally: first start logcat, then start your app and elicit your problem, then stop logcat and check the logfile

Taifun

oui mais pas à chaque fois.

J'ai essayé 2 fois avec vos consignes sur application téléchargée sur mon téléphone , et à chaque fois l'application se ferme quand je vais sur le même écran. Exactement ce n'est pas l'application entière qui se ferme c'est juste un écran. C'est à dire " je suis sur l'écran 4 et je clique pour télécharger une image et là ça me retourne à l'écran 2 comme un bug (l'écran 2 est l'écran de base).

La fin du journal c'est que l'écran à fermé.
fichier2.txt (843.6 KB)
fichier.txt (816.5 KB)

Why are you providing 2 logfiles?.
You should be able to search for errors yourself in the log meanwhile

Screen2 is your manager screen?

Is rhere any error message displayed when the screen closes unexpectedly?

Probably you do not have a runtime error, but an error in your blocks? Did you check Screen 4 for errors? How and when do you close that screen? Check all those events

Taifun

non aucun message d'erreur.

J'ai aucun message d' erreur a l'écran 4 aussi, mais J'ai commencé à modifier un peu cet écran 4 et on dirais que ça va un peu mieux.
Merci