Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-25 Thread ghf03464
Thanks, I have sent the result in another (private) mail.

Haruo.


- Original Message -
Date: Tue, 24 Feb 2009 17:35:07 +0300
From: dmitry boyarintsev 
To: General mailing list 
Subject: Re: [Lazarus] File open dialog doesn't work on an user account in
        Mac OS X


More tests are required. I've anwered to you in the private email.

Thanks,
Dmitry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-24 Thread dmitry boyarintsev
More tests are required. I've anwered to you in the private email.

Thanks,
Dmitry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-20 Thread ghf03464
Dmitry, Bad news.
SVN 18769 Lazarus makes the same fault.  The backtrace is attached.

Haruo.


- Original Message -
Date: Thu, 19 Feb 2009 11:30:55 +0300
From: dmitry boyarintsev 
To: General mailing list 
Subject: Re: [Lazarus] File open dialog doesn't work on an user account in
        Mac OS X


i don't have ppc mac available, intel-only.
I cannot reproduce the error here, but have made a guess fix. Please
update from svn, and test if it helps.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
SVN Revision of Lazarus is 18769
powerpc-darwin-carbon(beta)

own-2:~/Documents/FPCTest/Laztest blackcat$ gdb 
project1.app/Contents/MacOS/project1
GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:54:33 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared 
libraries .. done

(gdb) run
Starting program: 
/Users/blackcat/Documents/FPCtest/LazTest/project1.app/Contents/MacOS/project1 
Reading symbols for shared libraries 
... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
TCarbonWidgetSet.GetSystemMetrics TODO 50
TCarbonWidgetSet.GetSystemMetrics TODO 49
Reading symbols for shared libraries . done
NavDialogCallback Error: NavCustomControl FilterIndex failed with result -5698

Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x9f761c00 in approximateCube ()
(gdb) bt
#0  0x9f761c00 in approximateCube ()
#1  0x405ed2b8 in ?? ()
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
#2  0x9f761b40 in CGSScanconverterAddCurveToPoint ()
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
#3  0x915c56bc in path_autohinter_iterate ()
Cannot access memory at address 0x405ed2b8
#4  0x9f761988 in addCubeMonotonic ()
#5  0x9f7609d4 in path_dilator_iterate ()
#6  0x9f75f750 in path_iterator_iterate ()
#7  0x9f75fce8 in path_orientation_iterate ()
#8  0x9f75f778 in path_iterator_iterate ()
#9  0x915c5208 in glyph_path_end ()
#10 0x915c5184 in EndPath ()
#11 0x9678ae3c in ProcessCubicOutlinePath ()
#12 0x96773308 in OldGlyphsCacheRun ()
#13 0x96771c70 in _eGCGetGlyphNativeOutlinePath ()
#14 0x96771a38 in GCGetGlyphNativeOutlinePath ()
#15 0x915c49b0 in ats_path_builder_get_paths ()
#16 0x915c3444 in ats_32bit_create_glyph_bitmaps ()
#17 0x9f75f058 in build_missing_bitmaps ()
#18 0x9f75e4dc in lock_bitmaps ()
#19 0x9f75d808 in CGFontLockBitmaps ()
#20 0x9163815c in ripc_DrawGlyphs ()
#21 0x9f75c238 in CGContextDelegateDrawGlyphs ()
#22 0x9f75c188 in drawGlyphs ()
#23 0x9f75bfa0 in CGContextShowGlyphsWithAdvances ()
#24 0x9f6aef70 in TLine::DrawGlyphs ()
#25 0x9f67460c in CTLineDraw ()
#26 0x932de55c in TCoreTextEngine::DrawThemeTextBox ()
#27 0x932dde24 in DataEngine::DrawTextBox ()
#28 0x932ddc84 in HIThemeDrawTextBox ()
#29 0x932026a4 in HISidebarItemsView::DrawItem ()
#30 0x9320229c in HISidebarItemsView::Draw ()
#31 0x931e8a68 in TView::HandleEvent ()
#32 0x931e82dc in TView::ViewEventHandler ()
#33 0x932ac934 in DispatchEventToHandlers ()
#34 0x932ac08c in SendEventToEventTargetInternal ()
#35 0x932abf08 in SendEventToEventTargetWithOptions ()
#36 0x932d7560 in HIView::SendDraw ()
#37 0x93438228 in HIView::RecursiveDrawComposited ()
#38 0x93438348 in HIView::RecursiveDrawComposited ()
#39 0x93438348 in HIView::RecursiveDrawComposited ()
#40 0x93438348 in HIView::RecursiveDrawComposited ()
#41 0x93438348 in HIView::RecursiveDrawComposited ()
#42 0x93438348 in HIView::RecursiveDrawComposited ()
#43 0x93437fa8 in HIView::DrawComposited ()
#44 0x932c711c in UpdateWindowVisibility ()
#45 0x932c6f30 in _ShowHideWindows ()
#46 0x932c6e80 in ShowHide ()
#47 0x932efab0 in ShowWindow ()
#48 0x931f9aec in TBrowseDialog::StartDialog ()
#49 0x93200cec in NavGetFileDialog::StartDialog ()
#50 0x931e7a14 in __NavDialog::Run ()
#51 0x931e7948 in NavDialogRun ()
#52 0x0024b2f8 in TCARBONWSFILEDIALOG__SHOWMODAL (ACOMMONDIALOG=0x13d40d0, 
pvmt=0x137b2d0) at carbonwsdialogs.pp:336
#53 0x001f145c in TCOMMONDIALOG__DOEXECUTE (this=0x13d40d0) at 
commondialog.inc:99
#54 0x001f1b58 in TFILEDIALOG__DOEXECUTE (this=0x13d40d0) at filedialog.inc:107

Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-19 Thread ghf03464
Dmitry, Thanks for rapid fix. But I am not accustomed to building Lazarus as a
n application bundle (I used to get pre-built binaries from the snapshots).  P
lease allow me a few days of trial.

