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.


Topics - j_oxford

Pages: [1]
1
General / [SOLVED] Window Crashes After ~10 Sec / Console Continues to Run
« on: September 20, 2019, 02:56:05 am »
Want to preface this by saying that I just started learning SFML and C++ this week, so apologies if I'm missing something obvious! Also, sorry for the long post, but I've been going in circles on this issues nonstop. Normally I am able to figure out the issue, but I've combed through tutorials, docs, and dozens of forum posts to no avail.

The issue is that I have made a racing game that runs perfectly fine on my computer (it compiles, builds, and the resulting .exe runs just fine on my laptop and my desktop). I wanted my friend to try it, so I uploaded everything to Git. He downloaded it, and the game runs for roughly 10 seconds, then it freezes and eventually crashes. I left the console up so that he could see it, and he told me that after it crashes the console still logs the frame-counter that I put in. However, when he double clicks on the console window, it stops.

I can't replicate the issue, but I have managed to create something similar by clicking outside of the window (which freezes the window, but not the console -- i.e. the loops are still running, but the rendering has stopped).

Here's what I'm using:
- Visual Studio 19
- SFML (2.5.1 32 Bit for Visual C++ 17) -- Not sure if the issue is here seeing as I'm on VS19

Here's what I've checked so far:
- All of my linkers/libs/etc are good, and I've triple checked them. It builds just fine.
- He has all of the .dll's and files he needs to run the program (he's streamed his desktop so I could see and verify)
- His openGL is up to date
- We're on different types of Windows 10 (He's on pro, I'm on home). However, I had another friend using win 10 home try it and it broke as well.
- It runs on my laptop (win 10 home) and my desktop (win 7 home) with zero issues other than the crash when I click out of the game window.
- Nothing comes out when I run the files in debug inside VS -- no errors.
- It's not screen resolution related as far as I can tell as we have the same screen size
- I've checked more things, I know, but I can't remember them all.
- EDIT: I have also rebuilt and had him test multiple times

tl;dr
- Friend downloads game, and extracts the zip
- Friend clicks on .exe to run the game
- Game opens; all images load, everything displays as it should; controls work; player moves
-After ~10 seconds, the window showing the game 'stops working', but the console continues to spit out everything as normal, in the correct order (I've placed debug stuff everywhere), it keeps running but the rendering stops.
- Friend double clicks on console and the console stops. ESC input still closes the program.
- I open the game, runs and plays just fine, never crashes or freezes. Only when I click to another program does it crash (but only the window crashes -- console continues spitting out cout information that pops up when certain functions run)

I know I should post code, but there's not anything pointing to where I should be looking and the game is running fine on my end. So as far as issues with the game itself, nothing is 'failing'. So I don't really know what code to post. At this point, it seems like some sort of rendering issue, but I'm not entirely certain  :-\

Any help or pointers in the correct direction would be helpful. Let me know if there's something in my code you want to see.

Here's the GitHub if downloading the game and seeing it yourself helps:
https://github.com/justin-oxford/Formula-Racing

Pages: [1]
anything