SFML community forums
Help => General => Topic started by: Sazabi02 on January 23, 2009, 06:43:39 am
-
Can you help me please. I'm having trouble with the SFML 1.4.
After going to 1.4 every time I close the Window I an error message saying
The instruction at "0x6973c180" referenced memory at "0x014E0654". The memory could not be "read".
Click on OK to terminate the program.
I tried it with a sample from the tutorials too. The "graphics-view.cpp" tutorial and the same thing happened.
Here's the error in the output Window.
'SFTest2.exe': Loaded 'E:\Dev\C++\V C++ (SFML)\SFTest2\Debug\SFTest2.exe', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\sfml-window-d.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\sfml-system-d.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\sfml-graphics-d.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcr90.dll', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\dinput.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\hid.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll'
'SFTest2.exe': Loaded 'C:\Program Files\McAfee\SiteAdvisor\sahook.dll'
'SFTest2.exe': Loaded 'C:\Program Files\RocketDock\RocketDock.dll', Binary was not built with debug information.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\psapi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nview.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ntmarta.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\samlib.dll'
'SFTest2.exe': Loaded 'C:\Program Files\FlashGet\fgmgr.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\wininet.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\normaliz.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\iertutil.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\msctf.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvoglnt.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\mcd32.dll'
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\mcd32.dll'
'SFTest2.exe': Loaded 'C:\Program Files\Common Files\Logitech\LVMVFM\LVPrcInj.dll'
The thread 'Win32 Thread' (0xae4) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xf5c) has exited with code 35389440 (0x21c0000).
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll', Binary was not built with debug information.
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwddi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll', Binary was not built with debug information.
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
The thread 'Win32 Thread' (0x398) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x580) has exited with code 0 (0x0).
First-chance exception at 0x6973c180 in SFTest2.exe: 0xC0000005: Access violation reading location 0x014e0654.
Unhandled exception at 0x6973c180 in SFTest2.exe: 0xC0000005: Access violation reading location 0x014e0654.
Can anyone tell me what I'm doing wrong?
-
OS? Compiler? Minimal example? :)
Have you tried to debug your application, yet?
-
Windows XP, MSVC++ 2008, and yes I did.
It stops somewhere in __crtExitFunction
-
Sorry, no idea from my side, since I'm not using MSVC/Windows.
-
Thanks anyway. Uhmmm... can anyone else help me?
It was _crtExitProcess not __crtExitFunction btw, sorry.
-
Ah btw, have you tried to build in release mode?
-
Yeah I did.
BTW, Here's where the problem shows up.
(http://i53.photobucket.com/albums/g59/Sazabi02/callstack.jpg)[/img]
-
Ok, I tried my program on someone else's pc and it didn't have the errors. The problem might be just with my pc I guess.
-
Yep, could be true. When the official SFML tutorials don't work perfectly, there's mostly a problem on the user-side. But it would still be helpful to know what it was when you solve it, so that others who may experience the same problems get the right direction.
-
I still haven't solved it.
I did a google search on the dlls in the call stack and it says they're my nVidia drivers. This didn't happen with SFML 1.3 so I'm assuming that 1.4 probably has some problems with nVidia drivers. Anyone else have the same problem?
I tried updating my drivers too. Didn't work though. The only difference is that the memory address that conatined the error was moved to a different one.
-
Well I do have the same problem. Did you solve it by now?
Win Xp 32 bit Sp 3 (also an Nvidia card)
with Visual Studio 2008 and SFML 1.4
The problem only appears, when i tried to use a sf::string. The problem occurs after i set the text of the string.
If the string is only created but with no text, there is no error.
So Far...
Laguna
-
Ohhh... Yeah. I tried it and you're right. The problem is associated with sf::String. Though even if I don't put text the error comes up and it only disappears when there's no text in my program.
-
It's interesting, that the problem occurs, even if the sf:string object has been deleted long ago before the termination of the program.
Any Guesses? Just using no strings will cause no error, but this is surely not the way intended.
So Far...
Laguna
-
I think this error may occur if you use a string with the default sfml font. Try to use another font, say Arial.ttf.
sf::Font font;
font.LoadFromFile("Arial.ttf", 32));
sf::String text;
text.SetFont("Arial.ttf");
text.SetText("My String");
In this case the font file Arial.ttf must be in the same folder with your executable file.
-
Hi,
No this didn't fix it. The problem does not seem to be associated with sf::font oder the default font.
It makes no difference wether the text is set via sf::string.SetText() or via the constructor of sf::string.
So Far...
Laguna
-
I got this error too. It traces back to SFML, the part where the default font is deleted.
When I use the static libraries, I got no more problem.
-
I think this error may occur if you use a string with the default sfml font. Try to use another font, say Arial.ttf.
sf::Font font;
font.LoadFromFile("Arial.ttf", 32));
sf::String text;
text.SetFont("Arial.ttf");
text.SetText("My String");
In this case the font file Arial.ttf must be in the same folder with your executable file.
If I use that code the error still pops up. But when I modify it like this:
sf::Font font;
font.LoadFromFile("Arial.ttf", 32));
sf::String text("", font);
text.SetText("My String");
the error goes away. In a way, you're right. The SFML default font is the cause of the problem. So if you never ever call it, no errors come up.
EDIT: Are there any fixes for this yet?
-
Nop. Probably in SFML 2.0.
http://www.sfml-dev.org/todo/index.php?do=details&task_id=53
-
Oh ok. That's nice to know. Thanks!
-
For me, using the static libaries fixed the problem.
Great! :-)
But I'll remember the point with the default font.
thx for this great support! :D
So Far...
Laguna