On Apr 27, 2007, at 2:31 AM, Abdelrazak Younes wrote:
Abdelrazak Younes wrote:
Bennett Helm wrote:
On the User's List, Scott Lambert reported -- and I can confirm
-- a problem with opening documents when LyX is not currently
running. Simply double-clicking the document icon (or dragging it
onto the LyX icon in the Dock) launches LyX.app, which then
immediately quits. Console spits out the following:
Assertion triggered in lyx::BufferView* lyx::LyXFunc::view()
const by failing check "lyx_view_" in file lyxfunc.C:2105
Try this patch please.
Bennett? This patch should avoid the crash but I am not sure the
file will be loaded. If not, I know how to delay the loading but
I'd like a confirmation first.
I'm here -- just unable to compile until now because of all the
renaming.
With the patch applied, LyX still crashes. Here's what crashdump
provides:
Command: lyx
Path: /Applications/LyX-devel.app/Contents/MacOS/lyx
Parent: WindowServer [60]
Version: 1.5.0 (???)
PID: 19576
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000024
Thread 0 Crashed:
0 org.lyx.lyx 0x00159cfa lyx::LyXView::view() const + 16
(LyXView.cpp:315)
1 org.lyx.lyx 0x0015fb4c
lyx::frontend::GuiApplication::event(QEvent*) + 44
(GuiApplication.cpp:210)
2 org.lyx.lyx 0x00192fa8 QApplicationPrivate::notify_helper
(QObject*, QEvent*) + 438
3 org.lyx.lyx 0x00196d59 QApplication::notify(QObject*,
QEvent*) + 255
4 org.lyx.lyx 0x0016068c
lyx::frontend::GuiApplication::notify(QObject*, QEvent*) + 38
(GuiApplication.cpp:228)
5 org.lyx.lyx 0x001dfdcb QCoreApplication::notifyInternal
(QObject*, QEvent*) + 83
6 org.lyx.lyx 0x001d741f
QApplicationPrivate::globalAppleEventProcessor(AEDesc const*,
AEDesc*, long) + 683
7 com.apple.AE 0x91518fb5 aeDispatchAppleEvent(AEDesc
const*, AEDesc*, unsigned long, unsigned char*) + 147
8 com.apple.AE 0x91518ee6 dispatchEventAndSendReply(AEDesc
const*, AEDesc*) + 44
9 com.apple.AE 0x91518db2 aeProcessAppleEvent + 190
10 com.apple.HIToolbox 0x92dda0e4 AEProcessAppleEvent + 37
11 org.lyx.lyx 0x001da032
QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*,
OpaqueEventRef*, void*) + 3378
12 com.apple.HIToolbox 0x92dd6537 DispatchEventToHandlers
(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1093
13 com.apple.HIToolbox 0x92dd5bdc SendEventToEventTargetInternal
(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 304
14 com.apple.HIToolbox 0x92dd5aa1 SendEventToEventTargetWithOptions
+ 55
15 com.apple.HIToolbox 0x92ddd123 ToolboxEventDispatcherHandler
(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 357
16 com.apple.HIToolbox 0x92dd68ee DispatchEventToHandlers
(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2044
17 com.apple.HIToolbox 0x92dd5bdc SendEventToEventTargetInternal
(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 304
18 com.apple.HIToolbox 0x92ddcfbc SendEventToEventTarget + 56
19 org.lyx.lyx 0x001d6258 qt_mac_send_event
(QFlags<QEventLoop::ProcessEventsFlag>, OpaqueEventRef*,
OpaqueWindowPtr*) + 86
20 org.lyx.lyx 0x0035abbe QEventDispatcherMac::processEvents
(QFlags<QEventLoop::ProcessEventsFlag>) + 624
21 org.lyx.lyx 0x00372db2 QEventLoop::processEvents
(QFlags<QEventLoop::ProcessEventsFlag>) + 54
22 org.lyx.lyx 0x00372f35 QEventLoop::exec
(QFlags<QEventLoop::ProcessEventsFlag>) + 209
23 org.lyx.lyx 0x001e18b9 QCoreApplication::exec() + 147
24 org.lyx.lyx 0x0006dcf3 lyx::LyX::exec(int&, char**) +
1695 (LyX.cpp:462)
25 org.lyx.lyx 0x00002a43 main + 111 (main.cpp:48)
26 org.lyx.lyx 0x00002362 _start + 216
27 org.lyx.lyx 0x00002289 start + 41
Bennett