PDA

View Full Version : Crush - Crash Dump Reader Plugin



bassethound
19-09-10, 21:19
Eigentlich ist das Lesen von Crashdumps NICHT schwer - zuerst kommt eine Menge Blabla, dann kommt in 90% der Fälle einer der 3 Zeilen:

"Plugin Extensions/BlockContent failed to load:"
"EXCEPTION IN PYTHON STARTUP CODE:"
"Traceback (most recent call last):"
"FATAL:"
...........

Und dann kommt eine Handvoll interessante Zeilen warum das passiert ist und dann kommt wieder eine Menge BlaBla. Das ist eigentlich alles, ein bischen scrollen im file und man weis was los ist.

Dummerweise wissen das erschreckend wenig Leute (und diese mögen mir meine Vereinfachung verzeihen) und damit können eigentlich ziemlich viele Leute deren English ausreichen würde zu erkennen was passiert ist mit einem enigma2 Crashdump nichts anfangen (um z.B. zu sehen welches Plugin Ihn verursacht hat)

Ausserdem wissen viele Leute gar nicht wie viele Crashdumps sie schon haben, welcher der aktuellste ist und das die komische Nummer im Filenamen der Timestamp ist.

Derzeit kann man auch noch Crashlogs im enigma2 mit dem Console Widget gar nicht mehr ordentlich anzeigen weil sie schon zu lange sind und dann enigma2 hängen bleibt wenn man es anschaut.

Also habe ich mir erlaubt mal mit Crush ein kleines Plugin zu stricken das diese ganze Sachen etwas einfacher macht:

1) Aufräumen alles Crashlogs von /tmp und /hdd

2) Auflisten aller Crashlogs von /tmp und /hdd

3) Die Möglichkeit bei 2) ein Crashlog komplett anzuzeigen, ODER eben nur die Handvoll interessanter Zeilen die meistens ausreichen um zu wissen warum es passiert ist und auch eine Möglichkeit den Timestamp als echte Zeit umzurechnen wann er passiert ist und das jeweilige Crashlog einzeln zu löschen.

Ist natürlich wie üblich nicht perfekt, aber dafür dürft Ihr es jetzt testen. Wenn die Handvoll Zeilen Eures Erachtens nicht ausreicht die Ursache des Crashlog zu verstehen findet Ihr auf /tmp/crush.log diese Kurzversion des Dumps - bitte diese File zusammen mit der Langversion zu posten damit ich rausfinde was man noch anpassen müsste.

Ausserden sind natürlich die 3 Zeilen von oben nur die üblichen 90% an Starter für Crashlogs, es gibt sicher noch ein paar mehr - nur her damit, die kann man auch noch einbauen das sie auch in der Kurzversion richtig ausgegeben werden.

Viel Spass mit Crush!

PS: Wer nicht weis wer Crush ist sollte sich mit seinen Kindern den Film Findet Nemo anschauen

PPS: In einem HD Skinn ist die Lesbarkeit besser, aber die war mir im Moment nicht so wichtig. Wenn wer Lust hat kann er das gerne optimieren, auch meine Class zum Anzeigen von großen Files (Blättern mit Rauf/Runter und Zeilenweise mit rechts links) ist nicht das gelbe vom Ei, aber was solls.

LG
gutemine


Google translate:

Actually reading crashdumps is NOT hard - first comes a lot of blah, then come in 90% of cases, one of the three lines:

"Plugin Extensions / Block content failed to load:"
"EXCEPTION IN PYTHON STARTUP CODE:
"Traceback (most recent call last):"
"FATAL"
...........

And then a handful of interesting lines of why this happened and then comes back a lot of BlaBla. That's really all a little scroll in the file and it knows what's going on.

Unfortunately, few people know the shocking (and they may forgive my simplification) and thus can actually quite a few people whose English would be enough to recognize what has happened with a enigma2 Crashdump not do anything (to see which plugin for example, has caused Him)

Also many people do not know how many crashdumps they already have, which is the latest and the comic number in the filename of the timestamp.

Currently, you can also Crashlogs in enigma2 Show with Console widget no longer properly because they are too long and then enigma2 hangs when you look at it.

So I took the liberty times with Crush a small plugin to knit makes this whole things a little easier:

1) clean up everything Crashlogs from / tmp and / hdd

2) List all Crashlogs from / tmp and / hdd

3) The possibility for two) one Crashlog complete view, OR just only the handful of interesting lines which usually sufficient to know is why it happened and convert a way the timestamp as a real time when it happened and delete the respective Crashlog individually .

Is, of course, as usual, not perfect, but that You must try it now. If the handful of lines of your opinion, is not sufficient to understand the cause of Crashlog be found on / tmp / crush.log this short version of the dump - please this file to post along with the long version so that I find out what you would have to adapt yet.

Is also clear that the three rows from the top than the usual 90% Crashlogs starters, there are certainly a few more - let me know that you can also include in future they will be well spent in the short version.

Have fun with Crush!

PS: Who knows who is not Crush should watch with their children the movie Finding Nemo

PPS: In an HD Skinn's better readability, but it was not me at the moment so important. If anyone feels like he can optimize the like, including my class for displaying large files (scrolling with Up / Down and line by line with right to left) is not the yellow of the egg, but whatever.

LG
Gutemine