-
Notifications
You must be signed in to change notification settings - Fork 115
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
Error on Ubuntu 22 and Nvidia 4090 #95
Comments
I have encountered a similar error here. I am running with Ubuntu 20.04, NVIDIA GeForce RTX 3070 Ti Laptop GPU, driver 470, CUDA 10.1. I also included the output from GDB as the original error message was not very helpful. It seems like a CUDA / GPU driver issue. I have tried reinstalling them but no luck. Any help would be appreciated.
|
Ok I tried upgrade / install CUDA 11.4 to match my driver and hardware. I also rebuilt OpenCV (4.5) and DLib with the new CUDA then tried re-built bad slam with |
Today I tried building all dependencies again from the very beginning with OpenCV 4.5 and CUDA 11.4. Still the same error. I then tried using the docker image. If I build docker with architecture
If I do
I then tried using the Windows executable and it works perfectly with saved dataset and Realsense live input. However, getting Bad SLAM working on Ubuntu is the whole point for us. @puzzlepaint Dear friend, do you have any idea how to fix the runtime error / docker build error? |
When building for docker, the OpenGL renderer context needs to be opened with the same driver that the point clouds are generated in (e.g. NVIDIA). Prior to this change, the OpenGL renderer driver defaulted to LLVM and thus caused a CUDA check error when the GUI attempted to bind a buffer. This change also adds mesa-utils, which isn't 100% necessary but is useful for debugging future graphics issues. Closes ETH3D#95
I was having the same issue, it was resolved on my end by installing |
Can badslam run on Ubuntu 22.04 and with Nvidia 4090 gpu? I have successfully compiled it but fail on running it.
time file:line v|
12:40:44.344 loguru.cpp:587 INFO| arguments: ../build_RelWithDebInfo/applications/badslam/badslam
12:40:44.344 loguru.cpp:590 INFO| Current dir: /home/david/Apps/badslam/build_RelWithDebInfo
12:40:44.344 loguru.cpp:592 INFO| stderr verbosity: 2
12:40:44.344 loguru.cpp:593 INFO| -----------------------------------
12:40:44.345 main.cc:477 WARN| No auto-tuning file found -> using default parameters. GPU performance is thus probably slightly worse than it could be.
12:40:55.770 render_window_qt_opengl:63 ERR| OpenGL Error: GL_INVALID_VALUE (1281), description:
A numeric argument is out of range. The offending command is ignored and has no other side effect than to set the error flag.
12:40:55.775 render_window_qt_opengl:63 ERR| OpenGL Error: GL_INVALID_VALUE (1281), description:
A numeric argument is out of range. The offending command is ignored and has no other side effect than to set the error flag.
12:40:55.777 gui_main_window.cc:1603 INFO| Read dataset with 98 frames
12:40:55.778 render_window_qt_opengl:63 ERR| OpenGL Error: GL_INVALID_VALUE (1281), description:
A numeric argument is out of range. The offending command is ignored and has no other side effect than to set the error flag.
Stack trace:
66 0x557b7c40dea5 ../build_RelWithDebInfo/applications/badslam/badslam(+0x3fea5) [0x557b7c40dea5]
65 0x7fc8f3829e40 __libc_start_main + 128
64 0x7fc8f3829d90 /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fc8f3829d90]
63 0x557b7c4050b6 ../build_RelWithDebInfo/applications/badslam/badslam(+0x370b6) [0x557b7c4050b6]
62 0x557b7c41074b ../build_RelWithDebInfo/applications/badslam/badslam(+0x4274b) [0x557b7c41074b]
61 0x557b7c45c301 ../build_RelWithDebInfo/applications/badslam/badslam(+0x8e301) [0x557b7c45c301]
60 0x7fc8f42c0cf4 QCoreApplication::exec() + 148
59 0x7fc8f42b875b QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 299
58 0x7fc8f43130b8 QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 104
57 0x7fc8ef11e3e3 g_main_context_iteration + 51
56 0x7fc8ef176258 /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xab258) [0x7fc8ef176258]
55 0x7fc8ef120d3b g_main_context_dispatch + 619
54 0x7fc8ed0f8d6e /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x73d6e) [0x7fc8ed0f8d6e]
53 0x7fc8f4716a2c QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) + 172
52 0x7fc8f473dbc0 QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) + 384
51 0x7fc8f42b9e3a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 314
50 0x7fc8f4f6c713 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 131
49 0x7fc8f4fcc329 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1cc329) [0x7fc8f4fcc329]
48 0x7fc8f4fc83fe /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1c83fe) [0x7fc8f4fc83fe]
47 0x7fc8f42b9e3a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 314
46 0x7fc8f4f6c6f7 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 103
45 0x7fc8f4f8c2e8 QLayoutPrivate::doResize() + 296
44 0x7fc8f50d59d6 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d59d6) [0x7fc8f50d59d6]
43 0x7fc8f50d0075 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d0075) [0x7fc8f50d0075]
42 0x7fc8f509fd20 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x29fd20) [0x7fc8f509fd20]
41 0x7fc8f50619f4 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2619f4) [0x7fc8f50619f4]
40 0x7fc8f40b3c1c QAbstractAnimation::start(QAbstractAnimation::DeletionPolicy) + 396
39 0x7fc8f40b99b6 QPropertyAnimation::updateState(QAbstractAnimation::State, QAbstractAnimation::State) + 662
38 0x7fc8f40b59e8 /lib/x86_64-linux-gnu/libQt5Core.so.5(+0xb59e8) [0x7fc8f40b59e8]
37 0x7fc8f40b8d91 QPropertyAnimation::updateCurrentValue(QVariant const&) + 273
36 0x7fc8f4fb13c3 QWidget::qt_metacall(QMetaObject::Call, int, void**) + 99
35 0x7fc8f4fa6f30 QWidget::setGeometry(QRect const&) + 128
34 0x7fc8f4fa6031 QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 689
33 0x7fc8f42b9e3a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 314
32 0x7fc8f4f6c6f7 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 103
31 0x7fc8f4f8c2e8 QLayoutPrivate::doResize() + 296
30 0x7fc8f4f85a07 QBoxLayout::setGeometry(QRect const&) + 983
29 0x7fc8f4f9008a QWidgetItem::setGeometry(QRect const&) + 474
28 0x7fc8f4fa6f30 QWidget::setGeometry(QRect const&) + 128
27 0x7fc8f4fa6031 QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 689
26 0x7fc8f42b9e3a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 314
25 0x7fc8f4f6c6f7 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 103
24 0x7fc8f4f8c2e8 QLayoutPrivate::doResize() + 296
23 0x7fc8f50d59d6 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d59d6) [0x7fc8f50d59d6]
22 0x7fc8f50d0075 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d0075) [0x7fc8f50d0075]
21 0x7fc8f509fd20 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x29fd20) [0x7fc8f509fd20]
20 0x7fc8f50619f4 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2619f4) [0x7fc8f50619f4]
19 0x7fc8f40b3c1c QAbstractAnimation::start(QAbstractAnimation::DeletionPolicy) + 396
18 0x7fc8f40b99b6 QPropertyAnimation::updateState(QAbstractAnimation::State, QAbstractAnimation::State) + 662
17 0x7fc8f40b59e8 /lib/x86_64-linux-gnu/libQt5Core.so.5(+0xb59e8) [0x7fc8f40b59e8]
16 0x7fc8f40b8d91 QPropertyAnimation::updateCurrentValue(QVariant const&) + 273
15 0x7fc8f4fd0249 QOpenGLWidget::qt_metacall(QMetaObject::Call, int, void**) + 25
14 0x7fc8f4fb13c3 QWidget::qt_metacall(QMetaObject::Call, int, void**) + 99
13 0x7fc8f4fa6f30 QWidget::setGeometry(QRect const&) + 128
12 0x7fc8f4fa6031 QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 689
11 0x7fc8f42b9e3a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 314
10 0x7fc8f4f6c713 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 131
9 0x7fc8f4faff6c QWidget::event(QEvent*) + 3212
8 0x7fc8f4fcec2f QOpenGLWidget::resizeEvent(QResizeEvent*) + 175
7 0x7fc8f4fa743a QWidgetPrivate::sendPaintEvent(QRegion const&) + 58
6 0x7fc8f42b9e3a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 314
5 0x7fc8f4f6c713 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 131
4 0x7fc8f4faf4ee QWidget::event(QEvent*) + 526
3 0x7fc8f4fcedcd /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1cedcd) [0x7fc8f4fcedcd]
2 0x557b7c59fc43 ../build_RelWithDebInfo/applications/badslam/badslam(+0x1d1c43) [0x557b7c59fc43]
1 0x557b7c59e134 ../build_RelWithDebInfo/applications/badslam/badslam(+0x1d0134) [0x557b7c59e134]
0 0x7fc8f59f04aa loguru::StreamLogger::~StreamLogger() + 138
12:40:55.908 render_window.cc:972 FATL| Cuda Error: unknown error
[1] 3699608 IOT instruction (core dumped) ../build_RelWithDebInfo/applications/badslam/badslam
The text was updated successfully, but these errors were encountered: