Graphic problem with Olex2 and (X)Ubuntu

Olex2 related issues, ideas, troubleshooting and of course general Olex2 related tomfoolery its all good and welcome. Linux, Mac even Windows all goes in here

Moderators: rjgildea, oleg, luc_j_bourhis, HorstPuschmann

Graphic problem with Olex2 and (X)Ubuntu

Postby celdrion » 23 Apr 2010, 20:11

Hello.

I just installed Olex2 on my Xubuntu 9.10 64bit. For the Installation I used the deb-file from this homepage: http://oz.plymouth.edu/~jsduncan/software/olex2.php. The programme seems to work, but unfortunately I can't read what's written in the console. I tried already to switch compositing on and off, but this doesn't change anything. I attached a screenshot, which should show you my problem. Has anybody an idea?
You do not have the required permissions to view the files attached to this post.
celdrion
Trained Monkey
 
Posts: 8
Joined: 01 Mar 2010, 12:03

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby pascalp » 23 Apr 2010, 20:58

What is your graphic driver? Have you tried an another one?
pascalp
Rotating Anode
 
Posts: 134
Joined: 17 Dec 2007, 16:01
Location: Utrecht, NL

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby johnewarren » 23 Apr 2010, 21:06

Try pressing F2 or F4 and see if it is a font colour class.

Also try right clicking on the general background get the menu edit check what the console font settings are. You can change the font type and style from there. It may also help?

Looking at your display it would also look like your GUI is very old. It may be worth running unirun to update the GUI so check your update settings I think they are in the help menu.
User avatar
johnewarren
Synchrotron
 
Posts: 1241
Joined: 13 May 2006, 14:25
Location: University of Liverpool, UK

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby celdrion » 23 Apr 2010, 22:17

I have got an intel graphic card, so i guess there is no need to try a different driver.

I tried to toggle background as well, but it didn't change aniything. The problem is that I can't check the update settings, because they get displayed in the console.
celdrion
Trained Monkey
 
Posts: 8
Joined: 01 Mar 2010, 12:03

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby pascalp » 24 Apr 2010, 06:15

Talking about intel. If you have a poulsbo chipset, be careful to any upgrade of the OS. The driver is proprietary and not maintained, only a driver for X version 1.6 is available.
pascalp
Rotating Anode
 
Posts: 134
Joined: 17 Dec 2007, 16:01
Location: Utrecht, NL

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby oleg » 24 Apr 2010, 21:08

You have to use the OLEX2_GL_DEFAULT variable, somehow (k,x)ubuntu graphics drivers do not like any extra arguments when constructing OpenGL context (could be wxWidgets problem?). Just try:
Code: Select all
export OLEX2_GL_DEFAULT=True
. If this does not work, try the following in the Olex2 console (just use Ctrl+V to paste if cannot see anything :)):

setfont Console choosefont(olex2)

This will let you to choose a different font from whatever default is provided in that distribution... Let me know if any of these helps...
User avatar
oleg
Olex2 Boffin
 
Posts: 154
Joined: 24 Nov 2008, 21:34

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby celdrion » 26 Apr 2010, 10:54

Sorry, I have not been around on the weekend.

First, I am using an Intel GMA4500 and I am pretty sure that there are only open source drivers available at all, so there should be no problem with that.

@oleg: I tried the two commands you gave me, but unfortunately nothing works. So I installed now Ubuntu, because I thought it might be a problem of mesa in Xubuntu. So I tried everything again, but still no success.
celdrion
Trained Monkey
 
Posts: 8
Joined: 01 Mar 2010, 12:03

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby oleg » 26 Apr 2010, 13:23

I can only say that the fonts are rendered is OpenGL 'bitmaps'. Also I do not have problems with them on my MacBook with similar graphics adaptor (some intel GMA) and Ubuntu 9.10 x32 (besides that OLEX2_GL_DEFAULT is set to True)
User avatar
oleg
Olex2 Boffin
 
Posts: 154
Joined: 24 Nov 2008, 21:34

Problem with Olex2 and Ubuntu

Postby Pavlo » 27 Apr 2010, 17:05

I don't want start new topic.

I also have problem with Ubuntu 9.10 (32/64). I downloaded CVS repository and compiled Olex2 from scratch. I changed makefile (i have already ~/bin dirrectory)

install:
@echo "Installing to local directory: " $(HOME)
@if test ! -d $(OLEX_BIN); \
then mkdir $(OLEX_BIN); \
fi;
# @mkdir $(OLEX_BIN);
@if test ! -d $(OLEX_INS); \
then mkdir $(OLEX_INS); \
fi;
@cp -r $(EXE_DIR)* $(OLEX_INS)/;
@cp $(SRC_DIR)scripts/usettings.dat $(OLEX_INS)/;
.......

So, i typed "make install" and got this massage:
$ make install
make: PROXY: Command not found
Installing to local directory: /home/pavel
Installed
Downloading and Updating GUI
N4esdl24TFunctionFailedExceptionE invalid digit occured at [/home/pavel/develop/olex2/trunk/sdl/smart/olx_istring.h(o_atoi_s):832]

Finished
make: *** [install] Error 1
$
Any idea or advice ?

Best, Pavel.
Pavlo
Trained Monkey
 
Posts: 8
Joined: 27 Apr 2010, 16:57

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby celdrion » 27 Apr 2010, 21:25

OK, because I've seen that it should be easier with Fedora I thought I try this again. Unfortunately The repository is still not available, so I was not able to add it. So I dowloaded the required Packages (cctbx, olex2 and olex2gui). I managed to install cctbx, but when I tried to install olex2 it told me that's impossible, because it requires olex2gui and when I tried to install the fui first it was the other way around...

Do you know how I can fix that?
celdrion
Trained Monkey
 
Posts: 8
Joined: 01 Mar 2010, 12:03

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby pascalp » 27 Apr 2010, 23:09

What do you mean by not available? Debroglie was down a couple of days 1 or 2 weeks ago but it should be fine now. I have just tested for centos and succesfully updated platon.

When you have circular dependancies, install the two packages at once.
rpm -ivh package1.rpm package2.rpm
pascalp
Rotating Anode
 
Posts: 134
Joined: 17 Dec 2007, 16:01
Location: Utrecht, NL

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby johnewarren » 28 Apr 2010, 08:44

Pascal is correct regarding the rpm install
So, i typed "make install" and got this massage:
$ make install
make: PROXY: Command not found
Installing to local directory: /home/pavel
Installed
Downloading and Updating GUI
N4esdl24TFunctionFailedExceptionE invalid digit occured at [/home/pavel/develop/olex2/trunk/sdl/smart/olx_istring.h(o_atoi_s):832]

Finished
make: *** [install] Error 1
$
Any idea or advice ?

Best, Pavel.

Pavlo

Also the Makefile has been allowed to get slightly out of date (my fault) as I focused more on the rpms. The problem is that for Olex2 to start it needs to download and install the GUI BUT the GUI installation changed and the Makefile was not updated to reflect this - sorry.

Quick fix is to make a directory olex2 in your home type:

Code: Select all
mkdir $home/olex

Move the binaries into this directory (replace yourbuildroot with where you built olex2)
Code: Select all
cp yourbuildroot/bin/* $home/olex

Then cd into olex2 directory and run unirun
Code: Select all
cd  $home/olex
./unirun


This will pull the GUI down for you automatically and install it you will be able to start olex2 - BUT you will need to setup the environmental parameters first - so I have two sh files to do this as part of the rpms.

I've modified them for this install and have attached.

I've also called this install olex rather than olex2 so that if you do get olex2 from a modified/converted rpm or deb file then you should not have any directory clashes.

Put the olex shell script in your $home/bin and the .config-olex in your $home

Also note your NEED CCTBX for this to work and will also need to modify your paths in the .config-olex to show the correct CCTBX install etc.
You do not have the required permissions to view the files attached to this post.
User avatar
johnewarren
Synchrotron
 
Posts: 1241
Joined: 13 May 2006, 14:25
Location: University of Liverpool, UK

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby oleg » 28 Apr 2010, 09:58

Please note that if you use Olex2 compiled from scratch, you should either use the svn version of the GUI or the latest release (like 1.1-alpha or beta for current release). That invalid digit exception was caused by the incompatibility of the old GUI and the new executable...
User avatar
oleg
Olex2 Boffin
 
Posts: 154
Joined: 24 Nov 2008, 21:34

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby Pavlo » 28 Apr 2010, 23:29

2Pascal :

Ok, I use your olex script. I compiled olex2 with -g -O2 and `wx-config --debug=yes`
compiled cctbx i changed all settings for lib and bin directories (in .olex-config).

So i ran Olex2 via gdb and got some errors.

(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/pavel/olex/olex
[Thread debugging using libthread_db enabled]
[Debug] 06:23:58 PM: ../src/gtk/glcanvas.cpp(351): assert "m_vi" failed in Create(): required visual couldn't be found
[New Thread 0xad8f6b70 (LWP 12706)]
[Debug] 06:24:02 PM: ../src/gtk/glcanvas.cpp(75): assert "vi" failed in wxGLContext(): invalid visual for OpenGl
[New Thread 0xad0f5b70 (LWP 12709)]
[New Thread 0xac8f4b70 (LWP 12710)]
[New Thread 0xac0f3b70 (LWP 12711)]
[New Thread 0xab8f2b70 (LWP 12712)]
[New Thread 0xab0f1b70 (LWP 12713)]
[New Thread 0xaa8f0b70 (LWP 12714)]
[Thread 0xab0f1b70 (LWP 12713) exited]
[Thread 0xac8f4b70 (LWP 12710) exited]
[Thread 0xac0f3b70 (LWP 12711) exited]
[Thread 0xab8f2b70 (LWP 12712) exited]
[Thread 0xad0f5b70 (LWP 12709) exited]
[New Thread 0xad0f5b70 (LWP 12715)]
[Thread 0xaa8f0b70 (LWP 12714) exited]
[New Thread 0xaa8f0b70 (LWP 12716)]
[New Thread 0xab8f2b70 (LWP 12717)]
[Thread 0xaa8f0b70 (LWP 12716) exited]
[Thread 0xad0f5b70 (LWP 12715) exited]
[New Thread 0xad0f5b70 (LWP 12718)]
[Thread 0xab8f2b70 (LWP 12717) exited]
[New Thread 0xab8f2b70 (LWP 12719)]
[Thread 0xad0f5b70 (LWP 12718) exited]
[Debug] 06:24:33 PM: ../src/gtk/window.cpp(3286): assert "m_widget != __null" failed in SetFocus(): invalid window
[Thread 0xab8f2b70 (LWP 12719) exited]
[New Thread 0xab8f2b70 (LWP 12722)]
[New Thread 0xad0f5b70 (LWP 12723)]
[New Thread 0xaa8f0b70 (LWP 12724)]
[New Thread 0xac0f3b70 (LWP 12725)]
[New Thread 0xac8f4b70 (LWP 12726)]
[New Thread 0xaa0efb70 (LWP 12727)]
[Thread 0xac8f4b70 (LWP 12726) exited]
[Thread 0xaa0efb70 (LWP 12727) exited]
[Thread 0xab8f2b70 (LWP 12722) exited]
[Thread 0xac0f3b70 (LWP 12725) exited]
[Thread 0xaa8f0b70 (LWP 12724) exited]
[New Thread 0xaa8f0b70 (LWP 12728)]
[Thread 0xad0f5b70 (LWP 12723) exited]
[New Thread 0xad0f5b70 (LWP 12731)]
[New Thread 0xac0f3b70 (LWP 12732)]
[Thread 0xad0f5b70 (LWP 12731) exited]
[Thread 0xaa8f0b70 (LWP 12728) exited]
[New Thread 0xaa8f0b70 (LWP 12733)]
[Thread 0xac0f3b70 (LWP 12732) exited]
[New Thread 0xac0f3b70 (LWP 12734)]
[New Thread 0xad0f5b70 (LWP 12735)]
[New Thread 0xab8f2b70 (LWP 12736)]
[Thread 0xad0f5b70 (LWP 12735) exited]
[Thread 0xac0f3b70 (LWP 12734) exited]
[Thread 0xaa8f0b70 (LWP 12733) exited]
[Debug] 06:25:05 PM: ../src/gtk/app.cpp(82): assert "wxAssertFailure" failed in Yield(): wxYield called recursively
[Thread 0xab8f2b70 (LWP 12736) exited]
[New Thread 0xab8f2b70 (LWP 12739)]
[New Thread 0xaa8f0b70 (LWP 12740)]
[New Thread 0xac0f3b70 (LWP 12741)]
[New Thread 0xad0f5b70 (LWP 12742)]
[New Thread 0xac8f4b70 (LWP 12743)]
[New Thread 0xaa0efb70 (LWP 12744)]
[Thread 0xad0f5b70 (LWP 12742) exited]
[Thread 0xaa8f0b70 (LWP 12740) exited]
[Thread 0xac0f3b70 (LWP 12741) exited]
[Thread 0xab8f2b70 (LWP 12739) exited]
[Thread 0xac8f4b70 (LWP 12743) exited]
[New Thread 0xac8f4b70 (LWP 12745)]
[Thread 0xaa0efb70 (LWP 12744) exited]
[New Thread 0xaa0efb70 (LWP 12746)]
[New Thread 0xab8f2b70 (LWP 12747)]
[Thread 0xab8f2b70 (LWP 12747) exited]
[Thread 0xac8f4b70 (LWP 12745) exited]
[New Thread 0xac8f4b70 (LWP 12748)]
[Thread 0xaa0efb70 (LWP 12746) exited]
[New Thread 0xaa0efb70 (LWP 12749)]
[New Thread 0xab8f2b70 (LWP 12750)]
[New Thread 0xac0f3b70 (LWP 12751)]
[New Thread 0xaa8f0b70 (LWP 12752)]
[New Thread 0xad0f5b70 (LWP 12753)]
[Thread 0xaa8f0b70 (LWP 12752) exited]
[Thread 0xac0f3b70 (LWP 12751) exited]
[Thread 0xab8f2b70 (LWP 12750) exited]
[Thread 0xaa0efb70 (LWP 12749) exited]
[Thread 0xac8f4b70 (LWP 12748) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00c1b246 in glGenLists () from /usr/lib/libGL.so.1
(gdb)
(gdb) backtrace
#0 0x00c1b246 in glGenLists () from /usr/lib/libGL.so.1
#1 0x083971e9 in olx_gl::genLists (this=0x9158758, name=...)
at /home/pavel/develop/olex2/trunk/glib/glbase.h:223
#2 TGlFont (this=0x9158758, name=...)
at /home/pavel/develop/olex2/trunk/glib/glfont.cpp:16
#3 0x087246d2 in gxlib::TwxGlScene::CreateFont (this=0x8fddb58, name=...,
fntDesc=..., Flags=8)
at /home/pavel/develop/olex2/trunk/gxlib/wxglscene.cpp:178
#4 0x0881bb1f in TMainForm::StartupInit (this=0x8d23300)
at /home/pavel/develop/olex2/trunk/olex/mainform.cpp:1368
#5 0x0881ec60 in TMainForm::OnInternalIdle (this=0x8d23300)
at /home/pavel/develop/olex2/trunk/olex/mainform.cpp:3723
#6 0x003193d5 in wxAppBase::SendIdleEvents (this=0x8cc74a8, win=0x8d23300,
event=...) at ../src/common/appcmn.cpp:471
#7 0x003195f1 in wxAppBase::ProcessIdle (this=0x8cc74a8)
at ../src/common/appcmn.cpp:443
#8 0x0025bf61 in wxApp::Yield (this=0x8cc74a8, onlyIfNeeded=false)
at ../src/gtk/app.cpp:117
#9 0x0881e679 in TMainForm::OnInternalIdle (this=0x8d23300)
at /home/pavel/develop/olex2/trunk/olex/mainform.cpp:3720
#10 0x003193d5 in wxAppBase::SendIdleEvents (this=0x8cc74a8, win=0x8d23300,
event=...) at ../src/common/appcmn.cpp:471
#11 0x003195f1 in wxAppBase::ProcessIdle (this=0x8cc74a8)
---Type <return> to continue, or q <return> to quit---
at ../src/common/appcmn.cpp:443
#12 0x0025bc7a in wxapp_idle_callback () at ../src/gtk/app.cpp:206
#13 0x0144b101 in ?? () from /lib/libglib-2.0.so.0
#14 0x0144ce88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#15 0x01450730 in ?? () from /lib/libglib-2.0.so.0
#16 0x01450b9f in g_main_loop_run () from /lib/libglib-2.0.so.0
#17 0x00eb9419 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x00277ec8 in wxEventLoop::Run (this=0x8d42930)
at ../src/gtk/evtloop.cpp:76
#19 0x003192ac in wxAppBase::MainLoop (this=0x8cc74a8)
at ../src/common/appcmn.cpp:312
#20 0x00319001 in wxAppBase::OnRun (this=0xffffffb8)
at ../src/common/appcmn.cpp:367
#21 0x006cd3ea in wxEntry (argc=@0x7c76ac, argv=0x8cb5a80)
at ../src/common/init.cpp:460
#22 0x006cd497 in wxEntry (argc=@0xbffff380, argv=0xbffff424)
at ../src/common/init.cpp:472
#23 0x08867c5b in main (argc=1, argv=0xbffff424)
at /home/pavel/develop/olex2/trunk/olex/xglapp.cpp:257
(gdb)

I don't know. Do i have problem with libraries or it is a bug in Olex2.

If you need additional information just let me know.

P.S. May be better put debug symbols in to alpha and beta version (cvs) by default.
p.S. I will give information for 64 bit machine soon.

Best, Pavel.
Pavlo
Trained Monkey
 
Posts: 8
Joined: 27 Apr 2010, 16:57

Re: Graphic problem with Olex2 and (X)Ubuntu

Postby oleg » 29 Apr 2010, 02:19

have you tried running the Suse executables ?
http://olex2.opencryst.net/olex2-distro/1.1-beta/
just in case...
User avatar
oleg
Olex2 Boffin
 
Posts: 154
Joined: 24 Nov 2008, 21:34

Next

Return to Olex2

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests