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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - miki151

Pages: [1] 2
1
Window / Re: JoystickImpl::isConnected crash
« on: May 08, 2016, 01:51:54 pm »
That was what I thought, if this bug pops out again. Can I safely remove the call to processJoystickEvents()?

2
Window / Re: JoystickImpl::isConnected crash
« on: May 08, 2016, 06:26:17 am »
I have no idea, it's an automatic crash report.

What's the best way to compile SFML without joystick support?

3
Window / Re: JoystickImpl::isConnected crash
« on: May 06, 2016, 12:05:54 pm »
Sorry, I forgot to add that I'm using SFML 2.3.2.

4
Window / JoystickImpl::isConnected crash
« on: May 06, 2016, 07:47:12 am »
This is from a minidump from a remote machine. I can send in the minidump and symbols, if needed.

Crashing line:
        cache.connected = joyGetPosEx(JOYSTICKID1 + index, &joyInfo) == JOYERR_NOERROR;

index is 0

Stack trace:
    dinput.dll!CDIDev_Acquire()   Unknown
    WINMMBASE.dll!joyGetPosEx()   Unknown
   sfml-window-2.dll!sf::priv::JoystickImpl::isConnected(unsigned int index=0) Line 191   C++
    sfml-window-2.dll!sf::priv::JoystickManager::update() Line 88   C++
    sfml-window-2.dll!sf::priv::WindowImpl::processJoystickEvents() Line 164   C++
    sfml-window-2.dll!sf::priv::WindowImpl::popEvent(sf::Event & event={...}, bool block) Line 119   C++
    sfml-window-2.dll!sf::Window::pollEvent(sf::Event & event={...}) Line 186   C++

5
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 02:03:21 pm »
That was the key problem  :)

6
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 01:20:04 pm »
Installed it, still no luck. Are the pdb files supposed to be generated for release build or perhaps only for debug?

7
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 11:10:31 am »
I compiled SFML from master, I saw that the option to generate PDB was on by default, but I can't find the PDB files anywhere in the build directory...

8
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 10:41:56 am »
And you actually replaced the newly compiled SFML DLLs?

Yeah, I double checked it. Maybe some other compiler flags need to be included to have the symbols in dlls?

Quote
If you use the master branch from GitHub, it's as easy as ticking a CMake option when building SFML.

Sounds nice. Is the master branch ok in terms of stability? I'd like to use this setup for production.

9
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 10:21:41 am »
I added the /Z7 flag to release flags, but VS doesn't see the symbols for the dll file. Maybe I would have better luck with generating a pdb file along the dll? Is it easy to do that?

Quote
Binary was not built with debug information.

10
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 09:00:20 am »
Ok, thanks for the clarification. Is it ok to add /Z7 in release flags (CMAKE_CXX_FLAGS) or will that break something? I'd like to get proper stacktraces of SFML code in the production build of my game.

11
Window / Re: RenderWindow::create freezes on Windows 10
« on: April 18, 2016, 08:23:59 am »
How do I add /Zi to the compiler command line via CMake?

Nevermind, I found the "Advanced" toggle in CMake-GUI. I noticed that /Zi is included by default in the debug build. Does that mean that the debug build in the binary release of SFML for Visual Studio is built with different flags than the default ones in the source code release?

12
Window / Re: AW: RenderWindow::create freezes on Windows 10
« on: April 12, 2016, 03:09:27 pm »
What's his monitor resolution and what's the game's window resolution?
I use sf::VideoMode::getDesktopMode(), so I suppose the window has the same resolution as the desktop?

Quote
If the window resolution is larger than the screen resolution, then the window won't show. Not sure if that is really the problem here though.
I know that on Windows the window is always slightly too big (it goes under task bar), maybe on Windows 10 it causes the call to hang. But I think that more users would report the problem if it was this trivial.

Quote
If you want to load debug symbols, you need to rebuild SFML with that option.
I sent him a debug build that loads the sfml-d dlls, will that get me a full stacktrace?

13
Window / RenderWindow::create freezes on Windows 10
« on: April 12, 2016, 01:56:31 pm »
A user is reporting that my game doesn't start, it just freezes without opening a window. I got a minidump file from him, the stacktrace is as follows:

   sfml-system-2.dll!587d59c0()   Unknown
    sfml-system-2.dll!587d59cc()   Unknown
    sfml-system-2.dll!587d1096()   Unknown
    sfml-window-2.dll!0f099fd8()   Unknown
    sfml-window-2.dll!0f09311b()   Unknown
    sfml-window-2.dll!0f0950f4()   Unknown
    sfml-window-2.dll!0f09abce()   Unknown
    sfml-window-2.dll!0f095604()   Unknown
    sfml-window-2.dll!0f0949a8()   Unknown
    keeper.exe!Renderer::initialize() Line 268   C++


The last line is in my code, as follows (display is a RenderWindow).

display.create(sf::VideoMode::getDesktopMode(), "KeeperRL");

The method is called in an extra thread, while some stuff is done in the main thread first (RenderWindow constructor, Font::loadFromFile), could this cause any trouble?

EDIT: the problem persists even when the game is run in a single thread.

Is there any way to load the SFML symbols and see the whole stacktrace?

Note that this is a pretty uncommon bug, I couldn't reproduce it on many PCs, and the game has worked for lots of players for years. On that user's particular machine, we've tried a Visual Studio 14 build with the most recent SFML version, as well as a Mingw-w64 build with a slightly older verison of SFML.

The user's spec:
Quote
Windows 10
i7-4930K
GTX 970

14
Graphics / Re: Basic rendering crashing
« on: April 16, 2015, 05:10:08 pm »
It's most likely fixed in the master branch. Rebuild SFML and relink your application.

How stable is the master branch? This goes out to thousands of users, so I don't want to gamble with old vs new bugs.

Provide us with that information, and we'll tell you whether it is a problem with SFML, or your users' systems.

I will, thanks.

15
Graphics / Re: Basic rendering crashing
« on: April 16, 2015, 02:32:16 pm »
It seems I'm getting similar crashes. They come in crash reports from users, so I can't reproduce it or check with other SFML versions than 2.2.

Here's the stacktrace. It also looks very similar to this one: https://github.com/SFML/SFML/issues/618

Quote
#0  0x00000000 in ?? ()
#1  0x66998d6e in sf::RenderTarget::applyBlendMode(sf::BlendMode const&) () from C:\Program Files (x86)\Steam\steamapps\common\KeeperRL\sfml-graphics-2.dll
#2  0x66998f0d in sf::RenderTarget::resetGLStates() () from C:\Program Files (x86)\Steam\steamapps\common\KeeperRL\sfml-graphics-2.dll
#3  0x66999297 in sf::RenderTarget::draw(sf::Vertex const*, unsigned int, sf::PrimitiveType, sf::RenderStates const&) () from C:\Program Files (x86)\Steam\steamapps\common\KeeperRL\sfml-graphics-2.dll
#4  0x669a2a68 in sf::VertexArray::draw(sf::RenderTarget&, sf::RenderStates) const () from C:\Program Files (x86)\Steam\steamapps\common\KeeperRL\sfml-graphics-2.dll
#5  0x669989bd in sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&) () from C:\Program Files (x86)\Steam\steamapps\common\KeeperRL\sfml-graphics-2.dll
#6  0x6699f8a6 in sf::Shape::draw(sf::RenderTarget&, sf::RenderStates) const () from C:\Program Files (x86)\Steam\steamapps\common\KeeperRL\sfml-graphics-2.dll
#7  0x669989bd in sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&) () from

Here's the code that crashes:
  RectangleShape r(Vector2f(t.getW(), t.getH()));
  r.setPosition(t.getPX(), t.getPY());
  r.setFillColor(color);
  if (outline) {
    r.setOutlineThickness(-2);
    r.setOutlineColor(*outline);
  }
  addRenderElem([this, r] { display->draw(r); });
 

Pages: [1] 2