Giter Site home page Giter Site logo

Comments (8)

mmozeiko avatar mmozeiko commented on June 10, 2024

Hmm, it seems to work for me.

Can you running under gdb and showing backtrace when it crashes? To do so first build it with debug mode:

cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .

Run executable like this:

gdb build/rclone-browser

And enter run when it starts. Then enter bt when it crashes and copy the output here.

Btw, you don't need to install qt 5.8. It should work fine with default qt5 package (which is v5.5.1):

apt-get install qtbase5-dev

from rclonebrowser.

xerrni avatar xerrni commented on June 10, 2024
xerrni@ubuntu:~/Downloads/RcloneBrowser/RcloneBrowser/build$ gdb build/rclone-browser
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/rclone-browser...done.
(gdb) run
Starting program: /home/xerrni/Downloads/RcloneBrowser/RcloneBrowser/build/build/rclone-browser 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec178700 (LWP 3540)]
[New Thread 0x7fffdf481700 (LWP 3541)]
[New Thread 0x7fffd7185700 (LWP 3542)]

Thread 1 "rclone-browser" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7a31a3e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#2  0x00007ffff7a31641 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007ffff7c1fcb5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007ffff7c1fd92 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x0000000000442b8b in MainWindow::MainWindow (this=0x7fffffffdc70)
    at /home/xerrni/Downloads/RcloneBrowser/RcloneBrowser/src/main_window.cpp:156
#6  0x0000000000440b17 in main (argc=1, argv=0x7fffffffdee8)
    at /home/xerrni/Downloads/RcloneBrowser/RcloneBrowser/src/main.cpp:12
(gdb) 

from rclonebrowser.

mmozeiko avatar mmozeiko commented on June 10, 2024

What Ubuntu version are you using? And what kind of desktop environment are you using?
There seems to be similar crashes reported on KDE which is a bug in Qt KDE plugins:

Have you tried upgrading packages to latest version? (apt-get update + upgrade).

What version of qt5 packages do you have? dpk -l qtbase5-dev will show you this. It seems you are using qt5 libraries from standard location (/usr/lib/x86_64-linux-gnu). You said you installed 5.8? How did you install 5.8 there? Usually 5.8 installs to /opt/qt58 folder.

from rclonebrowser.

xerrni avatar xerrni commented on June 10, 2024

I tried:

apt-get update
apt-get upgrade
apt-get dist-upgrade 

I`m on Ubuntu 16.04 with KDE Plasma, I have installed QT 5.8 from official website but now I uninstalled it and tried without it:

xerrni@ubuntu:~/Downloads/RcloneBrowser/RcloneBrowser/build$ gdb build/rclone-browser
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/rclone-browser...done.
(gdb) run
Starting program: /home/xerrni/Downloads/RcloneBrowser/RcloneBrowser/build/build/rclone-browser 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec174700 (LWP 4252)]
[New Thread 0x7fffdf481700 (LWP 4253)]
[New Thread 0x7fffd7185700 (LWP 4254)]

Thread 1 "rclone-browser" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7a31a3e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#2  0x00007ffff7a31641 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007ffff7c1fcb5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007ffff7c1fd92 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x0000000000442b8b in MainWindow::MainWindow (this=0x7fffffffdc70)
    at /home/xerrni/Downloads/RcloneBrowser/RcloneBrowser/src/main_window.cpp:156
#6  0x0000000000440b17 in main (argc=1, argv=0x7fffffffdee8)
    at /home/xerrni/Downloads/RcloneBrowser/RcloneBrowser/src/main.cpp:12
(gdb) Quit
A debugging session is active.

	Inferior 1 [process 4248] will be killed.

Quit anyway? (y or n) y
xerrni@ubuntu:~/Downloads/RcloneBrowser/RcloneBrowser/build$ dpk -l qtbase5-dev
bash: dpk: command not found
xerrni@ubuntu:~/Downloads/RcloneBrowser/RcloneBrowser/build$ dpkg -l qtbase5-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
+++-==========================-==================-==================-==========================================================
ii  qtbase5-dev:amd64          5.6.2+dfsg-0ubuntu amd64              Qt 5 base development files 

from rclonebrowser.

mmozeiko avatar mmozeiko commented on June 10, 2024

Oh, when you install Qt5.8 with official installer then you need to explicitly say to cmake to use it:

cmake -DCMAKE_PREFIX_PATH=/opt/Qt5.8.0/5.8/gcc_64 ..

Adjust path, if it is different. But I'm not sure if this will fix anything. From the bugreports I linked this seems to be issue with some KDE plugins.

If you want you can try commenting out part of code that crashes - you'll loose tray icon, but everything else potentially will work fine. If you want to do this, comment out line 156 in main_window.cpp file: https://github.com/mmozeiko/RcloneBrowser/blob/master/src/main_window.cpp#L156 (put // at beginning of line).

from rclonebrowser.

xerrni avatar xerrni commented on June 10, 2024

Thanks, now it works fine. I dont need tray icon. Im looking forward for future development, multi folder drag & drop, maybe some other small tweaks & improvements to the UI. GREAT WORK, once more thanks.

from rclonebrowser.

mmozeiko avatar mmozeiko commented on June 10, 2024

It works with 5.8 or did you remove tray icon by commenting out code?

from rclonebrowser.

xerrni avatar xerrni commented on June 10, 2024

I have removed tray icon, just commented the line 156

from rclonebrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.