Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 14, 2018 10:28 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Currupt GUI on Ubuntu
PostPosted: Mon Jul 04, 2011 3:30 am 
Offline

Joined: Mon Jul 04, 2011 3:08 am
Posts: 3
Hi folks

I've just downloaded RB 2001 R2 to test as a potential development platform for a project we have coming up. I used the Linux Raw TGZ download as I'm on a 64 bit platform (Ubuntu 11.04). I unpacked the tgz into my home/bin directory and permissions on the folders seem to be ok. RB starts and runs fine, however the GUI is 'corrupted' (best way to describe it) when I run the software. It seems like some stock images I was originally using Fluxbox as my window manager but switching to Gnome hasn't solved the problem. I've attached a screenshot. Anyone else seeing this problem / know how to solve it?

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Mon Jul 18, 2011 11:41 am 
Offline
Real Software Engineer

Joined: Fri Sep 30, 2005 8:28 am
Posts: 242
Location: Unfortunately not Canada
The issue is that some 32-bit libraries are trying to load 64-bit ones.
See if these workarounds help you, I found this at
https://bugs.launchpad.net/ubuntu/+sour ... bug/781870
So it's not limited to us.


Workaround 1: Fortunately the gdk-pixbuf allows to override the hard
coded path to the catalog file with an environment variable. Set

export GDK_PIXBUF_MODULE_FILE=/usr/
lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache

Workaround 2: Fortunately, the gdk-pixbuf tries to load
loaders.cache.32 before loaders.cache. Set a Symlink from

/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.32 to
/usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Mon Jul 18, 2011 9:30 pm 
Offline

Joined: Tue Dec 13, 2005 7:29 am
Posts: 307
Location: Little Elm, TX
William,

I tried this:
sudo ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.32 /usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache

And I got the following message:
Quote:
ln: creating symbolic link `/usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache': File exists


Did I do something wrong?

_________________
Thanks,

Craig
--------
"Stress is the body's way of saying you have not worked enough unpaid overtime." ~ Scott Adams
The Association of REALbasic Professionals http://www.arbpmembers.org/
Windows 7, Kubuntu 11.04, RB 2011R4.3


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Tue Jul 19, 2011 2:49 am 
Offline

Joined: Mon Jul 04, 2011 3:08 am
Posts: 3
William:

Thanks for hint - neither of these worked for me unfortunately, but I can see the logic. I'm also seeing errors like this:

/usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so: wrong ELF class: ELFCLASS64

(Real Studio 2011:12978): Gtk-WARNING **: Failed to load type module: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so

/usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(Real Studio 2011:12978): Gtk-WARNING **: Loading IM context type 'ibus' failed

So it seems I need to try to get these loaded into the 32 bit environment as well. Thanks for the pointer.

wcboyd: You just have the symlink arguments the wrong way round. It should be:

sudo ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache /usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache.32


PS: Just noticed 'currupt' instead of 'corrupt' in the subject line of my original post. Down in history forever as a rubbish speller!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Tue Jul 19, 2011 6:38 am 
Offline

Joined: Tue Dec 13, 2005 7:29 am
Posts: 307
Location: Little Elm, TX
ronanchilvers thanks for helping get the ln command correct!

After fixing that my GUI is still "currupt" too. :wink:
Here is the terminal output:
craig@NCC-1501:/opt/RealSoftware/RealStudio2011r2$ sudo ./"Real Studio 2011"
[RB] Unable to load plugin RBQT.rbx
[RB] Unable to load plugin RBGameInput.rbx
[RB] Unable to load plugin Oracle Plugin.rbx
Loading Office classes ...
Loading dependencies ...
Initialize online help ...
Done initializing online help ...

(Real Studio 2011:2645): Gtk-CRITICAL **: _gtk_accel_group_attach: assertion `g_slist_find (accel_group->acceleratables, object) == NULL' failed


I hope this helps get us a little closer to a solution.

William, thanks for posting that link. It is indeed encouraging to see that the issue is more wide spread than Real Studio. Now if only the countless folks in the community that are smarter than me would resolve this....

_________________
Thanks,

Craig
--------
"Stress is the body's way of saying you have not worked enough unpaid overtime." ~ Scott Adams
The Association of REALbasic Professionals http://www.arbpmembers.org/
Windows 7, Kubuntu 11.04, RB 2011R4.3


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Tue Jul 19, 2011 7:16 am 
Offline

Joined: Mon Jul 04, 2011 3:08 am
Posts: 3
I seem to have got Real Studio working using the following:

GDK_PIXBUF_MODULE_FILE=/usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache ~/bin/RealStudio2011r2/Real\ Studio\ 2011


My installation is in $HOME/bin - hence the path above. Yours may be different. I didn't need to symlink the loaders.cache file - just setting the environment variable correctly seems to have worked.

In order to use a launcher in Gnome I've created a small bash script with the following content:

#!/bin/bash

GDK_PIXBUF_MODULE_FILE=/usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache /path/to/bin/RealStudio2011r2/Real\ Studio\ 2011


Where /path/to/bin is the installation path on my machine - change this to match yours. I've changed my gnome panel launcher to run this script and the GUI now displays fine. We'll see if any other strangeness happens as I use it!

Thanks again for the hint William.


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Tue Jul 19, 2011 9:01 am 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
Weird as I'm running 11.04 in a VM on my Macbook and things look just the way I'd expect
Pretty sure it's just the 32 bit version and I installed Real Studio from the installer not the tgz
Image

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Tue Jul 19, 2011 9:50 am 
Offline

Joined: Tue Dec 13, 2005 7:29 am
Posts: 307
Location: Little Elm, TX
Norman,

I also have a VMware image of Kubuntu 11.04 32-bit that I run under my Kubuntu 11.04 64-bit and it looks and works fine, like the one you show.
The screen shot posted above happens when trying to run RS under 64-bit with the 32-bit compatibility libs installed. As William has pointed out though it is an issue w/n Ubuntu in general and not RS.

_________________
Thanks,

Craig
--------
"Stress is the body's way of saying you have not worked enough unpaid overtime." ~ Scott Adams
The Association of REALbasic Professionals http://www.arbpmembers.org/
Windows 7, Kubuntu 11.04, RB 2011R4.3


Top
 Profile  
Reply with quote  
 Post subject: Re: Currupt GUI on Ubuntu
PostPosted: Wed Jul 20, 2011 4:14 pm 
Offline

Joined: Tue Dec 13, 2005 7:29 am
Posts: 307
Location: Little Elm, TX
ronanchilvers wrote:
I seem to have got Real Studio working using the following:

GDK_PIXBUF_MODULE_FILE=/usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache ~/bin/RealStudio2011r2/Real\ Studio\ 2011


I don't know how you figured that out, but that works like a champ for me!

_________________
Thanks,

Craig
--------
"Stress is the body's way of saying you have not worked enough unpaid overtime." ~ Scott Adams
The Association of REALbasic Professionals http://www.arbpmembers.org/
Windows 7, Kubuntu 11.04, RB 2011R4.3


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group