ARCC-RACE / deepracer-for-dummies

a quick way to get up and running with local deepracer training environment
66 stars 28 forks source link

Segmentation fault (core dumped) #30

Open TheGeekiestOne opened 5 years ago

TheGeekiestOne commented 5 years ago

Receiving the following error when loading uo the GUI (To note, this was working without the GUI)

redrum69@Linux:~/github/deepracer-for-dummies/build-gui-Desktop-Release$ ./gui libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Segmentation fault (core dumped)

The GUI starts up, but then it crashes, it prompts for password and crasshes,

The Logs: Memory manager failed to start :( image

Michael-Equi commented 5 years ago

Can you make sure that you have pulled the most recent version?

ghost commented 5 years ago

Hello TheGeekiestOne and Michael. I solved this problem building the source file from gui folder.. and after that the gui worked and did not close with the core dumped error. To build the project on the gui folder you have to put in the comand line qmake gui.pro make

After that you open ./gui

I hope this work for you

Michael-Equi commented 5 years ago

Thanks, @collado1992 I will add that to the Medium article and README

rafaellucas3 commented 5 years ago

I am trying to run the qmake gui.pro and make command on the gui folder but I am getting the following error:

g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o gui main.o mainwindow.o moc_mainwindow.o   -lQt5WebKitWidgets -lQt5Widgets -lQt5WebKit -lQt5Gui -lQt5Network -lQt5Xml -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile:149: recipe for target 'gui' failed
make: *** [gui] Error 1

Don't know what to do anymore, lol.

caelinsutch commented 5 years ago

Have you tried repulling?

On Sat, Aug 10, 2019 at 12:33 PM Rafael Lucas Costa Souza < notifications@github.com> wrote:

I am trying to run the qmake gui.pro and make command on the gui folder but I am getting the following error:

g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o gui main.o mainwindow.o moc_mainwindow.o -lQt5WebKitWidgets -lQt5Widgets -lQt5WebKit -lQt5Gui -lQt5Network -lQt5Xml -lQt5Core -lGL -lpthread /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status Makefile:149: recipe for target 'gui' failed make: *** [gui] Error 1

and I

Don't know what to do anymore, lol.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/ARCC-RACE/deepracer-for-dummies/issues/30?email_source=notifications&email_token=AH3WUVIE2YODDH7ERDY5O5DQD4JYTA5CNFSM4IKMKTP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ATUQY#issuecomment-520174147, or mute the thread https://github.com/notifications/unsubscribe-auth/AH3WUVLYWPTSUJMXLJ6AW2LQD4JYTANCNFSM4IKMKTPQ .

-- Thanks,

Caelin

rafaellucas3 commented 5 years ago

Just did a repull and tried to qmake and make commands, no sucess. I wonder if there were something wrong with the dependencies installation.

Michael-Equi commented 5 years ago

Have you tried this https://stackoverflow.com/questions/18406369/qt-cant-find-lgl-error

rafaellucas3 commented 5 years ago

I did it @Michael-Equi. I could compile the code after deleting the "-lGP" from the "gui/Makefile" line 41. I now have some different outputs. (base) rafael@RafaDeskLinux:~/github/deepracer-for-dummies/gui$ sudo ./gui QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Segmentation fault Before the gui crashes it throws the following error on the log section: log analysis started with an ERROR It does it in the pre compiled gui executer and on the version that I compiled.

rafaellucas3 commented 5 years ago

I could fix the "-lGL" compiling error by following: http://techtidings.blogspot.com/2012/01/problem-with-libglso-on-64-bit-ubuntu.html My gui is shutting off after throwing "log analysis started with an ERROR" on the log section now.

sushil-bharati commented 5 years ago

Hit init and then refresh before training. Do not run sudo ./gui with sudo privileges. Simply run ./gui.

Michael-Equi commented 5 years ago

@rafaellucas3 Try repulling. I just pushed an update that should stop the GUI from crashing if the log analysis tool fails to load.

sushil-bharati commented 5 years ago

Still throws seg fault when trying to resume the training!

Michael-Equi commented 5 years ago

@sushil-bharati Are you still having problems with segmentation fault?

sushil-bharati commented 5 years ago

No.

vsay01 commented 4 years ago

When i run make in gui folder after qmake I got following error:

es/gui$ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -I. -o main.o main.cpp
In file included from main.cpp:1:0:
mainwindow.h:4:10: fatal error: QMainWindow: No such file or directory
 #include <QMainWindow>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:212: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Any idea why ?