-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on loading skybox texture asset #394
Comments
How was this texture asset created? The texture is a cubemap with 4 array slices which is strange. |
Never mind that, was looking at the wrong place in the debugger. |
I didn't have an actual skybox. So I used the option to import a single texture as all the skybox faces. |
I cannot reproduce this issue, tried with OpenGL on Windows and Ubuntu, using the Skeletal Example and the provided cubemap asset, both debug and release build configurations. It could be something hardware specific. What is your GPU? |
My GPU is GTX 1080 Ti |
That's the same as mine. Since I cannot reproduce the only option is you to debug it on your end. Try breaking with the debugger when it crashes and see if you can deduce in more detail which part failed and if any of the input values look weird. |
To me everything just looks initialized, and with possible sizes:
Edit: except it looks like the data buffer size (67108864) is different than the texture's size property (16777216)... |
Is your app running on an older version of bsf, but the texture was imported using a newer version? That would explain what I'm seeing:
Meaning of |
That is likely correct reasoning. I'm using the default version of the samples, with the version of bsf it's set to use. |
I have not gotten this crash after I did this change: https://discourse.bsframework.io/t/resource-caching-doesnt-work/499/10?u=hhyyrylainen |
I'll close it for now, if you get the issue again feel free to re-open. |
I think I got this again (I cut the on exit handler code):
That's the core thread. The main thread is waiting for a frame to complete. Some analysis:
Let me know if there's more info you'd like me to dig up from the core file. Edit: apparently I can't reopen this issue |
https://discourse.bsframework.io/t/random-skybox-texture-loading-crash/500?u=hhyyrylainen
Applying this diff to examples:
And putting this: https://boostslair.com/files/temp/thrive/Thrive_ocean_skybox.asset asset in:
bsfExamples/Data/Materials
Results in this crash:
This is on Linux with OpenGL and Vulkan (there's a slightly different crash there, but I don't have a callstack on hand for it right now).
There might be an additional crash lurking somewhere, but I can't try to locate it (see the thread I linked) because this crash always happens.
The text was updated successfully, but these errors were encountered: