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

Author Topic: Trying to inspect Textures stalls Visual Studio  (Read 968 times)

0 Members and 2 Guests are viewing this topic.

Reicha7

  • Newbie
  • *
  • Posts: 8
    • View Profile
Trying to inspect Textures stalls Visual Studio
« on: March 18, 2025, 12:36:27 am »
Now I will preface by saying this could be a VS issue or something with my PC although I'd hope my processor has the power to handle it but I've been through all the typical steps so wanted to see if anyone has had this issue with SFML before.

I have an SFML 3.0 project and I built the libs myself using cmake. I couldn't get it to create the dynamic libraries so have linked it statically but am not sure that's even the issue.

It all compiles and runs fine but I wanted to check to make sure some texture swapping was working properly and every time I tried to inspect the sf::texture (as either a local, member variable, ptr etc.) it would cause Visual Studio to say it was busy and then usually abort the execution complaining that "The debugger's worker process (msvsmon.exe) unexpectedly exited"

As a sanity check I made a quick new empty project and tested it with 2.6 dynamically linked, 2.6 statically linked (both using the pre-built download from SFML resources), and 3.0 that I built myself. With this empty project that just creates a texture and renders an empty window I could inspect the 2.6 texture but not on 3.0; same issue as before.

Could this be an issue with how I've built 3.0 myself or is this some other known issue people have come across before with 3.0? It's not like I can't work at all like this but it's very odd and I've never seen something like this before.

Cheers

Reicha7

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Trying to inspect Textures stalls Visual Studio
« Reply #1 on: March 18, 2025, 12:43:48 am »
Of course as soon as I download prebuilt 3.0 it works fine so clearly I messed up something when trying to follow the cmake instructions...

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
    • development blog
    • Email
Re: Trying to inspect Textures stalls Visual Studio
« Reply #2 on: March 18, 2025, 08:33:19 am »
Never heard of such an issue, so maybe it's more some temporary VS problem?

I couldn't get it to create the dynamic libraries so have linked it statically but am not sure that's even the issue.
You'd need to set BUILD_SHARED_LIBS to ON
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Reicha7

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Trying to inspect Textures stalls Visual Studio
« Reply #3 on: March 18, 2025, 11:06:26 am »
Never heard of such an issue, so maybe it's more some temporary VS problem?

Yeah it's not something I've ever seen before either and it only happened when I was using my own built SFML 3.0 static libs.

I will see if I can get the dynamic libs to build again.

Reicha7

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Trying to inspect Textures stalls Visual Studio
« Reply #4 on: March 18, 2025, 11:55:10 pm »
Yeah I tried rebuilding and even got latest to see if maybe there was one version. I used these cmake settings (attached), launched in VS, hit rebuild, and then moved the built lib files into my project location but same issue.

It does seem to be intermittent actually as I had it stall on prebuilt as well so maybe it is my PC. Prebuilt does seem to have it happen less often though

I will just use prebuilt for now as there's nothing I needed from compiling from source other than the chance to learn a bit :)

Reicha7

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Trying to inspect Textures stalls Visual Studio
« Reply #5 on: March 19, 2025, 01:00:30 am »
Oh it also turns out that somehow I had set up my project on my HDD rather than my SSD. Switching over to SSD seems to have helped too!

That's probably the real issue at play here

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
    • development blog
    • Email
Re: Trying to inspect Textures stalls Visual Studio
« Reply #6 on: March 19, 2025, 08:41:13 am »
Maybe run SMART checks on your HDD. Such odd behavior shouldn't happen and might indicate an imminent failure of the drive.
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/