NEWS
[Hilfe] Auswertung USB Debug-Log Android App
-
Hallo zusammen,
ich habe mich mal jetzt mit dem Debug Log beschäftigt, da ich permanente sync Problem mit der App habe.
http://forum.iobroker.net/viewtopic.php … 740#p89887
Folgende Errors kann ich dem Log entnehmen:
GET file:///data/data/net.iobroker.vis/files/vis-common-user.css net::ERR_FILE_NOT_FOUND
und
GET file://fonts.googleapis.com/css?family=Arimo net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Arimo:1 GET file://fonts.googleapis.com/css?family=Wallpoet net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Wallpoet:1 GET file://fonts.googleapis.com/css?family=Rye net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Rye:1 GET file://fonts.googleapis.com/css?family=Economica net::ERR_FILE_NOT_FOUND
aber das Hauptproblem scheint das ich "Connection-Errors" habe:
Read file: {"src":"/icons-icons8/Tagesschau.png","dst":"icons-icons8Tagesschau.png"} app.js:1544 No connection! conn.js:79 Trying connect... conn.js:141 was offline for 10.198s
Habe schon den Sync-Timeout in der App angepasst auf 20s, aber keine Besserung.
Woran könnte der Fehler liegen?
Hier nochmal der komplette Log:
! ````
GET file:///data/data/net.iobroker.vis/files/vis-common-user.css net::ERR_FILE_NOT_FOUND index.html:26
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/cordova.js". index.html:30
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/jquery-1.11.2.min.js". index.html:31
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/jquery-ui-1.11.4.full.min.js". index.html:32
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/socket.io.js". index.html:33
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/js/app.js". index.html:35
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/translate.js". index.html:34
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/can.custom.min.js". index.html:37
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/jquery.ui.touch-punch.min.js". index.html:38
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/jquery.multiselect-1.13.min.js". index.html:39
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/quo.standalone.js". index.html:40
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/js/config.js". index.html:44
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/js/conn.js". index.html:45
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/lib/js/loStorage.js". index.html:41
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/js/vis.js". index.html:46
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/cordova_plugins.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/com.jiliac.systemvolume/www/systemvolume.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/com.phonegap.plugins.OrientationLock/www/orientationLock.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-tts/www/tts.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova.custom.plugins.exitapp/www/ExitApp.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-geolocation/www/PositionError.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-battery-status/www/battery.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-x-toast/www/Toast.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-x-toast/test/tests.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-app-version/www/AppVersionPlugin.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechRecognition.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechRecognitionAlternative.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-network-information/www/network.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechRecognitionResult.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-network-information/www/Connection.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechRecognitionResultList.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechRecognitionEvent.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechRecognitionError.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-fullscreen/www/AndroidFullScreen.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechGrammar.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/DirectoryEntry.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/phonegap-plugin-speech-recognition/www/SpeechGrammarList.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/DirectoryReader.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/File.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/Entry.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-insomnia/www/Insomnia.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileEntry.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileError.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileReader.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileSystem.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileUploadOptions.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileUploadResult.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/Flags.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/FileWriter.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/Metadata.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/ProgressEvent.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/fileSystems.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/requestFileSystem.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/browser/isChrome.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/android/FileSystem.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/fileSystems-roots.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/LocalFileSystem.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-file/www/fileSystemPaths.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/com.pylonproducts.wifiwizard/www/WifiWizard.js". cordova.js:1870
Resource interpreted as Script but transferred with MIME type text/plain: "file:///android_asset/www/plugins/cordova-plugin-certificates/www/certificate.js". cordova.js:1870
Received Event: deviceready app.js:258
Error initializing Battery: Battery listener already running. battery.js:106
2017-11-16T19:02:56.063Z Connected => authenticate conn.js:267
2017-11-16T19:02:56.190Z Authenticated: true conn.js:287
Request 0 states. vis.js:3579
Check why views are not yet loaded! vis.js:267
Version vis-canvas-gauges: 0.1.5 VM210:140
Version vis-colorpicker: 1.1.1 VM215:66
Version vis-history: 0.2.6 VM222:75
GET file://fonts.googleapis.com/css?family=Arimo net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Arimo:1
GET file://fonts.googleapis.com/css?family=Wallpoet net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Wallpoet:1
GET file://fonts.googleapis.com/css?family=Rye net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Rye:1
GET file://fonts.googleapis.com/css?family=Economica net::ERR_FILE_NOT_FOUND fonts.googleapis.com/css?family=Economica:1
Version vis-jqui-mfd: 1.0.5 VM228:103
Version justgage: 0.7.1 VM231:114
Version iobroker.vis-keyboard: 0.0.2 VM239:25
Version kodi: 0.0.4 VM240:54
Version lcars: 1.0.4 VM242:86
Version vis-map: 1.0.0 VM243:44
Metro version: "1.0.4" VM245:645
Milight widget version: 0.0.2 VM247:33
Version vis-pinpad: 0.1.0 VM248:99
Version players: 0.1.0 VM249:58
Version vis-plumb: 1.0.0 VM250:97
Version starline: 0.1.0 VM261:32
Version template: 0.5.0 VM265:36
Version vis-weather: 0.0.5 VM275:94
Version vis-canvas-gauges: 1.0.5 VM276:6
Store: vis-common-user.css app.js:330
write "vis-common-user.css" success:{"type":"write","bubbles":false,"cancelBubble":false,"cancelable":false,"lengthComputable":false,"loaded":0,"total":0,"target":{"fileName":"","length":0,"localURL":"cdvfile://localhost/files/vis-common-user.css","position":0,"readyState":2,"result":null,"error":null,"onwritestart":null,"onprogress":null,"onwriteend":null,"onabort":null,"onerror":null}} app.js:365
write "vis-common-user.css" success:{"type":"write","bubbles":false,"cancelBubble":false,"cancelable":false,"lengthComputable":false,"loaded":0,"total":0,"target":{"fileName":"","length":0,"localURL":"cdvfile://localhost/files/vis-common-user.css","position":0,"readyState":2,"result":null,"error":null,"onwritestart":null,"onprogress":null,"onwriteend":null,"onabort":null,"onerror":null}} app.js:365
Read file: "main/vis-views.json" app.js:1544
Progress files open: 1 Total: 2 app.js:1555
writeLocalFile "main/vis-views.json" as "main/vis-views.json" app.js:1605
Store: vis-views.json app.js:330
write "vis-views.json" success:{"type":"write","bubbles":false,"cancelBubble":false,"cancelable":false,"lengthComputable":false,"loaded":0,"total":0,"target":{"fileName":"","length":2914816,"localURL":"cdvfile://localhost/files/main/vis-views.json","position":2914816,"readyState":2,"result":null,"error":null,"onwritestart":null,"onprogress":null,"onwriteend":null,"onabort":null,"onerror":null}} app.js:365
Read file: {"src":"/icons-icons8/Tagesschau.png","dst":"icons-icons8Tagesschau.png"} app.js:1544
No connection! conn.js:79
Trying connect... conn.js:141
was offline for 10.198s conn.js:247
2017-11-16T19:06:20.747Z Connected => authenticate conn.js:267
2017-11-16T19:06:20.887Z Authenticated: true conn.js:287
Request 0 states. vis.js:3579
Socket error: Error: websocket error conn.js:445
Trying connect... conn.js:141
was offline for 10.079s conn.js:247
2017-11-16T19:06:55.600Z Connected => authenticate conn.js:267
2017-11-16T19:06:55.743Z Authenticated: true conn.js:287
Request 0 states. vis.js:3579
Socket error: Error: websocket error conn.js:445
Trying connect... conn.js:141
was offline for 10.805s conn.js:247
2017-11-16T19:07:10.956Z Connected => authenticate conn.js:267
2017-11-16T19:07:12.293Z Authenticated: true conn.js:287
Request 0 states. vis.js:3579
Socket error: Error: websocket error conn.js:445
Trying connect... conn.js:141
was offline for 10.072s conn.js:247
2017-11-16T19:07:47.937Z Connected => authenticate conn.js:267
2017-11-16T19:07:48.090Z Authenticated: true conn.js:287
Request 0 states.Bin über jeden Tipp dankbar :?:
-
Ich habe das ganze auch mal auf meinem zweiten Tab getestet. Hier sind auch die Timeouts zu sehen, allerdings werden die Fehlversuche gezählt und weiter gesynct. Das ganze sieht dann so im Log aus:
app.js:356 Timeout by write of: vis-views.json, Attempt: 6 (anonymous) @ app.js:356 setTimeout (async) (anonymous) @ app.js:354 me.readyState @ FileWriter.js:292 callbackFromNative @ cordova.js:293
wobei Attempt bis 9 weiter hochzählt und dann ist der sync fertig.
Ist nur die Frage warum das andere TAb das nicht macht bzw. woher die Timeouts kommen.
-
Hallo 0018,
fangen wir mit den leichten Sachen an:
Die App kopiert nur Dateien, die folgendem Pattern entsprechen:
"\/[-_0-9\w]+(?:\.[-_0-9\w]+)?\/[^"^']+[-_0-9\w\.]+\.(?:png|jpg|jpeg|gif|wav|mp3|bmp|svg)+"/g
D.h. es werden nur Dateien kopiert oder Pfade geändert, wenn das erste Verzeichnis in der Pfad-Angabe am Ende einen "." und danach eine Zahl haben. Z.B. vis.0, vis.1 usw.
Read file: {"src":"/icons-icons8/Tagesschau.png","dst":"icons-icons8Tagesschau.png"} app.js:1544 No connection! conn.js:79 Trying connect... conn.js:141 was offline for 10.198s ```` `
Aus irgendeinem Grund versucht er dennoch diese Datei zu kopieren, da das Pattern den Punkt nicht erzwingt. Kannst du das Bild mal testweise unterhalb des Projektverzeichnisses kopieren und den Pfad entsprechend ändern?
Tritt der Verbindungsabbruch immer an dieser Stelle auf oder sind die Dateien unterschiedlich?
Wenn die Dateien unterschiedlich sind:
Schaltet sich während der Synchronisation das Display aus oder sperrt sich das Gerät?`
Wenn ja: Stell mal während der Synchronisation die Option "Einschlafen verhindern" aus.
-
Ich habe das ganze auch mal auf meinem zweiten Tab getestet. Hier sind auch die Timeouts zu sehen, allerdings werden die Fehlversuche gezählt und weiter gesynct. Das ganze sieht dann so im Log aus:
app.js:356 Timeout by write of: vis-views.json, Attempt: 6 (anonymous) @ app.js:356 setTimeout (async) (anonymous) @ app.js:354 me.readyState @ FileWriter.js:292 callbackFromNative @ cordova.js:293
wobei Attempt bis 9 weiter hochzählt und dann ist der sync fertig.
Ist nur die Frage warum das andere TAb das nicht macht bzw. woher die Timeouts kommen. `
Die Timeouts beim Schreiben liegen leider am Cordova-Plugin zum Schreiben in das lokale Filesystem. Die treten bei allen Android-Geräten mehr oder weniger häufig auf. Deswegen hatte bluefox die Retries eingebaut. Normalerweise sollte das Schreiben jedoch nach 1 bis 2 Wiederholungen funktionieren. 9 Versuche sind schon sehr viel.
-
Für mich bleibt aber weiterhin unerklärlich warum das eine Tab diese 9 retries benötigt und es dann schafft, während mein Haupttab erst gar keinen retry versucht….. :shock:
Kann es hier an der Android Version liegen?
Mein Haupttab, wo es nicht klappt, hat nur 4.2.2, während mein Testtab schon 5.1 hat.
Gibt es irgendwelche Zusatzpakete die ich bei 4.2.2 benötige?
Oder was kann ich gegen die Timeouts machen?
-
Kann es hier an der Android Version liegen? `
Ja!in neueren Versionen werden immer mehr Stromsparfeatures eingebaut. So kann es ohne weiteres sein, dass es wesenetlich länger dauert bis die Netzwerkverbindung einer nicht genutzten App wieder steht.
Aber:
@0018:Mein Haupttab, wo es nicht klappt, hat nur 4.2.2 `
es gab eine Änderung in der APP, die eventuell nicht mehr von 4.2.2 unterstützt wird (die genaue Version weiß ich nicht mehr)Gruß
Rainer
-
Für mich bleibt aber weiterhin unerklärlich warum das eine Tab diese 9 retries benötigt und es dann schafft, während mein Haupttab erst gar keinen retry versucht….. :shock:
Kann es hier an der Android Version liegen?
Mein Haupttab, wo es nicht klappt, hat nur 4.2.2, während mein Testtab schon 5.1 hat.
Gibt es irgendwelche Zusatzpakete die ich bei 4.2.2 benötige?
Oder was kann ich gegen die Timeouts machen? `
Android 4.2.2 ist leider schon ziemlich alt (2012). Mit Versionen unter 4.4.1 hab ich die App noch nicht ausprobiert. Der darin enthaltene Webkit-Browser kann schon die Ursache für das Problem sein. Leider gibt es hierfür keine Updates. Man kann auf dem Gerät zwar einen anderen Browser installieren, der kann aber von der VIS-App nicht für die Anzeige verwendet werden. Die einzige Möglichkeit war das Crosswalk-Plugin, das aber von Intel eingestellt wurde und deswegen nicht mehr in der App integriert ist.
Falls es für das Gerät keine neuere Android-Version mehr gibt, würde ich hier eher einen Browser mit eigener Engine wie Google Chrome oder Firefox versuchen.
Generell würde ich nicht sagen, dass die Anzahl der Timeouts beim Schreiben direkt mit der Android-Version zusammenhängt. Wahrscheinlich liegt es eher an der Hardware. Der Flash-Speicher kann leider nicht parallel beschrieben werden. In der App ist eine Überwachung der Wartezeit eingebaut, bis zu der die Rückmeldung für ein erfolgreiches Schreiben erfolgen soll, falls diese Rückmeldung nicht in der konfigurierten Zeit eintrifft, wird erneut versucht (bis zu 10 Versuche). Ob das Gerät hierfür zulange gebraucht hat oder ob der Callback verloren gegangen ist, kann man daran leider nicht erkennen. Vielleicht könnte man die Ursache sehen, wenn man auch das onerror-Event mit einer Callback-Funktion belegen würde.
-
Mit Versionen unter 4.4.1 hab ich die App noch nicht ausprobiert. . `
Habe mal nachgeschaut und konnte nun ein Update auf 4.4.4 machen. Höher ist leider nicht verfügbar.
Hast du Erfahrungen mit dieser Version gemacht? Hat es bei dir geklappt mit dem Sync?
Kannst du eine vernünftige und stabile Variante empfehlen?
-
Mit Versionen unter 4.4.1 hab ich die App noch nicht ausprobiert. . `
Habe mal nachgeschaut und konnte nun ein Update auf 4.4.4 machen. Höher ist leider nicht verfügbar.
Hast du Erfahrungen mit dieser Version gemacht? Hat es bei dir geklappt mit dem Sync?
Kannst du eine vernünftige und stabile Variante empfehlen? ` Bei 4.4.x sollte der sync klappen.
Hab auch noch ein altes note 10.1.
Mache Widgets werden damit nicht korrekt angezeigt. Ansonsten geht es.
Gesendet von meinem SM-G930F mit Tapatalk
-
Bei 4.4.x sollte der sync klappen. `
Auch unter 4.4.4 bleibt es bei mir unverändert. Der Debug Log sieht weiterhin so aus.
Gibt es noch irgendwelche Möglichkeiten woran es liegen könnte?