stephanecharette / DarkMark

Marking up images for use with Darknet.
https://www.ccoderun.ca/darkmark/Summary.html
Other
175 stars 22 forks source link

DarkMark on Google Colaboratory - Segmentation fault #15

Closed arianyambao closed 3 years ago

arianyambao commented 3 years ago

Hi. I am a huge fan of your work, it's very wonderful! I have been using it mostly on my local machine and just wanted to create a purely CLI using Google Colab for testing. However, after installing all dependencies and DarkMark itself, using the DarkMark command gives me an error:

2021-11-25 08:33:51 starting DarkMark v1.6.3-0
2021-11-25 08:33:51 configuration file used: /root/.DarkMark/DarkMark.cfg
2021-11-25 08:33:51 looking for "darknet" in /root
2021-11-25 08:33:51 looking for "darknet" in /root/Desktop
2021-11-25 08:33:51 aborting due to signal: "Segmentation fault" [signal #11]
2021-11-25 08:33:51 backtrace #0: DarkMark: get_backtrace[abi:cxx11]() +0x53 [0x5579ffdcd6d3]
2021-11-25 08:33:51 backtrace #1: DarkMark: dm::DarkMarkApplication::signal_handler(int) +0x15c [0x5579ffdce83c]
2021-11-25 08:33:51 backtrace #2: /lib/x86_64-linux-gnu/libc.so.6(+0x3f040) [0x7f8f9a4e9040]
2021-11-25 08:33:51 backtrace #3: DarkMark: juce::ComponentBoundsConstrainer::setBoundsForComponent(juce::Component*, juce::Rectangle<int>, bool, bool, bool, bool) +0x296 [0x557a000a3ba6]
2021-11-25 08:33:51 backtrace #4: DarkMark: juce::ResizableWindow::setResizeLimits(int, int, int, int) +0x85 [0x557a000cb805]
2021-11-25 08:33:51 backtrace #5: DarkMark: juce::DocumentWindow::DocumentWindow(juce::String const&, juce::Colour, int, bool) +0xaa [0x557a000d5b2a]
2021-11-25 08:33:51 backtrace #6: DarkMark: dm::StartupWnd::StartupWnd() +0x64 [0x5579ffe7e924]
2021-11-25 08:33:51 backtrace #7: DarkMark: dm::DarkMarkApplication::initialise(juce::String const&) +0xe67 [0x5579ffdcfb77]
2021-11-25 08:33:51 backtrace #8: DarkMark: juce::JUCEApplicationBase::initialiseApp() +0x4c [0x5579fff50a5c]
2021-11-25 08:33:51 backtrace #9: DarkMark: juce::JUCEApplicationBase::main() +0x2b [0x5579ffdca5fb]
2021-11-25 08:33:51 backtrace #10: /lib/x86_64-linux-gnu/libc.so.6: __libc_start_main +0xe7 [0x7f8f9a4cbbf7]
2021-11-25 08:33:51 backtrace #11: DarkMark: _start +0x2a [0x5579ffdcc7aa]

image

Because of the error, I cannot utilize any other command (e.g. add, del, etc.).

Looking forward to your response! Thank you very much.

stephanecharette commented 3 years ago

DarkMark uses JUCE. It uses JUCE to display GUI windows, and thus will only work on linux distros running X, Wayland, etc.

It will not run on a "server" device. You must use a "desktop" linux install.

arianyambao commented 3 years ago

DarkMark uses JUCE. It uses JUCE to display GUI windows, and thus will only work on linux distros running X, Wayland, etc.

It will not run on a "server" device. You must use a "desktop" linux install.

Thank you! That was my initial assumption. I appreciate you so much for clearing it out!