Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR Burn: The image could not be loaded



On Sun, 2005-02-06 at 11:44 +0000, David Thompson wrote:

> When the vdr_sync.pl script completes successfully, the VDR burn plugin 
> then fails giving the following error:
> 
> Feb  5 23:27:49 linux vdr[6254]: BURN: The image 
> /video/plugins/burn/menu-bg.png could not be loaded
> 
> Looking into the source code, it appears that this error occurs if 
> imlib_load_image cannot find the image.
> 
> However, the image file is indeed in that location, with correct 
> permissions .. and indeed, if I manually run the command outside of vdr 
> as the vdr user "imlib2 imlib_load_image 
> /video/plugins/burn/menu-bg.png" it runs fine.

I have exactly the same problem, but no solution.  imlib2 1.2.0.

I added a bit of debugging code to vdr-burn to see the imlib2 error code
(see attachment), but unfortunately that won't help much; the error is
always 14 (IMLIB_LOAD_ERROR_UNKNOWN).

Further, it looks to me as if vdr-burn wouldn't actually mind if the
image can't be loaded, but generates one of it's own on the fly.
Nevertheless, that's the last output I get from the burn plugin, after
it the job is shown as errored out in the VDR UI, and no further info is
available.

Feb  2 23:30:11 bobcat vdr[1808]: BURN: Subprocess watcher started (pid=1808)
Feb  2 23:32:21 bobcat vdr[1888]: BURN: Couldn't load image /etc/vdr/plugins/burn/menu-bg.png, error code 14
Feb  2 23:32:21 bobcat vdr[1808]: BURN: Subprocess watcher stopped

> Any ideas are greatly appreciated.

Seconded.
--- render.c	2004-12-02 17:03:07.000000000 +0200
+++ render.c	2005-02-02 23:10:41.324025607 +0200
@@ -92,12 +92,13 @@
 
 void cBurnRender::DrawImage(const char *Filename, int X, int Y) {
 	Imlib_Image img, old;
+	Imlib_Load_Error error;
 	int w, h;
 
 	old = imlib_context_get_image();
-	img = imlib_load_image(Filename);
+	img = imlib_load_image_with_error_return(Filename, &error);
 	if (!img) {
-		esyslog("BURN: The image %s could not be loaded", Filename);
+		esyslog("BURN: Couldn't load image %s, error code %d", Filename, error);
 		if (X != 0 || Y != 0)
 			return;
 		w = 720; h = 576;

Home | Main Index | Thread Index