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

Author Topic: [Fixed] Crash with new version 2.5.0  (Read 1186 times)

0 Members and 1 Guest are viewing this topic.

Phounet

  • Newbie
  • *
  • Posts: 21
    • View Profile
[Fixed] Crash with new version 2.5.0
« on: May 10, 2018, 01:24:19 pm »
Dear All,

I just installed the new SFML 2.5.0 version (along with the related Mingw32 compiler), removed the "ljpeg" dependency in the "build options - linker settings" of my project, and encounter the following issue:

My project was perfectly working under 2.4.2 version. Under 2.5.0, it compiles, but the application immediatly crashes at start.

In case this would be relevant from a way or another, this project used "png" ressources and call the "setMouseCursorVisible()" method (even though I tried to comment these calls and nothing changed).

Besides, I tested my installation by creating a new project, using standard basic SFML code (e.g. the "green circle" code of the official SFML documentation), and everything worked well. I thus understand that the installations of the 2.5.0 version and the new Mingw compiler are correct.

Could you please indicate whether I missed something or share with me any idea of the reasons why my original project crashes at start with 2.5.0 version while it worked well under 2.4.2 version?

I thank you in advance.

Best regards,

Phounet

EDIT : In case this would help, here is the error message : "Process terminated with status -1073741819"
« Last Edit: May 10, 2018, 03:44:02 pm by Phounet »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Crash with new version 2.5.0
« Reply #1 on: May 10, 2018, 01:34:07 pm »
Use a debugger and get a callstack and provide some code.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Phounet

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Crash with new version 2.5.0
« Reply #2 on: May 10, 2018, 03:42:40 pm »
Well, I fixed the issue.

My code was missing an #include <functional> which was apparently not required in SFML 2.4.2 (sounds weird to me but ok). Instead of simply "building" the code, I "rebuilt" it (I am using CodeBlocks) and then the compiler detected the missing "include".

Everything is ok now.

Thank you anyway.

Best regards,

Phounet