Closed 0x726f62 closed 8 years ago
Tell me if problem persists with latests commits. Thanks
I had a similar problem (#22) that seems to be fixed with the lateste commits.
build with commit 2fd0328fe831d21704ffe4133681e2b2746dfe7d
Issue still persists.
I tried run with valgrind.
valgrind --log-file="filename" --leak-check=full Track-o-Bot
It suprisingly worked. Atleast UI showed up.
Here's valgrind output http://chopapp.com/#kov2xrpo (It's was too big for pastebin)
Let me compiled it with debug symbols. I will post it here later.
I get this now with the latest commit 1271601.
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
Segmentation fault (core dumped)
@busches You can safely ignore the SSLv2 messages. The seg fault is ofc the problem.
I think this crash is fixed now. Let me know if not :)
nope, i still get segFault. used 23b09da811661792ef635b1f8f80886fddca709d
Starting program: /usr/bin/Track-o-Bot
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe9ea0700 (LWP 4786)]
[New Thread 0x7fffdf908700 (LWP 4787)]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4d1d0ca in strlen () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff4d1d0ca in strlen () from /usr/lib/libc.so.6
#1 0x00007ffff60c1a41 in QCoreApplication::arguments() () from /usr/lib/libQt5Core.so.5
#2 0x00007fffecaf386f in ?? () from /usr/lib/libQt5XcbQpa.so.5
#3 0x00007fffecaf3c7e in QXcbIntegration::wmClass() const () from /usr/lib/libQt5XcbQpa.so.5
#4 0x00007fffecb0849b in QXcbWindow::create() () from /usr/lib/libQt5XcbQpa.so.5
#5 0x00007fffecaf4961 in QXcbIntegration::createPlatformWindow(QWindow*) const () from /usr/lib/libQt5XcbQpa.so.5
#6 0x00007ffff697e234 in QWindowPrivate::create(bool) () from /usr/lib/libQt5Gui.so.5
#7 0x00007ffff71853a8 in QWidgetPrivate::create_sys(unsigned long long, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#8 0x00007ffff7185889 in QWidget::create(unsigned long long, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#9 0x00007ffff74dc966 in ?? () from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff74dcb14 in ?? () from /usr/lib/libQt5Widgets.so.5
#11 0x00007ffff74bf4f7 in QSystemTrayIcon::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#12 0x000055555556938a in QSystemTrayIcon::show (this=0x555555be4f40) at /usr/include/qt/QtWidgets/qsystemtrayicon.h:95
#13 0x0000555555568b87 in Window::CreateTrayIcon (this=0x555555b234f0) at src/ui/Window.cpp:180
#14 0x0000555555567d77 in Window::Window (this=0x555555b234f0) at src/ui/Window.cpp:22
#15 0x0000555555587df3 in Trackobot::CreateUI (this=0x7fffffffe680) at src/Trackobot.cpp:143
#16 0x0000555555587795 in Trackobot::Run (this=0x7fffffffe680) at src/Trackobot.cpp:64
#17 0x0000555555562561 in main (argc=1, argv=0x7fffffffe7d8) at src/Main.cpp:6
Qt looks like fun :)
It seems to be something wrong with the icon file. May be caused by the incorrect profile.
Image updated in 08ca3dec7e725c0b333bf3450f77106e70572e9b :)
Still same result.
Could you turn debugging symbols on when compiling and then post the stack trace? Quickly glancing at the trace, it would appear that the window class or some other string in wmClass is not initialized.
@PlasmaPower Already posted bt was generated by code compiled with debug symbols. Do you mean Qt stack frames? If yes, how could i add the code to the debugger?
@Pr0b Sorry I was thinking for your libraries and such, but you probably can't get those, IDK. I was just thinking it would be nice to have source files and line numbers for libQt5Core
to locate the undefined string.
I totally forgot that qt is opensource project. I dont use this framework. just cloning qt5 repos. I will try to add it to dbg and edit this post later with result.
Thanks a lot!
I had a similar issue with AUR package so i assumed it was bugged cuz when i compiled from source i had no segfaults.
@BOSSoNe0013 is line 176 in Window.cpp needed at all? icon.addFile( ":/icons/logo.png", QSize() ); since previous line is QIcon icon = QIcon( ":/icons/Track-o-Bot.png" );
@Pr0b BTW Did you update symlinks in ~/.Hearthstone (ToB doesnt use output_log anymore)
@angrylinuxuser this was required sometimes as the first icon was not displayed. I think this was caused by the wrong color profile so i can remove it now as the problem is now solved.
@Pr0b is your problem solved ?
@BOSSoNe0013 Unfortunatelly not, i just downgraded.
this looks very similar to my clang crash and i think i got it fixed in my repo. If this one is ok i think it should be upstreamed.
@angrylinuxuser Could you please refer to the exact commit that fixed this issue?
my last commit in my fork (based on this: https://bugreports.qt.io/browse/QTBUG-5637)
@BOSSoNe0013 I can confirm, d32ce922973beba7ab7d45cb74a0a6353c0f0c03 fixed the segfalt.
@angrylinuxuser well done.
fix applied, thanks @angrylinuxuser
Straightforward segfault after running binary /usr/local/bin/Track-o-Bot
commit abfab7f0584a36ffb5a5a7d386bf737beafb9753
No errors during compilation. qt5-base 5.5.0-2 installed.
Created dir .Hearthstone in the $HOME and 2 symlinks (output_log, log.config) as instructed. Running distro Archlinux. Tried AUR package https://aur.archlinux.org/packages/track-o-bot-git/ and also manually compile with same result.
Anybody got same issue? Is this qt issue related?