-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Examples crash on startup on Ubuntu 22.04 #3274
Comments
I'm not getting that crash. Try changing line 575 in renderer_vk.cpp to:
|
This should fix, but since I couldn't reproduce it here, I would need you to verify it. |
Unfortunately, that didn't solve the problem. I did some more digging and here is what I found:
I still don't know what causes it but hopefully, it gives you some clues. Here's my output from running examplesDebug in gdb (the alloc statements at the top are from a poor mans's debugging attempt):
|
Grab latest. |
That's it, you fixed it. Both the examples and my app now start just fine. Thanks for the quick help!!! |
What's your GPU/driver? I want to see to reproduce it locally to understand what's going on. |
Well, this is going to shock you. My main development machine is a 2018 Mac Mini (x86 with 16 GB of memory and embedded Intel UHD Graphics 630 1536 MB). Initially, I was using OpenGL to have some sort of cross platform compatibility. When I moved away from OpenGL, I did not fully want to commit to Metal and this is how I found your library. As I’m fully retired, I have no commercial ambitions. If I can get things running in Metal on MacOS, in Vulkan on Linux and in Direct3D on Windows, I’ll have all the brain exercises I could ever want to keep me mentally healthy. So here is my typical workflow:
Obviously, the Virtual Machines aren’t speed devils specially given that they share a poor UHD Graphics 630 GPU. It does however work. My logic is that when I move to better (and dedicated) hardware, things can only improve. To prove that I’m certifiably insane, I’m using CMake as my build environment. Once I got that figured out, it works well and the script for BGFX is only 50 lines (excluding BIMG and BX). To answer the driver question, on Ubuntu 22.04, I get:
|
Describe the bug
After commit 2ad67a4, I can no longer start my application nor the examples on Ubuntu 22.04 using Vulkan. Both crash with a core dump caused by a "free(): invalid pointer" error. See console output and stack trace below. If I go back to the commit before 2ad67a4, everything starts up just fine.
To Reproduce
Expected behavior
Screenshots
Additional context
Last console output:
Backtrace from my application (but examples show the same)
The text was updated successfully, but these errors were encountered: