Télécharger les données provoque une fermeture spontanée

Bonjour à tous

J’ai un bug lorsque je me connecte à jeedom via l’appli android « jeedom connect ». Lorsqu’elle me demande de télécharger les données (à l’ouverture de l’appli), elle bug et ferme spontanément…
Je ne parviens pas à trouver d’où ca peut venir.
J’ai édité les logs de l’appli et je retrouve 2 erreurs:

08:45:08 | ERROR | Error in sendToJcApi {}
08:44:58 | ERROR | [http] onError {« isTrusted »:false,« data »:« reestablishing connection: Software caused connection abort »}

Je ne peux pas vous envoyer les log en entier étant « jeune » utilisateur :grin:

Merci de votre aide et bonne journée!

bonjour « jeune utilisateur »

une 1ere lecture pour t’aider à nous aider :


Je me permets de renomer le titre du sujet, car là « Bug Jeedom Connect » … c’est quand meme pas ultra parlant pour un autre utilisateur !..

Comme c’est ton premier message sur le forum, je t’invite (en plus de lire les différentes aide sur comment bien créer un sujet), à utiliser le bouton </> quand tu partages des logs, afin que le texte soit mieux formaté. Ca permet d’avoir des logs plus lisible.

à très vite !

Bonjour

Merci de votre message - du coup je complete avec le log complet et ma version Jeedom connect

Jeedom Core : 4.2.19
Version JC : 1.2.0

Equipements :
  Galaxy s21 JC : v1.2.0 sur android
