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

Author Topic: Bug with dynamic libs  (Read 1825 times)

0 Members and 1 Guest are viewing this topic.

sglorz

  • Newbie
  • *
  • Posts: 7
    • View Profile
Bug with dynamic libs
« on: April 08, 2011, 10:09:01 pm »
Hello,

I'm using Code::Blocks on Win7 64bits.

When I build my prog with the DLL and when I do this:

sf::Text text(title, sf::Font::GetDefaultFont(), 12);
text.GetRect().Width

I have this:
Program received signal SIGSEGV, Segmentation fault.
In atioglxx!DrvGetProcAddress () (C:\Windows\SysWOW64\atioglxx.dll)

The renderer is a wxControl and a sf::RenderWindow

There is no problem with the same code and the static libraries.

Edit: I'm using SMFL 2 last master GIT and the SIGSEGV appears when application is closing.

sglorz

  • Newbie
  • *
  • Posts: 7
    • View Profile
Bug with dynamic libs
« Reply #1 on: April 09, 2011, 10:17:58 am »
Execution stack at application closure:

At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Graphics\RenderWindow.cpp:57
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Graphics\RenderWindow.cpp:60
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Graphics\RenderTarget.cpp:50
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Graphics\RenderTarget.cpp:53
At D:/data/Projects/LaFabrique/libext/work/SFML/include/SFML/Graphics/Renderer.hpp:49
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:72
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:75
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:78
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:80
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:86
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:88
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:156
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:159
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:160
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:163
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:166
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:167
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:171
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:173
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\Window.cpp:89
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:72
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:75
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:78
At D:\data\Projects\LaFabrique\libext\work\SFML\src\SFML\Window\GlResource.cpp:80
In wxWindowBase::Destroy () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxAuiNotebook::DeletePage () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxAuiNotebook::~wxAuiNotebook () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxWindowBase::Destroy () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxWindowBase::DestroyChildren () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxWindow::~wxWindow () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxWindowBase::Destroy () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxWindowBase::DestroyChildren () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxWindow::~wxWindow () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxTopLevelWindowBase::~wxTopLevelWindowBase () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxTopLevelWindowMSW::~wxTopLevelWindowMSW () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxFrameBase::~wxFrameBase () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxFrame::~wxFrame () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfframe.cpp:269
In wxAppConsoleBase::DeletePendingObjects () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In wxEventLoopManual::ProcessEvents () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In wxGUIEventLoop::Dispatch () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In wxEventLoopManual::Run () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In wxAppConsoleBase::MainLoop () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In wxEntryReal () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In wxEntry () (D:\data\Projects\LaFabrique\libext\wxWidgets\lib\gcc_dll_unicode\wxmsw291u_gcc_custom.dll)
At D:\data\Projects\LaFabrique\GUI\src\lfapp.cpp:15
In main () ()
In __mingw_CRTStartup () ()
Program received signal SIGSEGV, Segmentation fault.
In atioglxx!DrvGetProcAddress () (C:\Windows\SysWOW64\atioglxx.dll)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bug with dynamic libs
« Reply #2 on: April 09, 2011, 06:03:51 pm »
It's a known bug. Until it is fixed, avoid using the default font.
Laurent Gomila - SFML developer

sglorz

  • Newbie
  • *
  • Posts: 7
    • View Profile
Bug with dynamic libs
« Reply #3 on: April 09, 2011, 09:22:10 pm »
Ok, thank you