Unable to load cursor when weston server is loaded
avijit.manna at wipro.com
avijit.manna at wipro.com
Tue Jun 12 03:32:18 PDT 2012
Hi Rob,
Thanks for your valuable inputs.
Unfortunately the source code given by you is crashing (segmentation fault) while running in my environment. I checked the mime database. The mime database is present in /usr/share. But I am installing and using my local directory for all my source code. My directory is /home/avijit/install/ and there is no mime database installed under /home/avijit/install/share. So, do I need to install the mime databse within my environment?? If yes, what is the procedure to do so?
I checked the gdk-pixbuf loader in my environment (/home/install/lib/gdk-pixbuf/<version>/loaders) and it is using an external loader. The png loader file is also mentioned in loader.cache.
Here is the output command of ldd:
ldd libgdk_pixbuf-2.0.so
linux-gate.so.1 => (0x004e2000)
libgmodule-2.0.so.0 => /home/wipro/install/lib/libgmodule-2.0.so.0 (0x00cd8000)
libgio-2.0.so.0 => /home/wipro/install/lib/libgio-2.0.so.0 (0x00e3a000)
libgobject-2.0.so.0 => /home/wipro/install/lib/libgobject-2.0.so.0 (0x00ce9000)
libglib-2.0.so.0 => /home/wipro/install/lib/libglib-2.0.so.0 (0x00110000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x003c5000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00b35000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00981000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x0060f000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x00232000)
libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0x00394000)
libffi.so.5 => /home/wipro/install/lib/libffi.so.5 (0x002d1000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x00c07000)
/lib/ld-linux.so.2 (0x00247000)
ldd libpixbufloader-png.so
linux-gate.so.1 => (0x00319000)
libgdk_pixbuf-2.0.so.0 => /home/wipro/install/lib/libgdk_pixbuf-2.0.so.0 (0x0074b000)
libgobject-2.0.so.0 => /home/wipro/install/lib/libgobject-2.0.so.0 (0x00130000)
libglib-2.0.so.0 => /home/wipro/install/lib/libglib-2.0.so.0 (0x00bd6000)
libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0x0089b000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x009da000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00180000)
libgmodule-2.0.so.0 => /home/wipro/install/lib/libgmodule-2.0.so.0 (0x00b00000)
libgio-2.0.so.0 => /home/wipro/install/lib/libgio-2.0.so.0 (0x0031a000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x0047e000)
libffi.so.5 => /home/wipro/install/lib/libffi.so.5 (0x007b0000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x00110000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x00119000)
/lib/ld-linux.so.2 (0x00ec8000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x002fc000)
libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0x00b7e000)
Regards,
Avijit
________________________________________
From: robster at evilgeniuses.org.uk [robster at evilgeniuses.org.uk] on behalf of Rob Bradford [rob at robster.org.uk]
Sent: Monday, June 11, 2012 8:35 PM
To: Avijit Manna (WT01 - PES)
Cc: wayland-devel at lists.freedesktop.org
Subject: Re: Unable to load cursor when weston server is loaded
On 11 June 2012 14:55, <avijit.manna at wipro.com> wrote:
> Hi,
>
> I have built weston with wayland (wayland 0.85). When I try to run weston server it is loaded properly but the cursor is not displayed.
>
> When I dig into more detail and put some logs I could see that following functions are getting called:
> create_pointer_surfaces()->display_create_surface_from_file()->display_create_egl_image_surface_from_file()->gdk_pixbuf_new_from_file_at_scale().
>
> Now, the function gdk_pixbuf_new_from_file_at_scale() is returning some error value with "Unrecognized file format" which is resulting in error print "Error loading pointer image.".
>
This might be a mime type problem or a gdk-pixbuf loader problem.
To check that the mime guessing code is working try running the
attached code against the image under the same environment that you're
running weston.
If that fails you need to make sure you have the mime type databases
installed. If that succeeds you need to look at loader problem.
My gdk-pixbuf has png built in but yours might use an external loader
inside e.g. /usr/lib/gdk-pixbuf/<version>/loaders (check with ldd to
see if your gdk-pixbuf has png built in.) You also need to make sure
that the png loader is in the loaders.cache file inside
/usr/lib/gdk-pixbuf/<version>/
Good luck!
Cheers,
Rob
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
More information about the wayland-devel
mailing list