Show debug output, if null is referenced
Submitted by Manuel Ullmann
Assigned to Charlie Brej
Description
It´s quite hard to debug a theme based on the script plugin, as long as it does not list any null pointer references. Also it would be nice, if plymouth could quit immediately in debug mode and show its error messages.
The parser of the script plugin seems to check for two things currently: Whether lines do end with a semicolon and whether parenthesis are closed.
I´ve looked at the source code, but I don´t know C enough to recognize any other used parsing.
Actual results:
Neither elements with null pointer references are shown, nor an error message indicating where null was referenced.
Expected results:
Immediately quit plymouthd in debug mode and show the (damn) error message, which will hopefully point you to the location, where the error occured.
Steps to reproduce:
-
Write a script plugin theme from scratch, don´t review it and immediately test with plymouthd; plymouth show-splash; sleep 4; plymouth quit
-
Notice, that at least 2 elements are not shown.
-
Check, whether image filename was correctly referenced.
-
Check, whether element´s x offset was correct.
-
Check, whether element´s y offset was correct.
-
Check, whether element´s width was correct.
-
Check, whether element´s height was correct. Finally got the culprit (Murphy´s law always applies)
-
Continue with the next element...
Reproducible: Always