Closed p0wer0n closed 9 years ago
It was from the releases on OS X 10.0.4. I uninstalled Qt 5.5.0 last week to save disk space
(10.10.4, you mean, I assume) All right, let me see if the binary is using external Qt libs instead of the embedded ones (I guess that's the issue...)
10.10.4 is what I meant. My keyboard has an insensitive 1 key.
Well, it looks good to me at first sight, everything Qt-related is within the app...
adriweb ~ $ otool -L /Applications/Firebird.app/Contents/MacOS/firebird
/Applications/Firebird.app/Contents/MacOS/firebird:
@rpath/QtQuickWidgets.framework/Versions/5/QtQuickWidgets (compatibility version 5.5.0, current version 5.5.0)
@rpath/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.5.0, current version 5.5.0)
@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.5.0, current version 5.5.0)
@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.0)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
@rpath/QtQml.framework/Versions/5/QtQml (compatibility version 5.5.0, current version 5.5.0)
@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.5.0, current version 5.5.0)
@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.5.0, current version 5.5.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
I'm on 10.10.4 as well... I'll see tomorrow if I can test on another Mac.
In the meantime, are you able to run the binary in gdb or lldb and see what it says?
I have found an "interesting" behaviour (hinted by Vogtinator) - on my Mac, it forces the GPU to switch to the dedicated one (if the integrated one was being used).
I have been able to reproduce the crash on another Mac (still not on mine), which doesn't have a dedicated GPU, only an integrated one. Now, the question: does your Mac have an integrated GPU and not a dedicated one ? (if you're not sure, just tell me the model name, for example "MacBook Pro (Retina, 15-inch, Mid 2014)" in the menu -> About This Mac.
Here are the crash details, FWIW:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.qt-project.QtGui 0x000000010136e5e4 QOpenGLFramebufferObject::handle() const + 4
1 org.qt-project.QtQuickWidgets 0x0000000100cd78e3 0x100cd2000 + 22755
2 org.qt-project.QtWidgets 0x0000000102129362 QWidget::event(QEvent*) + 2194
3 org.qt-project.QtQuickWidgets 0x0000000100cdabc8 QQuickWidget::event(QEvent*) + 280
4 org.qt-project.QtWidgets 0x00000001020ea6fb QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
5 org.qt-project.QtWidgets 0x00000001020edade QApplication::notify(QObject*, QEvent*) + 8318
6 org.qt-project.QtCore 0x00000001017c41b3 QCoreApplication::notifyInternal(QObject*, QEvent*) + 115
7 org.qt-project.QtWidgets 0x0000000102127d62 QWidgetPrivate::show_helper() + 434
8 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931
9 org.qt-project.QtWidgets 0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416
10 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76
11 org.qt-project.QtWidgets 0x0000000102127f78 QWidgetPrivate::showChildren(bool) + 328
12 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76
13 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931
14 org.qt-project.QtWidgets 0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416
15 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76
16 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931
17 com.adriweb.firebird 0x00000001000196d0 main + 608
18 com.adriweb.firebird 0x0000000100004b54 start + 52
stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x000000010136e5e4 QtGui`QOpenGLFramebufferObject::handle() const + 4
QtGui`QOpenGLFramebufferObject::handle:
-> 0x10136e5e4 <+4>: movq 0x8(%rdi), %rax
0x10136e5e8 <+8>: movq (%rax), %rcx
0x10136e5eb <+11>: xorl %eax, %eax
0x10136e5ed <+13>: testq %rcx, %rcx
(reported here: https://bugreports.qt.io/browse/QTBUG-47324 We'll see what they say...)
A Mac mini from 2011, with an integrated GPU, and running 10.11, is able to launch firebird without any issue, both the prebuilt app from the Releases page, and a re-compiled one. (thanks Ivoah for the tests). An interesting theory could be that it crashes with only specific integrated GPUs? I hope to be able to test on more machines soon...
@p0wer0n , which Mac model do you have exactly?
I have a MacBook Pro 13" Mid-2012 with Intel 4000 graphics
I have the base model, and if 3rd party ram matters, I have 16 GB OWC memory
To answer your other question, I don't know how to run the binary in gdb or lldb
That may not be needed anymore, I could reproduce the crash in my Mac VM and it works if I compile it myself instead of using Adriweb's prebuilt package. I'll replace the release with my build and add a comment when you can test it.
Using Qt 5.5 or an older one ?
Also, it's a bit weird, since my build worked for Ivoah as well
Thanks, Adrien Bertrand
On Tue, Jul 21, 2015 at 4:07 PM, Fabian Vogt notifications@github.com wrote:
That may not be needed anymore, I could reproduce the crash in my Mac VM and it works if I compile it myself instead of using Adriweb's prebuilt package. I'll replace the release with my build and add a comment when you can test it.
Reply to this email directly or view it on GitHub: https://github.com/nspire-emus/firebird/issues/12#issuecomment-123463203
Both 5.4.2 and 5.5.0 work for me, we'll see if it makes any difference, but it would indeed be weird.
So, I updated firebird-mac.dmg on the releases page, you can redownload and test it now. Please report back whether it works!
Unfortunately, it seems unrelated - this build crashes for me too, now :( However yours is missing the Qml stuff, so I'll just revert it to mine in the meantime.
Any updates on this issue?
Sadly not. Compiling it yourself is the only option right now. You might try an older version of Qt, 5.3 should work.
A full error message on OS X Yousemite:
Process: firebird [13080] Path: /Volumes/VOLUME/Firebird.app/Contents/MacOS/firebird Identifier: com.adriweb.firebird Version: ??? Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: firebird [13080] User ID: 501
Date/Time: 2015-09-15 18:11:05.766 +0200 OS Version: Mac OS X 10.10.5 (14F27) Report Version: 11 Anonymous UUID: 373E706E-E8B4-0EF6-562A-134F7EC1772E
Sleep/Wake UUID: 12D5877B-5442-4ED7-9452-2D015282D3FD
Time Awake Since Boot: 510000 seconds Time Since Wake: 41000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
VM Regions Near 0x8: --> __TEXT 0000000100000000-00000001000a7000 [ 668K] r-x/rwx SM=COW /Volumes/VOLUME/Firebird.app/Contents/MacOS/firebird
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.qt-project.QtGui 0x000000010136e5e4 QOpenGLFramebufferObject::handle() const + 4 1 org.qt-project.QtQuickWidgets 0x0000000100cd78e3 0x100cd2000 + 22755 2 org.qt-project.QtWidgets 0x0000000102129362 QWidget::event(QEvent) + 2194 3 org.qt-project.QtQuickWidgets 0x0000000100cdabc8 QQuickWidget::event(QEvent) + 280 4 org.qt-project.QtWidgets 0x00000001020ea6fb QApplicationPrivate::notifyhelper(QObject, QEvent) + 251 5 org.qt-project.QtWidgets 0x00000001020edade QApplication::notify(QObject, QEvent) + 8318 6 org.qt-project.QtCore 0x00000001017c41b3 QCoreApplication::notifyInternal(QObject, QEvent_) + 115 7 org.qt-project.QtWidgets 0x0000000102127d62 QWidgetPrivate::show_helper() + 434 8 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931 9 org.qt-project.QtWidgets 0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416 10 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76 11 org.qt-project.QtWidgets 0x0000000102127f78 QWidgetPrivate::showChildren(bool) + 328 12 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76 13 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931 14 org.qt-project.QtWidgets 0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416 15 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76 16 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931 17 com.adriweb.firebird 0x00000001000196d0 main + 608 18 com.adriweb.firebird 0x0000000100004b54 start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff8e5dd232 kevent64 + 10 1 libdispatch.dylib 0x00007fff94b39a6a _dispatch_mgr_thread + 52
Thread 2: 0 libsystem_kernel.dylib 0x00007fff8e5dc94a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff920443dd start_wqthread + 13
Thread 3: 0 libsystem_kernel.dylib 0x00007fff8e5dc94a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff920443dd start_wqthread + 13
Thread 4: 0 libsystem_kernel.dylib 0x00007fff8e5dc94a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff920443dd start_wqthread + 13
Thread 5: 0 libsystem_kernel.dylib 0x00007fff8e5dc94a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff920443dd start_wqthread + 13
Thread 6:: QQmlThread 0 libsystem_kernel.dylib 0x00007fff8e5dc3fa __select + 10 1 org.qt-project.QtCore 0x0000000101813cd0 QEventDispatcherUNIXPrivate::doSelect(QFlagsQEventLoop::ProcessEventsFlag, timespec*) + 672 2 org.qt-project.QtCore 0x0000000101814d9a QEventDispatcherUNIX::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 234 3 org.qt-project.QtCore 0x00000001017c18cd QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 381 4 org.qt-project.QtCore 0x0000000101616005 QThread::exec() + 117 5 org.qt-project.QtQml 0x0000000101db7fb9 0x101b7d000 + 2338745 6 org.qt-project.QtCore 0x0000000101619b53 0x1015e2000 + 228179 7 libsystem_pthread.dylib 0x00007fff9204705a _pthread_body + 131 8 libsystem_pthread.dylib 0x00007fff92046fd7 _pthread_start + 176 9 libsystem_pthread.dylib 0x00007fff920443ed thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000001 rbx: 0x00000001028ce160 rcx: 0x000000010c5994f0 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000102712e00 rbp: 0x00007fff5fbff0a0 rsp: 0x00007fff5fbff0a0 r8: 0x0000000000000004 r9: 0x000000010c500000 r10: 0x00000000000397f0 r11: 0x000000010136e5e0 r12: 0x00000001028ce160 r13: 0x00000001028ceb10 r14: 0x0000000000000001 r15: 0x00007fff5fbff6d8 rip: 0x000000010136e5e4 rfl: 0x0000000000010202 cr2: 0x0000000000000008
Logical CPU: 2 Error Code: 0x00000004 Trap Number: 14
Binary Images:
0x100000000 - 0x1000a6ff7 +com.adriweb.firebird (???) <69808968-7672-3E37-BB0A-D230CC321029> /Volumes/VOLUME/Firebird.app/Contents/MacOS/firebird
0x100cd2000 - 0x100cddff7 +org.qt-project.QtQuickWidgets (5.5 - 5.5.0)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 4 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 31079559 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=222.0M resident=147.0M(66%) swapped_out_or_unallocated=75.0M(34%) Writable regions: Total=141.5M written=18.7M(13%) resident=1712K(1%) swapped_out=22.5M(16%) unallocated=139.8M(99%)
REGION TYPE VIRTUAL =========== ======= CG image 28K CG shared images 272K CoreAnimation 16K CoreServices 580K CoreUI image data 48K Dispatch continuations 8192K IOKit 4016K JS JIT generated code 36K JS VM register file 8192K JS garbage collector 1280K Kernel Alloc Once 8K MALLOC 79.2M MALLOC (admin) 32K STACK GUARD 56.0M Stack 10.6M VM_ALLOCATE 17.2M DATA 28.8M GLSLBUILTINS 2588K IMAGE 528K LINKEDIT 76.5M TEXT 145.5M UNICODE 552K mapped file 249.3M shared memory 4K =========== ======= TOTAL 688.8M
Model: MacBookPro12,1, BootROM MBP121.0167.B07, 2 processors, Intel Core i5, 2.9 GHz, 16 GB, SMC 2.28f7 Graphics: Intel Iris Graphics 6100, Intel Iris Graphics 6100, Built-In Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1867 MHz, 0x02FE, 0x4544464232333241314D412D4A442D460000 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1867 MHz, 0x02FE, 0x4544464232333241314D412D4A442D460000 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x133), Broadcom BCM43xx 1.0 (7.15.166.24.3) Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SM0512G, 500.28 GB USB Device: Internal Memory Card Reader USB Device: Bluetooth USB Host Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
Ran gdb ./MacOS/firebird
, https://gist.github.com/kenzierocks/f746a76b3da426235695. Self-built with Qt 5.5.0
from homebrew. OSX Version 10.10.5
What Mac model do you have? (We're mainly interested to know if it has a dedicated GPU or just the integrated one)
MacBook Pro (Retina, 13-inch, Mid 2014)
Dedicated GPU Intel Iris 1536 MB
Ok. And actually, this GPU is integrated. We've noticed more crashes on integrated ones than dedicated...
Oh, silly me. I only do software.
Hey, I also have problems running the Firebird iOS App. I have Qt installed with the default options (Although I didn't install android/iOS specific libraries), but I'm having an issue with it crashing at boot.
Process: firebird [353]
Path: /Volumes/VOLUME/Firebird.app/Contents/MacOS/firebird
Identifier: com.adriweb.firebird
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: firebird [353]
User ID: 501
Date/Time: 2015-09-18 10:23:47.150 -0600
OS Version: Mac OS X 10.10.5 (14F27)
Report Version: 11
Anonymous UUID: A0D40770-A6D3-E04A-BA5B-919F79F4085F
Time Awake Since Boot: 33 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
VM Regions Near 0x8:
-->
__TEXT 0000000100000000-00000001000a7000 [ 668K] r-x/rwx SM=COW /Volumes/VOLUME/Firebird.app/Contents/MacOS/firebird
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.qt-project.QtGui 0x000000010136e5e4 QOpenGLFramebufferObject::handle() const + 4
1 org.qt-project.QtQuickWidgets 0x0000000100cd78e3 0x100cd2000 + 22755
2 org.qt-project.QtWidgets 0x0000000102129362 QWidget::event(QEvent*) + 2194
3 org.qt-project.QtQuickWidgets 0x0000000100cdabc8 QQuickWidget::event(QEvent*) + 280
4 org.qt-project.QtWidgets 0x00000001020ea6fb QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
5 org.qt-project.QtWidgets 0x00000001020edade QApplication::notify(QObject*, QEvent*) + 8318
6 org.qt-project.QtCore 0x00000001017c41b3 QCoreApplication::notifyInternal(QObject*, QEvent*) + 115
7 org.qt-project.QtWidgets 0x0000000102127d62 QWidgetPrivate::show_helper() + 434
8 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931
9 org.qt-project.QtWidgets 0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416
10 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76
11 org.qt-project.QtWidgets 0x0000000102127f78 QWidgetPrivate::showChildren(bool) + 328
12 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76
13 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931
14 org.qt-project.QtWidgets 0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416
15 org.qt-project.QtWidgets 0x0000000102127bfc QWidgetPrivate::show_helper() + 76
16 org.qt-project.QtWidgets 0x0000000102128833 QWidget::setVisible(bool) + 931
17 com.adriweb.firebird 0x00000001000196d0 main + 608
18 com.adriweb.firebird 0x0000000100004b54 start + 52
Yes, yet again a crash with an integrated GPU :( Qt 5.5 really did something weird in this case ; we hope to have that fixed ASAP, == whenever Qt has an update regarding this specific thing.
It's most likely a variation of QTBUG-47588, so support for docks is now disabled in the OSX build, please try the latest binary and report back!
I can confirm that the newest binary starts correctly on OS X Yousemite.
2015-09-19 22:00 GMT+02:00 Fabian Vogt notifications@github.com:
It's most likely a variation of QTBUG-47588, so support for docks is now disabled in the OSX build, please try the latest binary and report back!
— Reply to this email directly or view it on GitHub https://github.com/nspire-emus/firebird/issues/12#issuecomment-141702044 .
Jens Axel Søgaard
Can confirm it works
The newest binary has docks enabled and should still work, it was compiled with Qt 5.4.
When launched with terminal, further inspection reveals the error: "Segmentation fault: 11".