vhbb icon indicating copy to clipboard operation
vhbb copied to clipboard

VHBB latest git compiled

Open Shadow322 opened this issue 4 years ago • 2 comments

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

Shadow322 avatar Apr 08 '21 08:04 Shadow322

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.

robsdedude avatar May 25 '21 06:05 robsdedude

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?

Shadow322 avatar May 25 '21 07:05 Shadow322