Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

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

11 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

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 ?

Reply by email

Unknown author

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

Reply by email

Unknown author
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

Reply by email

Unknown author

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

Reply by email

Unknown author
to Unknown author: Sorry, I forgot to get the back-trace. Since it has more than 60 lines, I wil l attach…

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

Earlier message 11 lines
----- 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.

Reply by email

Unknown author
to Unknown author: Sorry, I forgot to get the back-trace. Since it has more than 60 lines, I wil l attach…

Dmitry, Bad news.
SVN 18769 Lazarus makes the same fault. The backtrace is attached.

Haruo.

Earlier message 11 lines
----- 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.

Reply by email

Unknown author
to Unknown author: Dmitry, Bad news. SVN 18769 Lazarus makes the same fault. The backtrace is attached.…

Thanks, I have sent the result in another (private) mail.

Haruo.

Earlier message 12 lines
----- 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

Reply by email