Skip to content
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

VHBB latest git compiled #103

Open
Shadow322 opened this issue Apr 8, 2021 · 2 comments
Open

VHBB latest git compiled #103

Shadow322 opened this issue Apr 8, 2021 · 2 comments

Comments

@Shadow322
Copy link

I have latest compiled yes the search is fixed now that works but now downloading crashs LOL

@robsdedude
Copy link
Collaborator

robsdedude commented May 25, 2021

Could you do me a favor and compile VHBB without optimizations?
For that, change https://github.com/devnoname120/vhbb/blob/master/CMakeLists.txt#L65 from

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17")

to

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17 -O0")

I found this helps greatly with stability. I dug really deep into this but could never find out why optimization breaks VHBB. According to core dumps, it seems the compiler produced invalid machine code sometimes. I have the suspicion that optimization is actually broken.

Please let me know whether this helps.

@Shadow322
Copy link
Author

Could you do me a favor and compile VHBB without optimizations?
For that, change https://github.com/devnoname120/vhbb/blob/master/CMakeLists.txt#L65 from

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17")

to

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17 -O0")

I found this helps greatly with stability. I dug really deep into this but could never find out why optimization breaks VHBB. According to core dumps, it seems the compiler produced invalid machine code sometimes. I have the suspicion that optimization is actually broken.

Please let me know whether this helps.

U sure downloading won't crash as I stated above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants