SFML community forums

Help => General => Topic started by: Dig on May 02, 2010, 11:44:10 pm

Title: Errors on exit with SFML2 examples
Post by: Dig on May 02, 2010, 11:44:10 pm
I've built the SFML2 libraries and examples from the code::blocks project (why can't we have MinGW makefiles??).  They run fine but have errors on exit (this program needs to be closed etc.,).  

This looks like a return of the bad old default font error that I thought I read was fixed.  Is there something I'm doing wrong here, or has it returned and will be fixed before the official release of SFML2?

Running Windows 7 if that makes a difference.

Cheers,
Nick
Title: Errors on exit with SFML2 examples
Post by: Laurent on May 03, 2010, 12:46:15 pm
Quote
why can't we have MinGW makefiles??

Feel free to contribute ;)

Quote
This looks like a return of the bad old default font error that I thought I read was fixed. Is there something I'm doing wrong here, or has it returned and will be fixed before the official release of SFML2?

As far as I know this bug is really fixed in SFML 2. Does it happen with all the graphics samples? Can you try to extract a minimal piece of code that reproduces the problem?
Title: Errors on exit with SFML2 examples
Post by: Dig on May 08, 2010, 11:18:02 am
It happens with all the graphic samples built without modification from the Code::Blocks project (SFML2).

Doesn't happen with the console samples (voip, networking etc.,).

I'll play around further in the morning and see if I can get a minimal example together.  I'm on a different computer at the moment and don't want to install Code::Blocks (and I haven't made and contributed MinGW makefiles yet :) ).

Cheers
Title: Errors on exit with SFML2 examples
Post by: Jakman4242 on May 10, 2010, 07:16:42 am
I've had this problem too, after recently upgrading to SFML2. I also built from the Code::Blocks workspace.

Same thing, when I close the window I get an error that the app has crashed.

It's not the Close() function itself, but maybe it has something to do with the deconstruction?

*shrug*

[EDIT]
... It's not the deconstructor. Messing with some pointers says no to that.
Title: Errors on exit with SFML2 examples
Post by: Dig on May 10, 2010, 09:07:44 am
Hmm... Something very strange is happening.

I built it all again from today's svn trunk on windows XP (Code::Blocks, MinGW) and it works without error.  The executable can be run on my Windows 7 machine without error as well.

But the executable built on Windows 7 has the error.  

For some reason I can't build the current trunk on the Window 7 machine.

My suspicion is I have a dodgy configuration somewhere along the line.  If I can pinpoint it further I'll update you all.

EDIT
Got it built on Windows 7 and it has an error on close, the minimal code is just:
Code: [Select]
int main()
{
    // Create the main window
    sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window");

    return EXIT_SUCCESS;
}


Window opens and closes immediately with an error.  Copying the same executable to my Windows XP machine the window opens and immediately closes with NO error.  Same program built on Windows XP has no error on either machine.

I'll keep investigating...
Title: Errors on exit with SFML2 examples
Post by: Jakman4242 on May 10, 2010, 07:12:52 pm
I'm not sure if it's relevant, but are you running x64 Windows 7 and 32-bit XP?

I'm on 64-bit 7, so it might have something to do with the issue if you are as well.
Title: Errors on exit with SFML2 examples
Post by: Dig on May 11, 2010, 12:04:08 am
Yes indeed, sorry should've mentioned that, 64-bit Windows 7, 32-bit windows XP.

Executable builds on both machines and runs on both (i.e., the windows 7 executable runs on the windows xp machine fine and vice versa).

Error only occurs when its built and run on windows 7 and occurs in any app that opens a window.

Curious.
Title: Errors on exit with SFML2 examples
Post by: Ashenwraith on May 11, 2010, 12:53:47 am
Have you tried running the program in xp emulated mode?
Title: Errors on exit with SFML2 examples
Post by: Jakman4242 on May 11, 2010, 05:46:08 am
I still get a crash when running in XP mode, don't know about Dig.
Title: Errors on exit with SFML2 examples
Post by: Jakman4242 on May 18, 2010, 04:23:03 am
I'm still having this problem.

It appears the problem is in "atioglxx.dll", or so says the windows error report.
Inferring from that, it seems that something in SFML is conflicting with that DLL.

*shrugs*
Title: Errors on exit with SFML2 examples
Post by: Ashenwraith on May 19, 2010, 04:40:19 am
Sounds like a driver problem with ati?

Maybe you could try updating?
Title: Errors on exit with SFML2 examples
Post by: Jakman4242 on May 19, 2010, 07:14:54 am
It's quite possible that it is.

Although, I'm as updated as I get.(I made sure of this as soon as I got this error) I have a driver supplied by Sony, as I own a VAIO. There might be a few things wrong.
I'll go test on my desktop machine later, which doesn't have third-party-based driver implementations, to help narrow down the problem.
Title: Errors on exit with SFML2 examples
Post by: pixelond on May 19, 2010, 01:13:13 pm
I have the same problem.

I've tested lots of different drivers (catalyst from 8 to 10) and it must be something wrong with SFML2 window.dll.



(http://img33.imageshack.us/img33/290/errormty.jpg)

Would be so great if you could fix it.
Title: Errors on exit with SFML2 examples
Post by: Laurent on May 19, 2010, 02:24:43 pm
I have an idea of the origin of this problem, but unfortunately it cannot be fixed easily. It will require a major modification of how SFML works.
Title: Errors on exit with SFML2 examples
Post by: Mindiell on May 19, 2010, 09:29:58 pm
Quote from: "Laurent"
a major modification
:shock: SFML 3 already ?


 :lol:
Title: Errors on exit with SFML2 examples
Post by: Laurent on May 19, 2010, 10:38:31 pm
Quote
SFML 3 already ?

Since SFML 2 is not out yet, there's no need to think about SFML 3 :P
Title: Errors on exit with SFML2 examples
Post by: Jakman4242 on May 20, 2010, 02:53:49 am
*facepalm*

Feel like doing a whole lot of work on SFML, there, Laurent?  :lol:

If it is SFML itself, though, I'd just have to build SFML2 on a machine that didn't give me those problems, yeah? Theoretically it should work out.