kmkolasinski / AwesomeBump

AwesomeBump is a free program written using Qt library designed to generate normal, height, specular or ambient occlusion textures from a single image. Since the image processing is done in 99% on GPU the program runs very fast and all the parameters can be changed in real time. AB was made to be a new alternative to known gimp plugin called Insane Bump.
GNU General Public License v3.0
1.65k stars 179 forks source link

Manjaro Linux SegFault #161

Open andersmmg opened 4 years ago

andersmmg commented 4 years ago

I've tried both precompiled binaries and building it myself and with AUR, but all ended in a segmentation fault. Console output

kmkolasinski commented 4 years ago

Hi, did you try to build GL 330 version ? Maybe it is related to Mesa which you are using. You can compile AB with gl330 support by setting BUILD_WITH_OPENGL_330_SUPPORT variable in the compilation script, see: unixBuildScript.sh

ruudvring commented 4 years ago

Had the same output on Ubuntu 18.04.3 LTS, managed to compile and run after shuffling around some lines in mainwindow.cpp

mainwindow.diff.txt

glWidget is using stuff from dialog3dGeneralSettings which is initialized later, hence causing the segfault.

andersmmg commented 4 years ago

Yes, I did try that, and still had the same problem.

kmkolasinski commented 4 years ago

You mean, you've tried the @ruudvring solution ? Another approach would be to compile AB in debug mode and run the program. It should show you where exactly is the problem or which line causes this.

andersmmg commented 4 years ago

I meant I tried your solution, using GL 330. Somehow I didn't see the other comment. How would I compile it in debug mode? I must be looking in the wrong place, as I don't see any instructions

kmkolasinski commented 4 years ago

Ok, are you using QtCreator or provided script ?

If the former you just click one button in the GUI to build AB in debug mode: image My debug settings: image

If the latter you must modify unixBuildScript.sh script and add to QMAKE_CONFIG debug flags somewhere in the file.

QMAKE_CONFIG="CONFIG+=debug CONFIG+=qml_debug"
arun54321 commented 4 years ago

I've tried both precompiled binaries and building it myself and with AUR, but all ended in a segmentation fault. Console output

It's working fine on arch linux (AUR git build). The stable version doesn't open and it crashes the whole DE.