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

Can't load rosbags - std::bad_alloc #1039

Open
Kupofty opened this issue Jan 27, 2025 · 0 comments
Open

Can't load rosbags - std::bad_alloc #1039

Kupofty opened this issue Jan 27, 2025 · 0 comments

Comments

@Kupofty
Copy link

Kupofty commented Jan 27, 2025

I opened a corrupted bag file (index problem) in PlotJuggler so it crashed.
Now, Plotjuggler crashes immediatly when I click on the "load data button" with the following message in the terminal :

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Stack trace (most recent call last):

#31 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00dbaf1f, in QApplication::notify(QObject*, QEvent*)
#30 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00db443b, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#29 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00e0ecf2, in QWidgetWindow::event(QEvent*)
#28 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00e0bfe7, in QWidgetWindow::handleMouseEvent(QMouseEvent*)
#27 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00dba539, in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool)
#26 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffdc7807, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#25 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00dbb1f7, in QApplication::notify(QObject*, QEvent*)
#24 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00db443b, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#23 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00df273f, in QWidget::event(QEvent*)
#22 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00ea1b94, in QAbstractButton::mouseReleaseEvent(QMouseEvent*)
#21 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00ea1a2e, in QAbstractButtonPrivate::click()
#20 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00e9fda9, in QAbstractButtonPrivate::emitClicked()
#19 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00e9fba1, in QAbstractButton::clicked(bool)
#18 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffdfff96, in void doActivate(QObject*, int, void**)
#17 Object "/opt/ros/noetic/lib/plotjuggler/plotjuggler", at 0x55da90b75139, in
#16 Object "/opt/ros/noetic/lib/plotjuggler/plotjuggler", at 0x55da90b733dc, in
#15 Object "/opt/ros/noetic/lib/plotjuggler/plotjuggler", at 0x55da90bcbf95, in boost::system::system_error::what() const
#14 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00fae483, in QFileDialog::QFileDialog(QWidget*, QString const&, QString const&, QString const&)
#13 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00fadfe2, in QFileDialogPrivate::init(QFileDialogArgs const&)
#12 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5", at 0x7fca00fac2b5, in QFileDialogPrivate::restoreFromSettings()
#11 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffd4bf99, in QSettings::childGroups() const
#10 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffd522db, in QConfFileSettingsPrivate::children(QString const&, QSettingsPrivate::ChildSpec) const
#9 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffd4f063, in QConfFileSettingsPrivate::ensureAllSectionsParsed(QConfFile*) const
#8 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffd4ed18, in QConfFileSettingsPrivate::readIniSection(QSettingsKey const&, QByteArray const&, QMap<QSettingsKey, QVariant>, QTextCodec)
#7 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffc6e001, in QString::reallocData(unsigned int, bool)
#6 Object "/home/kupofty/QtFrameWork/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5", at 0x7fc9ffbbc06e, in qBadAlloc()
#5 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fc9ff9f0698, in __cxa_throw
#4 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fc9ff9f03e6, in std::terminate()
#3 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fc9ff9f037b, in std::rethrow_exception(std::__exception_ptr::exception_ptr)
#2 Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fc9ff9e48d0, in __cxa_throw_bad_array_new_length
BFD: DWARF error: section .debug_info is larger than its filesize! (0x93f189 vs 0x531098)
#1 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fc9ff60c858, in abort
#0 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fc9ff62d00b, in gsignal
Abandon (signal envoyé par tkill() 17710 1000)
Abandon (core dumped)

I already tried to :

  • uninstall/reinstall plotjuggler (with purge)
  • rebooting the PC
  • deleting .config/PlotJuggler/PlotJuggler-3.ini file
    with no success.
    Any idea how to fix this ? Thanks

PS: I use Ubuntu20 with ROS Noetic. Plotjuggler's version is 3.9.1

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

1 participant