You are not logged in.

#1 2012-07-30 09:04:06

birdo
Member
Registered: 2010-11-30
Posts: 7

[SOLVED] Compiling and running C++/OpenGL application freezes computer

Hi, I am having the following very annoying problem for a while:

I am using gcc 4.7 and Eclipse/CDT to write an OpenGL application on my computer with an ATI graphics card and newest Catalyst driver.
When I compile and run the application from within the IDE (with or without gdb) the computer freezes every few times.
When it freezes, I see that it opened the empty application window, mouse and keyboard do not work anymore and my audioplayer keeps playing one buffer length, I guess.
After resetting the computer, the built executable works fine.
Could a subtle bug in my C++ or OpenGL code completely crash arch?

Thank you very much for any hint you can give!

Last edited by birdo (2012-08-01 06:06:50)

Offline

#2 2012-07-30 10:57:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,580

Re: [SOLVED] Compiling and running C++/OpenGL application freezes computer

Sounds like it could be a code problem, OR a problem with running apps in the IDE.

Is there any info in logs about the error ?
kernel.log , everything.log and eclipse's own logfiles are candidates to look at.

If you run a simple application like "hello world" in eclipse, does the computer also crash ?
If eclipse/CDT has an opengl demo program does that make the computer crash when run in IDE ?

If the 2 above don't crash the computer, try singlestepping through your code, to determine where the error occurs.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2012-07-31 11:52:59

birdo
Member
Registered: 2010-11-30
Posts: 7

Re: [SOLVED] Compiling and running C++/OpenGL application freezes computer

Thanks Lone_Wolf!
The crashes are logged in the kernel.log.
It says "[fglrx] ASIC hang happened" together with a stack trace mentioning my executable and firegl.
I guess there is nothing I can do but check my rendering code once more.
Valgrind and gDEBugger do not complain...

Offline

#4 2012-07-31 12:07:12

INDIE HELPER
Member
Registered: 2012-07-30
Posts: 2

Re: [SOLVED] Compiling and running C++/OpenGL application freezes computer

Offline

#5 2012-08-01 06:23:43

birdo
Member
Registered: 2010-11-30
Posts: 7

Re: [SOLVED] Compiling and running C++/OpenGL application freezes computer

Thanks INDIE HELPER!
Fortunately here it only happens while starting my app (never because of X or other modern OpenGL apps).
I disable the post processing effects at startup (render to framebuffer) and it does not seem to freeze anymore.
I have to investigate this code. Solved for now, I am glad, thanks.

Offline

Board footer

Powered by FluxBB