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

Author Topic: Random crashes related to RenderTexture with the new SFML 2.5.1  (Read 5106 times)

0 Members and 2 Guests are viewing this topic.

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Random crashes related to RenderTexture with the new SFML 2.5.1
« on: October 24, 2018, 09:48:13 pm »
No crash at all with 2.4.2, super stable.

Laptop with Intel GPU CORE I5-4200U
Latest drivers.

The crash happens randomly, and all the time in the render texture code, not on SFML, but inside the driver code.

The last one was in the Draw call, and it was related to context.

I was waiting for this version for a long time, for the enhanced Opengl render performance, which I witnessed in my game. Super fast now.

But the crashes are here.

Another issue is with some white lines under and over text.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #1 on: October 24, 2018, 11:48:57 pm »
What's your intel driver version?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #2 on: October 25, 2018, 01:19:10 am »
What's your intel driver version?
It's: version 10.18.14.4414
date: 23/03/2016

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #3 on: October 25, 2018, 07:55:59 am »
Try the latest driver: Version: 15.40.41.5058 (Latest) Date: 9/18/2018
« Last Edit: October 25, 2018, 02:22:33 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #4 on: October 25, 2018, 11:11:32 am »
Try the latest driver: Version:? 15.40.41.5058? (Latest)? Date: 9/18/2018
i thought I had the latest (using the auto update on windows, and also the Dell pc support tool), but no.
Thanks a lot for the info, all these processor types, generations etc...  it's very confusing.

I'll try it tonight.

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #5 on: October 25, 2018, 10:07:16 pm »
Unfortunately, I can't install the driver.

Even with manual installation, it throws an error:
"the driver selected for this device does not support this version of windows"

I think the issue is that I have a Dell laptop, and they may have put in some checks to refuse any driver not certified by them.

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #6 on: October 26, 2018, 11:28:01 am »
Can this still be fixed?
By working around this driver issue?

A lot of people might be using laptops which are difficult to update, and it would be great if they can also run SFML games.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #7 on: October 26, 2018, 03:28:35 pm »
Could you attach a debugger and provide a bit more information (stack trace, console output, etc)? :)

With "it crashes" we can't really check what the driver is doing wrong.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #8 on: October 27, 2018, 12:20:37 am »
Could you attach a debugger and provide a bit more information (stack trace, console output, etc)? :)

With "it crashes" we can't really check what the driver is doing wrong.

    ig75icd32.dll!02cf7ef6()   Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for ig75icd32.dll]   Unknown
    ig75icd32.dll!02d8d3a4()   Unknown
    ig75icd32.dll!02d8c3f7()   Unknown
    ig75icd32.dll!02d90403()   Unknown
    ig75icd32.dll!02d860d0()   Unknown
    ig75icd32.dll!02f2e5e2()   Unknown
>   Game.exe!BlurEffect::DownSample(const IRenderTexture & xInput, IRenderTexture & xOutput) Line 174   C++
    Game.exe!BlurEffect::Apply(IRenderTarget & xRenderTexture, IRenderTexture & xSourceTexture, float fBlurRatioMultiplier) Line 64   C++
    Game.exe!BloomEffect::Apply(IRenderTarget & xRenderTexture) Line 57   C++


Output:
Exception thrown at 0x02CF7EF6 (ig75icd32.dll) in Game.exe: 0xC0000005: Access violation writing location 0x00000008.


In the stack, it doesn't show the SFML stack for some reason, but here is the function that was called just after DownSample:
m_xShader.setUniform(xParamName, sf::Vector2f(fParamValue.x, fParamValue.y));

I also noticed it didn't crash when in windowed mode.
Also looks like it doesn't crash if I am disabling shaders.

Also just now:

    ig75icd32.dll!01d77ef6()   Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for ig75icd32.dll]   Unknown
    ig75icd32.dll!01e0d3a4()   Unknown
    ig75icd32.dll!01e0c3f7()   Unknown
    ig75icd32.dll!01e10403()   Unknown
    ig75icd32.dll!01e060d0()   Unknown
    ig75icd32.dll!01fae5e2()   Unknown
    Game.exe!sf::RenderTarget::draw(const sf::Drawable & drawable, const sf::RenderStates & states) Line 241   C++

output:
Exception thrown at 0x01D77EF6 (ig75icd32.dll) in Game.exe: 0xC0000005: Access violation writing location 0x00000008.

Also shader related. The const sf::RenderStates & states had a shader referenced.
« Last Edit: October 27, 2018, 01:37:04 am by sorum40 »

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Random crashes related to RenderTexture with the new SFML 2.5.1
« Reply #9 on: October 30, 2018, 05:25:48 pm »
Hi;

Any update on this issue?
I can try to make a minimal source file to test it.

 

anything