You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue: sprites may not be displayed depending on how they are used. More precisely, they are not displayed when the image data is loaded from another thread and some time elapses between the sf::Sprite::Draw() call and sf::Window::Display().
This bug has been tested on an Intel MacBook with an Intel GMA X3100 graphics card, on both Windows, Linux and Mac OS X. The bug happens on Window and Linux only. It's been tested with the latest sources from the Git repository, in both Release and Debug mode.
0 0x0097e0ca in ?? () from /usr/lib/dri/i965_dri.so
1 0x0097649c in ?? () from /usr/lib/dri/i965_dri.so
2 0x008a15c7 in ?? () from /usr/lib/dri/i965_dri.so
3 0x008a19e6 in ?? () from /usr/lib/dri/i965_dri.so
4 0x0096bb2b in ?? () from /usr/lib/dri/i965_dri.so
5 0x00160844 in sf::Image::UpdatePixels(unsigned char const*) () from /usr/local/lib/libsfml-graphics.so.2.0
6 0x0804929d in thread_func () at sf.cpp:14
7 0x0804991e in sf::priv::ThreadFunctor<void (*)()>::Run (this=0x85a9f28) at /usr/local/include/SFML/System/Thread.inl:39
8 0x00134b44 in sf::Thread::Run() () from /usr/local/lib/libsfml-system.so.2.0
9 0x001350d1 in sf::priv::ThreadImpl::EntryPoint(void*) () from /usr/local/lib/libsfml-system.so.2.0
10 0x00475cc9 in start_thread () from /lib/libpthread.so.0
11 0x003e369e in clone () from /lib/libc.so.6
with sleeping: runs fine but crashes at exit with:
../../intel/intel_bufmgr_gem.c:1077: Error setting domain 7: Bad file descriptor
DRM_IOCTL_GEM_CLOSE 6 failed (region): Bad file descriptor
The text was updated successfully, but these errors were encountered:
I've got stuck with this issue on my laptop with amd A6 cpu + amd integrated graphics. The same code works fine on my desktop machine (amd + geforce).
My environment is: MSVC 10.0 + sfml 2.0
The main criteria is: load image from other thread and wait (sleep) a little before calling draw of render window.
Please, contact me if you need any help in reproducing this bug.
Edit:
This issue appears only for first draw of sprite. If sprite already drawed before (without sleep) - you can draw it anytime after that and all works fine.
This a sum up of the original discussion created here : http://www.sfml-dev.org/forum-fr/viewtopic.php?t=3455 (french)
The issue: sprites may not be displayed depending on how they are used. More precisely, they are not displayed when the image data is loaded from another thread and some time elapses between the sf::Sprite::Draw() call and sf::Window::Display().
This bug has been tested on an Intel MacBook with an Intel GMA X3100 graphics card, on both Windows, Linux and Mac OS X. The bug happens on Window and Linux only. It's been tested with the latest sources from the Git repository, in both Release and Debug mode.
Here are the two most important sample codes:
http://www.sfml-dev.org/forum-fr/viewtopic.php?p=33557#33557
http://www.sfml-dev.org/forum-fr/viewtopic.php?p=33563#33563
On Windows, the image won't show if:
On Linux, it's little bit more.. rough, it'll either show correctly or crash.
With Create/Load:
a.out: ../../intel/intel_bufmgr_gem.c:344: drm_intel_gem_bo_reference: Assertion `((&bo_gem->refcount)->atomic) > 0' failed.
With Update..():
0 0x0097e0ca in ?? () from /usr/lib/dri/i965_dri.so
1 0x0097649c in ?? () from /usr/lib/dri/i965_dri.so
2 0x008a15c7 in ?? () from /usr/lib/dri/i965_dri.so
3 0x008a19e6 in ?? () from /usr/lib/dri/i965_dri.so
4 0x0096bb2b in ?? () from /usr/lib/dri/i965_dri.so
5 0x00160844 in sf::Image::UpdatePixels(unsigned char const*) () from /usr/local/lib/libsfml-graphics.so.2.0
6 0x0804929d in thread_func () at sf.cpp:14
7 0x0804991e in sf::priv::ThreadFunctor<void (*)()>::Run (this=0x85a9f28) at /usr/local/include/SFML/System/Thread.inl:39
8 0x00134b44 in sf::Thread::Run() () from /usr/local/lib/libsfml-system.so.2.0
9 0x001350d1 in sf::priv::ThreadImpl::EntryPoint(void*) () from /usr/local/lib/libsfml-system.so.2.0
10 0x00475cc9 in start_thread () from /lib/libpthread.so.0
11 0x003e369e in clone () from /lib/libc.so.6
../../intel/intel_bufmgr_gem.c:1077: Error setting domain 7: Bad file descriptor
DRM_IOCTL_GEM_CLOSE 6 failed (region): Bad file descriptor
The text was updated successfully, but these errors were encountered: