SFML community forums

Bindings - other languages => DotNet => Topic started by: Megatron on October 28, 2010, 08:45:10 am

Title: ATI Graphic Card Issue
Post by: Megatron on October 28, 2010, 08:45:10 am
Hi there,

I'm having an issue with my graphics card and my SFML.NET project. I'm not sure if this is directly related to .NET or to the Graphics project as a whole, but I thought I'd try asking here first. This is for SFML 2.0

Basically, I upgraded to the newest ATI driver last night, and now my SFML project hangs. The program starts running, starts outputting to the console, but as soon as I make an SFML call (doesnt matter what, fonts, text, images, sprites all do the same thing), the program hangs waiting for the call to return. Normally, the binding to the SFML dlls are part of my project, since theres a few small things I add to the source binding, but replacing my custom binding with the included .net bindings (, , ) didnt stop the hang ups. I downloaded and compiled the latest version of SMFL and tried using that, but the same thing happens

I tried rolling back to several different version of the ATI driver, but to no effect, and I can;t remember the previous driver version I had when my project worked.

I know my project as working before I upgraded my graphics drivers, and my project still works on my other computer. I was wondering if anyone had encountered anything similar or had any ideas on how to fix this?

Thanks
Title: ATI Graphic Card Issue
Post by: DeadLeaves on December 05, 2010, 09:12:11 pm
I have the exact same issue after I upgraded my graphics drivers.
I use an AMD Radeon 5650m upgraded to 10.11 and now SFML applications hangs on startup. I use SFML with visual studio 2008 and I don't use .net or anything fancy, just regular c++ in VS08 and SFML.

Hope we'll get help, or if you solved it please post how you did it.
I know I posted in DotNet forum part, but this is the exact behaviour I encountered
Title: ATI Graphic Card Issue
Post by: rogerlevy on December 23, 2010, 01:29:38 am
Hey, same here!  

On a laptop with Mobility Radeon 9700 it works fine.

But on my desktop with the latest drivers and a Radeon HD 5750, SFML hangs on startup.  0% CPU ... but totally unresponsive.

Addendum: I'm using the C dynamic linked version btw ... not sure if I should create a new Topic..
Title: ATI Graphic Card Issue
Post by: Silvah on December 23, 2010, 11:35:05 am
It's a known bug, dynamically linked SFML and ATI drivers don't like each other.
Title: ATI Graphic Card Issue
Post by: rogerlevy on December 24, 2010, 04:22:57 am
I Love SFML!  If there's anything I can do to help that bug get fixed, let me know.  

I just integrated SFML into my game engine for windowing and input and it works like a charm!  Excellent library - much better than SDL.  If this bug can get fixed that would be great - I can't link to the static library in the language I'm using - so yeah, it's kind of crucial =)
Title: ATI Graphic Card Issue
Post by: Spodi on January 06, 2011, 06:48:09 pm
I hate to be annoying, but is there really nothing .NET users can do? Not even shove SFML into some painfully-slow-yet-stable mode? I have been losing quite a few users due to this bug.
Title: ATI Graphic Card Issue
Post by: Laurent on January 06, 2011, 07:11:04 pm
Hmm the only thing I can think about is to:
1- add a kind of sf::Init() function
2- move the creation of the global OpenGL contexts (in GlContext.cpp: referenceContext and defaultContext) to this function
3- bind the Init() function in CSFML and SFML.Net
4- call it at startup
Title: ATI Graphic Card Issue
Post by: Groogy on January 06, 2011, 07:21:54 pm
I´m not using DotNet but I would't mind if you added that. As long as you don't design it like HGE... Yeww... (It's what my school forces me to use).

Anyway in the Ruby bindings I will make it so that when system is loaded that this function is automatically called. Don't know if that's possible for the DotNet bindings? Just to keep it more smooth :P
Title: ATI Graphic Card Issue
Post by: Spodi on January 06, 2011, 11:37:55 pm
If that is all it takes, that seems like a reasonable solution for now - at least until the bug is fixed. Cleanliness and simplicity are great, but stability is definitely more important. :)

In .NET, you could automatically invoke it via a static class constructor. The problem would just be determining which class to put that constructor in to make sure it is invoked in time. If there are multiple classes that must invoke it before they are used, a simple internal "helper" class could be added to ensure its only called once.
Title: ATI Graphic Card Issue
Post by: Laurent on January 07, 2011, 08:56:38 am
Quote
In .NET, you could automatically invoke it via a static class constructor. The problem would just be determining which class to put that constructor in to make sure it is invoked in time. If there are multiple classes that must invoke it before they are used, a simple internal "helper" class could be added to ensure its only called once.

Absolutely. Unless it brings back the problem, of course ;)
Title: ATI Graphic Card Issue
Post by: Groogy on January 07, 2011, 09:11:12 am
The problem origin is the window right? Why not just call the init function in the window construction? Thus hiding the details from us.
Title: ATI Graphic Card Issue
Post by: Laurent on January 07, 2011, 09:15:25 am
Quote
The problem origin is the window right?

No, it's in the default/hidden OpenGL contexts that are created at global startup.

Quote
Why not just call the init function in the window construction? Thus hiding the details from us.

Because users may want to do graphics things before creating a window.
Title: ATI Graphic Card Issue
Post by: rogerlevy on January 08, 2011, 05:27:54 am
I'd also not complain about having to call an init function if it'll fix the issue.
Title: ATI Graphic Card Issue
Post by: Xyro on January 16, 2011, 07:52:05 pm
Any progress on fixing this, I decided to use this library for a project but if this stays I'll have to rewrite everything :(
Title: ATI Graphic Card Issue
Post by: WarHampster on January 22, 2011, 06:53:02 pm
Good thing that I decided to stick with SFML 1.6 for my project...
Title: ATI Graphic Card Issue
Post by: Brendon on January 22, 2011, 09:18:57 pm
@WarHampster - is the ATI issue resolved in sfml 1.6?  I'm using sfml 1.5 and my users with ATI cards (radeon 4xxx-7xxx) are reporting my program isn't running.
Title: ATI Graphic Card Issue
Post by: Laurent on January 23, 2011, 11:11:54 am
Quote
is the ATI issue resolved in sfml 1.6?

Nop.
Title: ATI Graphic Card Issue
Post by: Wibbs on January 23, 2011, 05:51:59 pm
I could also do with knowing whether/when there is likely to be a fix to this, as it has the potential to be a deal breaker with using SFML.
Title: ATI Graphic Card Issue
Post by: Laurent on January 23, 2011, 06:44:03 pm
There will of course be a fix, probably soon.
Title: ATI Graphic Card Issue
Post by: WarHampster on January 25, 2011, 04:15:06 am
Quote from: "Laurent"
Quote
is the ATI issue resolved in sfml 1.6?

Nop.


Gah, I thought that the issue was only in SFML 2.0. In that case, add me to the list of people asking for a quick and dirty fix.
Title: ATI Graphic Card Issue
Post by: Spodi on January 30, 2011, 05:44:47 am
Quote from: "Laurent"
Hmm the only thing I can think about is to:
1- add a kind of sf::Init() function
2- move the creation of the global OpenGL contexts (in GlContext.cpp: referenceContext and defaultContext) to this function
3- bind the Init() function in CSFML and SFML.Net
4- call it at startup


Any updates on whether or not this approach will be implemented for a temporary fix?
Title: ATI Graphic Card Issue
Post by: Laurent on January 30, 2011, 10:21:29 am
Quote
Any updates on whether or not this approach will be implemented for a temporary fix?

No it won't, I'm already working on the clean solution ;)
Title: ATI Graphic Card Issue
Post by: Xyro on February 13, 2011, 03:21:46 pm
Whats the eta on the fix ?
Title: ATI Graphic Card Issue
Post by: Laurent on February 13, 2011, 03:27:08 pm
Progressing very slowly, I have very little time to spend on SFML at the moment.
Title: ATI Graphic Card Issue
Post by: Dlaor on February 27, 2011, 06:35:11 pm
So when is this issue going to be fixed? I'm participating in a game development competition and I wanted to choose SFML.NET as game engine... but it's freezing every time I want to test my game! Is there any way to get around this? If this doesn't get fixed soon I'm afraid I'm going to have to switch to another game engine  :cry:
Title: ATI Graphic Card Issue
Post by: Laurent on February 27, 2011, 08:54:32 pm
You can try this:
http://www.sfml-dev.org/forum/viewtopic.php?p=27975#27975
Title: ATI Graphic Card Issue
Post by: Dlaor on March 02, 2011, 07:10:39 pm
Quote from: "Laurent"
You can try this:
http://www.sfml-dev.org/forum/viewtopic.php?p=27975#27975

Yeah, I found that link already, it fixed the problem  :D
Title: ATI Graphic Card Issue
Post by: Systemator on July 08, 2011, 10:32:14 pm
so any progress on that ???
Title: ATI Graphic Card Issue
Post by: OniLinkPlus on July 08, 2011, 11:45:00 pm
Quote from: "Systemator"
so any progress on that ???
It's been fixed for over a month now.
Title: ATI Graphic Card Issue
Post by: Systemator on July 09, 2011, 04:01:44 pm
Quote from: "OniLink10"
Quote from: "Systemator"
so any progress on that ???
It's been fixed for over a month now.

great thx :)
Title: ATI Graphic Card Issue
Post by: ferretallica on March 14, 2012, 12:57:34 am
Quote from: "OniLink10"
Quote from: "Systemator"
so any progress on that ???
It's been fixed for over a month now.


Not for me. Still have the same problem. None of my SFML projects run any more, all hang on the first SFML graphics call.

The 10.4 driver DLL work-around is OK but it's not really 'fixed'.
Title: ATI Graphic Card Issue
Post by: zsbzsb on March 14, 2012, 09:31:26 pm
Quote from: "ferretallica"
Quote from: "OniLink10"
Quote from: "Systemator"
so any progress on that ???
It's been fixed for over a month now.


Not for me. Still have the same problem. None of my SFML projects run any more, all hang on the first SFML graphics call.

The 10.4 driver DLL work-around is OK but it's not really 'fixed'.

You just bumped a thread that is almost a year old. :shock:

Anyways, this has been fixed in the SFML 2.0 repo for a long time. Try downloading and compiling the latest version. 8)
Title: ATI Graphic Card Issue
Post by: ferretallica on March 15, 2012, 05:07:43 am
I'm using the current source from GitHub, so unless that's not the latest...

Maybe it's not the same issue then, but the symptoms are the same. I don't get any errors/exceptions, I just get the process hanging on any SFML graphics call. Issue is fixed using DLL from 10.4 drivers in the bin directory.