08:41:00 | INFO | Start logger
08:41:07 | INFO | App state changed to background
08:41:07 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_APPSTATE","params":{"state":"background","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880067015}
08:41:13 | INFO | Start logger
08:41:13 | INFO | BackgroundGeolocation is configured and ready with state:  {"didDeviceReboot":false,"didLaunchInBackground":false,"odometer":0,"trackingMode":1,"triggerActivities":"in_vehicle, on_bicycle, on_foot, running, walking","stopOnStationary":false,"enabled":false,"stopAfterElapsedMinutes":0,"stationaryRadius":25,"startOnBoot":true,"scheduleUseAlarmManager":false,"schedule":[],"persistMode":2,"persist":true,"notification":{"actions":[],"strings":{},"sticky":false,"largeIcon":"","smallIcon":"drawable/ic_small_icon","text":"Service de géolocalisation en cours","priority":0,"layout":"","channelName":"Jeedom Connect localisation","color":"#009687","title":""},"foregroundService":true,"method":"POST","geofenceTemplate":"","locationAuthorizationRequest":"Always","locationUpdateInterval":1000,"locationTemplate":"","isMoving":false,"locationTimeout":60,"minimumActivityRecognitionConfidence":75,"disableLocationAuthorizationAlert":false,"httpRootProperty":"params","maxDaysToPersist":1,"httpTimeout":60000,"geofenceProximityRadius":1000,"geofenceModeHighAccuracy":true,"fastestLocationUpdateInterval":-1,"enableTimestampMeta":true,"headlessJobService":"com.transistorsoft.rnbackgroundgeolocation.HeadlessTask","distanceFilter":10,"disableStopDetection":false,"url":"http://88.167.122.74:49155/plugins/JeedomConnect/core/api/JeedomConnect.api.php","maxBatchSize":-1,"isFirstBoot":false,"disableElasticity":false,"logMaxDays":0,"useSignificantChangesOnly":false,"heartbeatInterval":60,"disableMotionActivityUpdates":false,"speedJumpFilter":300,"debug":false,"disableAutoSyncOnCellular":false,"desiredAccuracy":-1,"schedulerEnabled":false,"enableHeadless":true,"geofenceInitialTriggerEntry":true,"configUrl":"","deferTime":0,"stopOnTerminate":false,"desiredOdometerAccuracy":100,"headers":{},"params":{"jsonrpc":"2.0","method":"GEOLOC","id":"f306cd5c6c5d05e1f781aa14a4d151fe"},"elasticityMultiplier":1,"extras":{},"motionTriggerDelay":0,"batchSync":false,"backgroundPermissionRationale":{"negativeAction":"Annuler","positiveAction":"Changer pour {backgroundPermissionOptionLabel}","message":"Dans le but de suivre votre position en arrière plan, veuillez activer la permission de localisation {backgroundPermissionOptionLabel}","title":"Autoriser Jeedom Connect à la localisation de cet appareil en arrière plan ?"},"maxRecordsToPersist":-1,"activityRecognitionInterval":10000,"stopTimeout":1,"autoSyncThreshold":0,"locationsOrderDirection":"ASC","allowIdenticalLocations":false,"autoSync":true,"logLevel":0,"authorization":{}}
08:41:13 | DEBUG | net settings : {"details":{"isConnectionExpensive":false,"subnet":"255.255.255.255","ipAddress":"192.168.0.34","frequency":5180,"strength":59,"bssid":"02:00:00:00:00:00"},"isConnected":true,"type":"wifi","isInternetReachable":true,"isWifiEnabled":true}
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"PING","jsonrpc":"2.0","id":1655880073141,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:13 | INFO | main foreground entry, route : {}
08:41:13 | DEBUG | call initConnection from RootNavigator
08:41:13 | INFO | [http] init connexion
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"CONNECT","params":{"deviceId":"9b7bcaf2348bae75","deviceName":"S22 de Marien","userHash":"XLD9dXB5SaJO2JfEWqiRshUTUt4D9RJG1PY1IfXGN5qhkh2F8fauHvPQtjla63c2","appVersion":"1.2.0","pluginRequire":"1.1.1","token":"c6fjwtIQRUeIrfZmSn6hAZ:APA91bGAo2UJBcds3F63yrKi6PvkwUlgzE84vaiz5ZOJlFTI0u2jV2YD1ceU_qDvBpvvZwcF9CCfxS9B_7SQysFp3pKoNk7ZWK-dGlWeCS7ga0O-vn02DrmxbunDxlfGyOKkiRjokDXY","platformOs":"android","polling":"0","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880073182}
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_BATTERIES","jsonrpc":"2.0","id":1655880073460,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_JEEDOM_GLOBAL_HEALTH","jsonrpc":"2.0","id":1655880073461,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_PLUGINS_UPDATE","jsonrpc":"2.0","id":1655880073462,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_JEEDOM_MESSAGES","params":{"folder":"main","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880073462}
08:41:13 | INFO | initConnexion success
08:41:13 | DEBUG | init event listener http://192.168.0.16
08:41:13 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_BATTERY","params":{"level":96,"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880073531}
08:41:13 | DEBUG | [http] on Open event server
08:41:13 | DEBUG | [HTTP] CMD, SC, OBJ infos received
08:41:14 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_WIDGET_DATA","jsonrpc":"2.0","id":1655880074582,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:14 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_JEEDOM_DATA","jsonrpc":"2.0","id":1655880074583,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:17 | INFO | Start logger
08:41:17 | INFO | BackgroundGeolocation is configured and ready with state:  {"didDeviceReboot":false,"didLaunchInBackground":false,"odometer":0,"trackingMode":1,"triggerActivities":"in_vehicle, on_bicycle, on_foot, running, walking","stopOnStationary":false,"enabled":false,"stopAfterElapsedMinutes":0,"stationaryRadius":25,"startOnBoot":true,"scheduleUseAlarmManager":false,"schedule":[],"persistMode":2,"persist":true,"notification":{"actions":[],"strings":{},"sticky":false,"largeIcon":"","smallIcon":"drawable/ic_small_icon","text":"Service de géolocalisation en cours","priority":0,"layout":"","channelName":"Jeedom Connect localisation","color":"#009687","title":""},"foregroundService":true,"method":"POST","geofenceTemplate":"","locationAuthorizationRequest":"Always","locationUpdateInterval":1000,"locationTemplate":"","isMoving":false,"locationTimeout":60,"minimumActivityRecognitionConfidence":75,"disableLocationAuthorizationAlert":false,"httpRootProperty":"params","maxDaysToPersist":1,"httpTimeout":60000,"geofenceProximityRadius":1000,"geofenceModeHighAccuracy":true,"fastestLocationUpdateInterval":-1,"enableTimestampMeta":true,"headlessJobService":"com.transistorsoft.rnbackgroundgeolocation.HeadlessTask","distanceFilter":10,"disableStopDetection":false,"url":"http://88.167.122.74:49155/plugins/JeedomConnect/core/api/JeedomConnect.api.php","maxBatchSize":-1,"isFirstBoot":false,"disableElasticity":false,"logMaxDays":0,"useSignificantChangesOnly":false,"heartbeatInterval":60,"disableMotionActivityUpdates":false,"speedJumpFilter":300,"debug":false,"disableAutoSyncOnCellular":false,"desiredAccuracy":-1,"schedulerEnabled":false,"enableHeadless":true,"geofenceInitialTriggerEntry":true,"configUrl":"","deferTime":0,"stopOnTerminate":false,"desiredOdometerAccuracy":100,"headers":{},"params":{"jsonrpc":"2.0","method":"GEOLOC","id":"f306cd5c6c5d05e1f781aa14a4d151fe"},"elasticityMultiplier":1,"extras":{},"motionTriggerDelay":0,"batchSync":false,"backgroundPermissionRationale":{"negativeAction":"Annuler","positiveAction":"Changer pour {backgroundPermissionOptionLabel}","message":"Dans le but de suivre votre position en arrière plan, veuillez activer la permission de localisation {backgroundPermissionOptionLabel}","title":"Autoriser Jeedom Connect à la localisation de cet appareil en arrière plan ?"},"maxRecordsToPersist":-1,"activityRecognitionInterval":10000,"stopTimeout":1,"autoSyncThreshold":0,"locationsOrderDirection":"ASC","allowIdenticalLocations":false,"autoSync":true,"logLevel":0,"authorization":{}}
08:41:17 | DEBUG | net settings : {"details":{"isConnectionExpensive":false,"subnet":"255.255.255.255","ipAddress":"192.168.0.34","frequency":5180,"strength":61,"bssid":"02:00:00:00:00:00"},"isConnected":true,"type":"wifi","isInternetReachable":true,"isWifiEnabled":true}
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"PING","jsonrpc":"2.0","id":1655880077350,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:17 | INFO | main foreground entry, route : {}
08:41:17 | DEBUG | call initConnection from RootNavigator
08:41:17 | INFO | [http] init connexion
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"CONNECT","params":{"deviceId":"9b7bcaf2348bae75","deviceName":"S22 de Marien","userHash":"XLD9dXB5SaJO2JfEWqiRshUTUt4D9RJG1PY1IfXGN5qhkh2F8fauHvPQtjla63c2","appVersion":"1.2.0","pluginRequire":"1.1.1","token":"c6fjwtIQRUeIrfZmSn6hAZ:APA91bGAo2UJBcds3F63yrKi6PvkwUlgzE84vaiz5ZOJlFTI0u2jV2YD1ceU_qDvBpvvZwcF9CCfxS9B_7SQysFp3pKoNk7ZWK-dGlWeCS7ga0O-vn02DrmxbunDxlfGyOKkiRjokDXY","platformOs":"android","polling":"0","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880077390}
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_BATTERIES","jsonrpc":"2.0","id":1655880077589,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_JEEDOM_GLOBAL_HEALTH","jsonrpc":"2.0","id":1655880077590,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_PLUGINS_UPDATE","jsonrpc":"2.0","id":1655880077591,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"GET_JEEDOM_MESSAGES","params":{"folder":"main","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880077591}
08:41:17 | INFO | initConnexion success
08:41:17 | DEBUG | init event listener http://192.168.0.16
08:41:17 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_BATTERY","params":{"level":96,"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880077652}
08:41:17 | DEBUG | [http] on Open event server
08:41:17 | DEBUG | [HTTP] CMD, SC, OBJ infos received
08:41:58 | DEBUG | [HTTP] received data {"type":"CMD_INFO","payload":[{"id":"15","value":473,"modified":1655880118,"collectDate":1655880118}]}
08:42:27 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_BATTERY","params":{"level":95,"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880147405}
08:43:12 | INFO | App state changed to background
08:43:12 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_APPSTATE","params":{"state":"background","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880192493}
08:44:58 | ERROR | [http] onError {"isTrusted":false,"data":"reestablishing connection: Software caused connection abort"}
08:44:58 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"PING","jsonrpc":"2.0","id":1655880298610,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:45:08 | INFO | App state changed to active
08:45:08 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_APPSTATE","params":{"state":"active","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880308306}
08:45:08 | DEBUG | [main] set secure session to false 115809
08:45:08 | INFO | [main] reconnect...
08:45:08 | DEBUG | reconnect Http connexion...
08:45:08 | DEBUG | close eventSource
08:45:08 | INFO | [http] init connexion
08:45:08 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"CONNECT","params":{"deviceId":"9b7bcaf2348bae75","deviceName":"S22 de Marien","userHash":"XLD9dXB5SaJO2JfEWqiRshUTUt4D9RJG1PY1IfXGN5qhkh2F8fauHvPQtjla63c2","appVersion":"1.2.0","pluginRequire":"1.1.1","token":"c6fjwtIQRUeIrfZmSn6hAZ:APA91bGAo2UJBcds3F63yrKi6PvkwUlgzE84vaiz5ZOJlFTI0u2jV2YD1ceU_qDvBpvvZwcF9CCfxS9B_7SQysFp3pKoNk7ZWK-dGlWeCS7ga0O-vn02DrmxbunDxlfGyOKkiRjokDXY","platformOs":"android","polling":"0","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880308309}
08:45:08 | ERROR | Error in sendToJcApi {}
08:45:08 | DEBUG | init event listener http://192.168.0.16
08:45:08 | DEBUG | [http] on Open event server
08:45:08 | DEBUG | [HTTP] CMD, SC, OBJ infos received
08:45:09 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"PING","jsonrpc":"2.0","id":1655880309311,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
08:45:15 | INFO | App state changed to background
08:45:15 | DEBUG | sendToJcApi  http://192.168.0.16/plugins/JeedomConnect/core/api/JeedomConnect.api.php {"method":"SET_APPSTATE","params":{"state":"background","apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"},"jsonrpc":"2.0","id":1655880315755}

merci !

et côté plugin, est ce qu’il y a des logs particulières ? (apres avoir mis le plugin en DEBUG) ?

voici le log qui apparait lorsque ca plante (j’en ai supprimé une partie car trop long pour etre posté!)


[2022-06-26 09:33:00][DEBUG] : [API] HTTP Received {"method":"GET_WIDGET_DATA","jsonrpc":"2.0","id":1656228774523,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
[2022-06-26 09:33:00][DEBUG] : [API] HTTP Received {"method":"GET_JEEDOM_DATA","jsonrpc":"2.0","id":1656228774525,"params":{"apiKey":"f306cd5c6c5d05e1f781aa14a4d151fe"}}
[2022-06-26 09:33:00][DEBUG] : getWidgets for all widgets with full config
[2022-06-26 09:33:00][DEBUG] : [API] Send GET_WIDGET_DATA -> {"type":"SET_WIDGET_DATA","payload":{"widgets":[{"img":"plugins\/JeedomConnect\/data\/img\/plug6.png","widgetJC":"{\"name\":\"Cave \u00e0 vin\",\"subtitle\":\"power\",\"onAction\":
[2022-06-26 09:33:03][DEBUG] : eventServer connexion closed for client #185

Il y eu des problèmes corrigés depuis la dernière stables a ce sujet.
Notamment en cas de présence d’un objet sans nom dans la config jeedom

Salut,
Sauf si j’ai raté quelque chose, la dernière stable est la version qu’utilise ce membre.

D’où mon incompréhension au sujet de votre message qui dit que le problème rencontré à été corrigé sur la stable.
Moi je lis corrigé sur la 1.2.1 BETA

Version 1.2.1 (05/05/2022)

  • Bug fixes :

    • Crash au démarrage si objet vide dans la conf Jeedom

Il dit simplement que le soucis a deja ete repéré et deja corrigé. Il sera donc dispo sur la prochaine stable.

En attendant pour ne pas avoir de soucis, il suffit de supprimer l objet sans nom dans jeedom, ou de lui donner un nom ! :slight_smile:

Ca ne sert a rien de partager les logs alors, car dans ce cas c est inutile => on ne peut pas voir l’erreur

1 « J'aime »

Salut,
Après relecture et grâce à votre commentaire j’ai compris le sens de sa phrase…

Il y eu des problèmes corrigés dans les versions beta
Notamment en cas de présence d’un objet sans nom dans la config jeedom.

Ps: c’était le cas dans ma config que vous aviez trouvé en prenant la main.
Tant que j’y suis : A quand une version stable?
Bonne soirée,

Oui

Donc on va attendre que la beta soit dispo pour android pour voir si pas de bug, puis passer en stable

2 « J'aime »

Merci à tous pour vos réponses.
Problème réglé effectivement en supprimant l’objet sans nom…

mon log avait plus de 8000 caractere en trop - j’ai supprimé une partie qui n’était qu’une énumération des widget. Il me semblais que ce n’était pas indispensable.
En tout cas merci une fois de plus à tout le monde :hugs:

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.