SFML community forums
Help => Graphics => Topic started by: JannoT on November 12, 2009, 01:59:31 am
-
Anything known to cause crashes in SFML2?
Becouse i get a ugly crash after closing my program.
Program received signal SIGSEGV, Segmentation fault.
In atioglxx!DrvRealizeLayerPalette () (C:\WINDOWS\system32\atioglxx.dll)
Call stack
#0 6903A59D atioglxx!DrvRealizeLayerPalette() (C:\WINDOWS\system32\atioglxx.dll:??)
#1 0319C890 ??() (??:??)
#2 6908BDE0 atioglxx!DrvValidateVersion() (C:\WINDOWS\system32\atioglxx.dll:??)
#3 00000000 ??() (??:??)
For me this looks like sfml 1.5 font bug, but that should be fixed and i havent even used sf::String in my code, yet.
My code: http://pastebin.com/m3ee064d6
I use Mingw and i use the SFML Release DLL's, compiled by myself. REV: 1274, and i am not mixing debug and release lib's.
OS: Win XP SP3
CPU: Intel Celeron 2.5GHz :oops:
Graphics card: ATI Radeon HD2400
And also: SFML 1.5, rev 1274 doesnt crash with the same code.
-
Out of topic, just I'm curious. You are on Windows. Why mingw and not VC Express? Many of troubles would fade away. :wink:
-
I have no idea, sorry. Can you use the debug versions to get more informations about the crash with your debugger?
-
I have the same problem with the current version, and a little more information:
The segfault described above is thrown for me in WglContext.cpp:93: wglMakeCurrent(NULL, NULL);
I don't know if that is of any help: Since I really have no idea about OpenGL, I tried removing said line and compile SFML2 again. The error just wanders to the next line: wglDeleteContext(myContext);
Removing the
if (wglGetCurrentContext() == myContext)
wglMakeCurrent(NULL, NULL);
wglDeleteContext(myContext);
removes the error. (What happens if I don't delete the context? May I work this way till a fix is figured out?)
OS: Win 7 64bit
Graphics Card: ATI Mobility Radeon HD 5650
Oh, and also no idea if that is of any help, while I googled a little I found this:
https://svn.lcube.de/dev123/projects/cafu/trunk/Libs/OpenGL/OpenGLWindow.cpp
Especially one comment strikes me as interesting:
// WARNING: Omitting the following line worked when this library was a static library.
// When it became a shared library, the next call to glXMakeCurrent() caused a segmentation fault without this line.
// That's strange. Probably it's just a driver bug on my machine, but I thought I'd better mention it...
glXDestroyContext(DisplayPtr, RC);
edit:
Curious and curiouser: When I use static linking, everything works fine.
-
Out of topic, just I'm curious. You are on Windows. Why mingw and not VC Express? Many of troubles would fade away. :wink:
Because some people like MinGW.
-
I have the same problem ( with SFML2, mingw, dynamic link ). I've got a ATI Radeon 5870, and I also get a lots of users feedback concerning this problem.
But I thought you were aware of this problem Laurent, it has been discussed here for example : http://www.sfml-dev.org/forum-fr/viewtopic.php?t=1535&postdays=0&postorder=asc&start=255