Issue 78905 - testtool crashes with aqua-native menus
Summary: testtool crashes with aqua-native menus
Status: CLOSED DUPLICATE of issue 79212
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: 680m217
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ericb
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 20:11 UTC by pavel
Modified: 2007-07-13 10:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2007-06-26 20:11:05 UTC
Hi,

Gregor: looks like we need your help.

In cws aquavcl01, we have semi-working native port for Mac OS X. I'm trying to get testtool working 
and it work perfectly with VCL native menus.

But for Mac OS X aqua, we have implemented so called native menus (on Mac OS X, there is a menubar 
on the top of display, not window). When we start testtool with native menus, the first window is shown 
also with menubar. i can even select e.g. first.bas from the recently opened files.

But when I enter menu Program - Start (sorry, translating from Czech), the testtool crashes:

The stack is:

(gdb) where
#0  0x0005ba94 in AppWin::InitMenu (this=0x2b6ff10, pMenu=0x2b4f850) at /Users/pavel/BUILD/
AQUA/BuildDir/ooo_SRC680_m217_src/basic/source/app/appwin.cxx:253
#1  0x00062ebd in AppError::InitMenu (this=0x0, pMenu=0x2b4f850) at /Users/pavel/BUILD/AQUA/
BuildDir/ooo_SRC680_m217_src/basic/source/app/apperror.cxx:79
#2  0x000417fa in BasicFrame::InitMenu (this=0x2b2eef0, pMenu=0x2b4f850) at /Users/pavel/BUILD/
AQUA/BuildDir/ooo_SRC680_m217_src/basic/source/app/app.cxx:1274
#3  0x015aa2f8 in Menu::Activate ()
#4  0x015a6390 in MenuBar::HandleMenuActivateEvent ()
#5  0x0160635b in Window::~Window ()

The crash happens here:

Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0005ba94 in AppWin::InitMenu (this=0x2b6ff10, pMenu=0x2b4f850) at /Users/pavel/BUILD/AQUA/
BuildDir/ooo_SRC680_m217_src/basic/source/app/appwin.cxx:253
253             TextSelection r = pDataEdit->GetSelection();
(gdb) print pDataEdit
$1 = (DataEdit *) 0x0
(gdb) list
248     // Set up the menu
249     long AppWin::InitMenu( Menu* pMenu )
250     {
251
252             ::rtl::OUString aTemp;
253             TextSelection r = pDataEdit->GetSelection();
254             BOOL bMarked = r.HasRange();
255             pMenu->EnableItem( RID_EDITREPEAT,      (aFind.Len() != 0 ) );
256             pMenu->EnableItem( RID_EDITCUT,         bMarked );
257             pMenu->EnableItem( RID_EDITCOPY,        bMarked );

Do you have any idea how it could be connected? Philipp: do you have any idea?

BTW - I have successfully finished first.bas using VCL menus with screenshots turned on!
Comment 1 gregor.hartmann 2007-07-13 10:53:12 UTC
this is fixed isn't it?
Comment 2 gregor.hartmann 2007-07-13 10:55:45 UTC
.

*** This issue has been marked as a duplicate of 79212 ***
Comment 3 pavel 2007-07-13 10:59:04 UTC
Yes it is, but this issue was filed a bit earlier 8)

Closing duplicate.