LeFroid / Viper-Browser

A lightweight Qt5 web browser using QtWebEngine
GNU General Public License v3.0
217 stars 21 forks source link

Illegal instruction #18

Open danrobi11 opened 3 years ago

danrobi11 commented 3 years ago

I get a Illegal instruction when I launch the browser.

./Viper_Browser--x86_64.AppImage
Illegal instruction

OS: MX 19.3 (patito feo) x86_64 based Debian GNU/Linux 10 (buster) SysV init version: 2.93 Kernel: 4.19.0-9-amd64 Xorg v1:7.7+19 WM: Spectrwm

dariusity commented 3 years ago

I do get the same thing compiling from source, but looking again at the requirements: QtwebEngine5.11+ QtWebkit5.5+ Qt5.9 I'm only running Qt5.15+ provided by Arch.

danrobi11 commented 3 years ago

the requirements

I havent seen any requirements on the readme. Where did you find it?

dariusity commented 3 years ago

Cookie viewer, editor, and support for cookie filters (QtWebEngine 5.11+ only) Qt Tab Browser example (From Qt 5.5 Webkit example archive)

Both under features in README, and it requires Qt5.9 to build based on the CMakeLists.txt from source.

Get Qt

set(QT_VERSION_MIN "5.9.0") find_package(Qt5 ${QT_VERSION_MIN}

LeFroid commented 3 years ago

Thanks for bringing this to my attention.

Qt 5.15 should be 100% compatible with this project. Can both of you please check if there are any log files present in this folder? ~/.config/Vaccarelli/crash-logs If possible, can you also please build the executable with debug flags, run viper-browser with GDB and share the output?

dariusity commented 3 years ago

None that I'm aware of, well I removed it since it couldn't start up and run. It's not so easy for me to do it quickly because I have no coding background and experience. Had to make few trials and errors so the package manager could compile and pack it with no error. Btw you mention to run ENABLE_TESTING in CMakeLists.txt but I couldn't see where is applicable.

danrobi11 commented 3 years ago

@LeFroid Theres no ~/.config/Vaccarelli/

Missing dependency. Whats the exact Debian name for Qt5QuickWidgets ?

LeFroid commented 3 years ago

@danrobi11 It should be ‘libqt5quickwidgets5’ on Debian.

Ignore the ENABLE_TESTING flag, that is for code coverage, unit and integration testing for developers. If you pass the flag -DCMAKE_BUILD_TYPE=Debug to cmake, that will compile the browser with the debug information. No worries if it’s too much trouble to work on @dariusity

danrobi11 commented 3 years ago

I do have libqt5quickwidgets5 v5.11.3-4

Heres the output

cmake -DCMAKE_BUILD_TYPE=Debug
CMake Warning:  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):  Could not find a package configuration file provided by "Qt5QuickWidgets"
  with any of the following names:

    Qt5QuickWidgetsConfig.cmake
    qt5quickwidgets-config.cmake
  Add the installation prefix of "Qt5QuickWidgets" to CMAKE_PREFIX_PATH or
  set "Qt5QuickWidgets_DIR" to a directory containing one of the above files.
  If "Qt5QuickWidgets" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):  CMakeLists.txt:36 (find_package)

-- Configuring incomplete, errors occurred!See also "/home/danrobi/viper-browser/CMakeFiles/CMakeOutput.log".
See also "/home/danrobi/viper-browser/CMakeFiles/CMakeError.log".

CMakeFiles/CMakeError.log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/danrobi/viper-browser/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_494de/fast"
/usr/bin/make -f CMakeFiles/cmTC_494de.dir/build.make CMakeFiles/cmTC_494de.dir/build
make[1]: Entering directory '/home/danrobi/viper-browser/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_494de.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_494de.dir/CheckSymbolExists.c.o   -c /home/danrobi/viper-browser/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_494de
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_494de.dir/link.txt --verbose=1
/usr/bin/cc      -rdynamic CMakeFiles/cmTC_494de.dir/CheckSymbolExists.c.o  -o cmTC_494de 
/usr/bin/ld: CMakeFiles/cmTC_494de.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_494de.dir/build.make:87: cmTC_494de] Error 1
make[1]: Leaving directory '/home/danrobi/viper-browser/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_494de/fast] Error 2

File /home/danrobi/viper-browser/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
dariusity commented 3 years ago

According to your build guide I don't see a "make install", is that unnecessary? After make then the whole directory in build/src/app would be all I need?

LeFroid commented 3 years ago

@danrobi11 Can you install libqt5quickwidgets5-dev and try again? @dariusity make install is optional, you can run the application from build/src/app as-is, although the plugin for KWallet (if enabled) will not load without a proper make install.

Thank you both for your patience

danrobi11 commented 3 years ago

@LeFroid

Can you install libqt5quickwidgets5-dev and try again?

E: Unable to locate package libqt5quickwidgets5-dev

I've tried again with: Viper_Browser-eec5d9f-x86_64.AppImage

Heres the output:

 ->./Viper_Browser-eec5d9f-x86_64.AppImage
/tmp/.mount_Viper_KKIEPv/usr/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=blocked:sC;viper:sLC;qrc:sLV --lang=en-US: relocation error: /tmp/.mount_Viper_KKIEPv/usr/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=blocked:sC;viper:sLC;qrc:sLV --lang=en-US: symbol _ZN7sandbox20localtime_r_overrideEPKlP2tm version Qt_5 not defined in file libQt5WebEngineCore.so.5 with link time reference
[4043:4043:0415/233212.177000:FATAL:zygote_host_impl_linux.cc(187)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid). 
#0 0x7f6075a9295c <unknown>
#1 0x7f6075a08c8e <unknown>
#2 0x7f6076b061f4 <unknown>
#3 0x7f60759ca912 <unknown>
#4 0x7f6076b053ce <unknown>
#5 0x7f6076b07a53 <unknown>
#6 0x7f60759ca1a5 <unknown>
#7 0x7f607408b34e <unknown>
#8 0x7f6074089b95 <unknown>
#9 0x7f607405a769 QtWebEngineCore::ProfileAdapter::createDefaultProfileAdapter()
#10 0x7f607afe1a0c QWebEngineProfile::defaultProfile()
#11 0x0000004a42c0 BrowserApplication::setupWebProfiles()
#12 0x0000004a2f71 BrowserApplication::BrowserApplication()
#13 0x0000004a9046 main
#14 0x7f6070f2409b __libc_start_main
#15 0x0000004a2bea _start

Received signal 6
#0 0x7f6075a9295c <unknown>
#1 0x7f6075a924b1 <unknown>
#2 0x7f60710d3730 <unknown>
#3 0x7f6070f377bb gsignal
#4 0x7f6070f22535 abort
#5 0x7f6075a911e5 <unknown>
#6 0x7f6075a08fcd <unknown>
#7 0x7f6076b061f4 <unknown>
#8 0x7f60759ca912 <unknown>
#9 0x7f6076b053ce <unknown>
#10 0x7f6076b07a53 <unknown>
#11 0x7f60759ca1a5 <unknown>
#12 0x7f607408b34e <unknown>
#13 0x7f6074089b95 <unknown>
#14 0x7f607405a769 QtWebEngineCore::ProfileAdapter::createDefaultProfileAdapter()
#15 0x7f607afe1a0c QWebEngineProfile::defaultProfile()
#16 0x0000004a42c0 BrowserApplication::setupWebProfiles()
#17 0x0000004a2f71 BrowserApplication::BrowserApplication()
#18 0x0000004a9046 main
#19 0x7f6070f2409b __libc_start_main
#20 0x0000004a2bea _start
  r8: 0000000000000000  r9: 00007ffe27088330 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007ffe27088b20 r13: 00000000000000aa r14: 00007f60714030a0 r15: 00007ffe27088b18
  di: 0000000000000002  si: 00007ffe27088330  bp: 00007ffe27088580  bx: 0000000000000006
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007f6070f377bb  sp: 00007ffe27088330
  ip: 00007f6070f377bb efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.

With: Viper_Browser--x86_64.AppImage Tested also: Viper_Browser-54-x86_64.AppImage Both return same output.

->./Viper_Browser--x86_64.AppImage
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libsqlite3.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Widgets.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Widgets.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.28' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Widgets.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5WebEngineCore.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5WebEngineCore.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Gui.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Core.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Core.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.28' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Core.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Quick.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Qml.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libQt5Positioning.so.5)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libicui18n.so.66)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libicuuc.so.66)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libnspr4.so)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libopus.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libavcodec.so.58)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libavutil.so.56)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libvpx.so.6)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libpng16.so.16)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libxml2.so.2)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libxslt.so.1)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libswresample.so.3)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/librsvg-2.so.2)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libcairo.so.2)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libzvbi.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libaom.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libcodec2.so.0.9)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libmp3lame.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libopenjp2.so.7)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libspeex.so.1)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libtwolame.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libx265.so.179)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libxvidcore.so.4)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libgme.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libopenmpt.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libchromaprint.so.1)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libp11-kit.so.0: no version information available (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libgnutls.so.30)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libsystemd.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libsoxr.so.0)
./Viper_Browser--x86_64.AppImage: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_Viper_8dU7Su/usr/bin/../lib/libpixman-1.so.0)
probonopd commented 3 years ago

The output from the AppImage indicates that the contents of the AppImage were compiled on a "too new" system, at least newer than what you were running when you were runing the AppImage.