Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Any known crash causers on SFML2?  (Read 4654 times)

0 Members and 1 Guest are viewing this topic.

JannoT

  • Guest
Any known crash causers on SFML2?
« 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.
Code: [Select]

Program received signal SIGSEGV, Segmentation fault.
In atioglxx!DrvRealizeLayerPalette () (C:\WINDOWS\system32\atioglxx.dll)


Call stack
Code: [Select]

#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.

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Any known crash causers on SFML2?
« Reply #1 on: November 12, 2009, 08:40:26 am »
Out of topic, just I'm curious. You are on Windows. Why mingw and not VC Express? Many of troubles would fade away. :wink:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Any known crash causers on SFML2?
« Reply #2 on: November 12, 2009, 08:48:55 am »
I have no idea, sorry. Can you use the debug versions to get more informations about the crash with your debugger?
Laurent Gomila - SFML developer

TobiasW

  • Newbie
  • *
  • Posts: 10
    • View Profile
Any known crash causers on SFML2?
« Reply #3 on: August 19, 2010, 03:56:16 am »
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
Code: [Select]
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:
Code: [Select]
// 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.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Any known crash causers on SFML2?
« Reply #4 on: August 21, 2010, 04:24:54 am »
Quote from: "dunce"
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 use the latest build of SFML2

4ian

  • Hero Member
  • *****
  • Posts: 680
    • View Profile
    • Game Develop website
Any known crash causers on SFML2?
« Reply #5 on: August 23, 2010, 12:58:44 pm »
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

 

anything