Haruo


- Original Message -
Date: Thu, 19 Feb 2009 11:30:55 +0300
From: dmitry boyarintsev 
To: General mailing list 
Subject: Re: [Lazarus] File open dialog doesn't work on an user account in
        Mac OS X


i don't have ppc mac available, intel-only.
I cannot reproduce the error here, but have made a guess fix. Please
update from svn, and test if it helps.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-19 Thread dmitry boyarintsev
i don't have ppc mac available, intel-only.
I cannot reproduce the error here, but have made a guess fix. Please
update from svn, and test if it helps.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-18 Thread ghf03464
Sorry, I forgot to get the back-trace.  Since it has more than 60 lines, I wil
l attach it.  It works in this ML?

Haruo.
(gdb) bt
#0  0x9f761c00 in approximateCube ()
#1  0x405ed2b8 in ?? ()
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
#2  0x9f761b40 in CGSScanconverterAddCurveToPoint ()
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
Cannot access memory at address 0x405ed2b8
#3  0x915c56bc in path_autohinter_iterate ()
Cannot access memory at address 0x405ed2b8
#4  0x9f761988 in addCubeMonotonic ()
#5  0x9f7609d4 in path_dilator_iterate ()
#6  0x9f75f750 in path_iterator_iterate ()
#7  0x9f75fce8 in path_orientation_iterate ()
#8  0x9f75f778 in path_iterator_iterate ()
#9  0x915c5208 in glyph_path_end ()
#10 0x915c5184 in EndPath ()
#11 0x9678ae3c in ProcessCubicOutlinePath ()
#12 0x96773308 in OldGlyphsCacheRun ()
#13 0x96771c70 in _eGCGetGlyphNativeOutlinePath ()
#14 0x96771a38 in GCGetGlyphNativeOutlinePath ()
#15 0x915c49b0 in ats_path_builder_get_paths ()
#16 0x915c3444 in ats_32bit_create_glyph_bitmaps ()
#17 0x9f75f058 in build_missing_bitmaps ()
#18 0x9f75e4dc in lock_bitmaps ()
#19 0x9f75d808 in CGFontLockBitmaps ()
#20 0x9163815c in ripc_DrawGlyphs ()
#21 0x9f75c238 in CGContextDelegateDrawGlyphs ()
#22 0x9f75c188 in drawGlyphs ()
#23 0x9f75bfa0 in CGContextShowGlyphsWithAdvances ()
#24 0x9f6aef70 in TLine::DrawGlyphs ()
#25 0x9f67460c in CTLineDraw ()
#26 0x932de55c in TCoreTextEngine::DrawThemeTextBox ()
#27 0x932dde24 in DataEngine::DrawTextBox ()
#28 0x932ddc84 in HIThemeDrawTextBox ()
#29 0x932026a4 in HISidebarItemsView::DrawItem ()
#30 0x9320229c in HISidebarItemsView::Draw ()
#31 0x931e8a68 in TView::HandleEvent ()
#32 0x931e82dc in TView::ViewEventHandler ()
#33 0x932ac934 in DispatchEventToHandlers ()
#34 0x932ac08c in SendEventToEventTargetInternal ()
#35 0x932abf08 in SendEventToEventTargetWithOptions ()
#36 0x932d7560 in HIView::SendDraw ()
#37 0x93438228 in HIView::RecursiveDrawComposited ()
#38 0x93438348 in HIView::RecursiveDrawComposited ()
#39 0x93438348 in HIView::RecursiveDrawComposited ()
#40 0x93438348 in HIView::RecursiveDrawComposited ()
#41 0x93438348 in HIView::RecursiveDrawComposited ()
#42 0x93438348 in HIView::RecursiveDrawComposited ()
#43 0x93437fa8 in HIView::DrawComposited ()
#44 0x932c711c in UpdateWindowVisibility ()
#45 0x932c6f30 in _ShowHideWindows ()
#46 0x932c6e80 in ShowHide ()
#47 0x932efab0 in ShowWindow ()
#48 0x931f9aec in TBrowseDialog::StartDialog ()
#49 0x93200cec in NavGetFileDialog::StartDialog ()
#50 0x931e7a14 in __NavDialog::Run ()
#51 0x931e7948 in NavDialogRun ()
#52 0x0024b398 in TCARBONWSFILEDIALOG__SHOWMODAL (ACOMMONDIALOG=0x13d40d0, 
pvmt=0x137b2d0) at carbonwsdialogs.pp:336
#53 0x001f14fc in TCOMMONDIALOG__DOEXECUTE (this=0x13d40d0) at 
commondialog.inc:99
#54 0x001f1bf8 in TFILEDIALOG__DOEXECUTE (this=0x13d40d0) at filedialog.inc:107
#55 0x001f267c in TOPENDIALOG__DOEXECUTE (this=0x13d40d0) at filedialog.inc:239
#56 0x001f10f4 in TCOMMONDIALOG__EXECUTE (this=0x13d40d0) at commondialog.inc:37
#57 0x001f19a8 in TFILEDIALOG__EXECUTE (this=0x13d40d0) at filedialog.inc:62
#58 0x0003dee8 in TFORM1__FORMCREATE (SENDER=0x1344550, this=0x1344550) at 
unit1.pas:33
#59 0x0002ccac in TCUSTOMFORM__DOCREATE (this=0x1344550) at customform.inc:656
#60 0x0002f5e8 in TCUSTOMFORM__CREATE (AOWNER=0x1390010, vmt=0x0, 
this=0x1344550) at customform.inc:1445
#61 0x00031d80 in TFORM__CREATE (THEOWNER=0x1390010, vmt=0x1, this=0x1344550) 
at customform.inc:2205
#62 0x0003ae10 in TAPPLICATION__CREATEFORM (INSTANCECLASS=, 
REFERENCE=void, this=0x1390010) at application.inc:1882
#63 0x2884 in PASCALMAIN () at project1.lpr:18
#64 0x000243e0 in SYSTEM_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR ()
#65 0x224c in _start ()
#66 0x1f50 in start ()
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-18 Thread ghf03464
Dmitry,

I wrote a small test program named 'project1' in Lazarus. Essentially, the pro
gram contains only three lines as following;

procedure TForm1.FormCreate(Sender: TObject);
begin
  OpenDialog1.execute
end;

Under 32K-colour mode, the gdb said:

(gdb) run
Starting program: /Users/blackcat/Documents/FPCtest/LazTest/project1.app/Conte
nts/MacOS/project1 
Reading symbols for shared libraries .
.. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
TCarbonWidgetSet.GetSystemMetrics TODO 50
TCarbonWidgetSet.GetSystemMetrics TODO 49
Reading symbols for shared libraries . done
NavDialogCallback Error: NavCustomControl FilterIndex failed with result -5698
Reading symbols for shared libraries ... done
Reading symbols for shared libraries  done
Reading symbols for shared libraries .. done


Under errorous 16M-colour mode, I got:

(gdb) run
Starting program: /Users/blackcat/Documents/FPCtest/LazTest/project1.app/Conte
nts/MacOS/project1 
TCarbonWidgetSet.GetSystemMetrics TODO 50
TCarbonWidgetSet.GetSystemMetrics TODO 49
NavDialogCallback Error: NavCustomControl FilterIndex failed with result -5698

Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x9f761c00 in approximateCube ()

These results help you?

Sincerely,
Haruo

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-18 Thread ghf03464
Dmitry wrote : 

>It would be of a great help if you create a backtrace, so we can find
>what's actually causing the bug. Please read this page, to learn about 
>creating a bug trace:
>http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB/ja

Thank you for kind advise. Unfortunately I had been under the digest mode, so 
that I have noticed your post (and my re-post X-( ) just now.

After posting, I have tried further installations onto other Mac's (all run un
der 10.4.11).  The results were :
1. iBook G4 12inch - NG
2. iBook G4 14inch - NG
3. QuickSilver G4 - OK
4. iMac G5 - OK

The most apparent difference between the NG / OK machines was the maximum scre
en size. In the NG group, it was 1024x768. In the OK group, it was bigger.  An
d I found a work-around for this problem:  to change colour-depth from 32bit(1
6M-colour)  to 32K-colour mode, though some unstable actions still remain.

I will try the back-tracer you have mentioned and post the result.

Thank you.
Haruo

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-17 Thread ghf03464
Hello, folks, I like to program in Pascal for so many years, dating back to th
e Pascal/MT+, and greatly appreciate the FPC and Lazarus.

Now I have a problem in using Lazarus on an user account in Mac OS X 10.4.11 (
Japanese).  If I log-in on the administrator account, Lazarus and applications
 built by Lazarus work well.  But if I use daily user account, Lazarus itself 
and Lazarus-made applications make an error at opening the file dialog.  For e
xample on the IDE, clicking the right button at the lazarus directory entry (a
t Enviromnent -> Options) arises a floating point exception and IDE goes to di
e.  I guess it may do something with perivilege system but cannot troubleshoot
 further.  Would you like to tell me any idea to solve the problem ?

I tried Lazarus 0.9.26 for Mac OS X PPC,  and recent snapshots (lazarus-0.9.26
.1.18700-20090216-powerpc-macosx.dmg and lazarus-0.9.27.18700-20090216-powerpc
-macosx.dmg), in vain.

Haruo

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-16 Thread dmitry boyarintsev
>.  Would you like to tell me any idea to solve the problem?
Please report the bug to the manits: bugs.freepascal.org

It would be of a great help if you create a backtrace, so we can find
what's actually causing the bug. Please read this page, to learn about
creating a bug trace:
http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB/ja

Thanks,
Dmitry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] File open dialog doesn't work on an user account in Mac OS X

2009-02-16 Thread ghf03464
Hello, folks, I like to program in Pascal for so many years, dating back to th
e Pascal/MT+, and greatly appreciate the FPC and Lazarus.

Now I have a problem in using Lazarus on an user account in Mac OS X 10.4.11 (
Japanese).  If I log-in on the administrator account, Lazarus and applications
 built by Lazarus work well.  But if I use daily user account, Lazarus itself 
and Lazarus-made applications make an error at opening the file dialog.  For e
xample on the IDE, clicking the right button at the lazarus directory entry (a
t Enviromnent -> Options) arises a floating point exception and IDE goes to di
e.  I guess it may do something with perivilege system but cannot troubleshoot
 further.  Would you like to tell me any idea to solve the problem ?

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus