Comment 2 for bug 981314

Revision history for this message
Bob Vincent (pillarsdotnet) wrote : Re: ply-buffer.c:184: ply_buffer_append_bytes: Assertion `buffer != ((void *)0)' failed.

Actually, I added some more assertions and settled on the following workaround for now:

--- plymouth-0.8.2/src/main.c 2012-04-14 09:15:23.000000000 -0400
+++ plymouth-0.8.2-patched/src/main.c 2012-04-13 23:38:39.337606192 -0400
@@ -148,6 +148,10 @@
                    const char *output,
                    size_t size)
 {
+ if (state->boot_buffer == NULL) {
+ state->boot_buffer = ply_buffer_new();
+ ply_trace ("on_session_output called with null state->boot_buffer");
+ }
   ply_buffer_append_bytes (state->boot_buffer, output, size);
   if (state->boot_splash != NULL)
     ply_boot_splash_update_output (state->boot_splash,