Lazarus
Installation => macOS / Mac OS X => Topic started by: Davide Gurgone on April 08, 2010, 12:09:37 am
-
hi all,
I'm quite new to lazarus.
Yesterday I successfully ported on mac os x an MS Windows application, but today, after updating sources, lazarus could not start itself.
I can see Lazarus Icon appears and disappears in a few seconds.
Exists a startup log to make a trouble diagnose or, better, someone knows the way to solve it?
Thanks a lot,
Davide.
-
Exists a startup log to make a trouble diagnose or, better, someone knows the way to solve it?
You can try to launch the lazarus from the Terminal:
cd to_lazarus_directory
./Lazarus.app/Contents/MacOS/lazarus
copy all the output here.
-
Hi,
Thank's a lot for your reply!
I launched lazarus from terminal, it logs a lot of things, than starts itself properly. I don't know why.
After terminal launch, I opened again lazarus, but now double clicking on icon, than I selected newer project sources.. Now both, Lazarus and my application runs...
I really don't understand...
Ciao, Davide.
-
Hello all,
i am new to lazarus and have found this post which meets my problem - Lazarus stops immediately after starting.
I have tryed the suggestion from "skalogryz" and tried to start from terminal.
Following output after start:
my-mac-pro:lazarus riko$ ./Lazarus.app/Contents/MacOS/lazarus
[FORMS.PP] ExceptionOccurred
Sender=EPrinter
Exception=Printer " " does't exists.
Stack trace:
$00737E2A
$007366D1
$0073640A
$00737705
TApplication.HandleException Printer " " does't exists.
Stack trace:
$00737E2A
$007366D1
$0073640A
$00737705
exception at 00737E2A:
Printer " " does't exists.
my-mac-pro:lazarus riko$
What is this printer??
I have installed 3 printers. But no one with name " "....
Any ideas? Please help....
Thanks riko.
-
1) do you have any printers installed?
2) what's Lazarus version you're using?
3) what's OSX version (intel or powerpc)
The problem is with printer's component. It's expected to be fixed in the trunk (snapshots versions). It could be resolved by rebuilding Lazarus without these components or by installing newer Lazarus version.
-
1) do you have any printers installed?
2) what's Lazarus version you're using?
3) what's OSX version and CPU (intel or powerpc)?
The problem is with printer's component. It's expected to be fixed in the trunk (snapshots versions). It could be resolved by rebuilding Lazarus without these components or by installing newer Lazarus version.
-
Hello,
thanks for your reply..
1) i have installed 3 printers (one of them is online).
2+3) i have downloaded the latest version for mac osx intel. Following the install log:
May 18 19:34:26 riko-mac-pro Installer[2435]: Hardware: MacPro3,1 @ 2.80 GHz (x 8 ), 10240 MB RAM
May 18 19:34:26 riko-mac-pro Installer[2435]: Running OS Build: Mac OS X 10.6.3 (10D573)
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: TMPDIR=/var/folders/Wg/WgST5KVIHPShOSKPyBT7a++++TI/-Tmp-/
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: SHELL=/bin/bash
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: HOME=/Users/riko
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: USER=riko
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: LOGNAME=riko
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: DISPLAY=/tmp/launch-UitPxH/org.x:0
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: SSH_AUTH_SOCK=/tmp/launch-NJxmHo/Listeners
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: Apple_PubSub_Socket_Render=/tmp/launch-PV62Kf/Render
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: COMMAND_MODE=unix2003
May 18 19:34:26 riko-mac-pro Installer[2435]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:3
May 18 19:34:26 riko-mac-pro Installer[2435]: Free Pascal Compiler Installation Log
May 18 19:34:26 riko-mac-pro Installer[2435]: Opened from: /Volumes/fpc-2.2.4.intel-macosx/fpc-2.2.4.intel-macosx.pkg
May 18 19:34:26 riko-mac-pro Installer[2435]: fileURLForURL = x-disc://fpc-2.2.4.intel-macosx/fpc-2.2.4.intel-macosx.pkg
May 18 19:34:26 riko-mac-pro Installer[2435]: fileURLForURL = file://localhost/Volumes/fpc-2.2.4.intel-macosx/fpc-2.2.4.intel-macosx.pkg
May 18 19:35:05 riko-mac-pro runner[2440]: Administrator authorization granted.
May 18 19:35:05 riko-mac-pro Installer[2435]: ================================================================================
May 18 19:35:05 riko-mac-pro Installer[2435]: User picked Standard Install
May 18 19:35:05 riko-mac-pro Installer[2435]: Choices selected for installation:
May 18 19:35:05 riko-mac-pro Installer[2435]: Aktualisieren: "Free Pascal Compiler"
May 18 19:35:05 riko-mac-pro Installer[2435]: fpc-2.2.4.intel-macosx.pkg : org.freepascal.fpc : 2.2.4.2.2
May 18 19:35:05 riko-mac-pro Installer[2435]: ================================================================================
.
.
May 18 19:35:43 riko-mac-pro Installer[2515]: ================================================================================
May 18 19:35:43 riko-mac-pro Installer[2515]: User picked Standard Install
May 18 19:35:43 riko-mac-pro Installer[2515]: Choices selected for installation:
May 18 19:35:43 riko-mac-pro Installer[2515]: Aktualisieren: "FPC Xcode templates"
May 18 19:35:43 riko-mac-pro Installer[2515]: fpc-xcode-2.2.4.pkg : org.freepascal.xcode : 2.2.4.2.2
May 18 19:35:43 riko-mac-pro Installer[2515]: ================================================================================
.
.
May 18 19:36:24 riko-mac-pro Installer[2526]: ================================================================================
May 18 19:36:24 riko-mac-pro Installer[2526]: User picked Standard Install
May 18 19:36:24 riko-mac-pro Installer[2526]: Choices selected for installation:
May 18 19:36:24 riko-mac-pro Installer[2526]: Aktualisieren: "Free Pascal Sources"
May 18 19:36:24 riko-mac-pro Installer[2526]: fpcsrc-2.2.4-20090929.pkg : org.freepascal.fpc.source : 2.2.4.2.24
May 18 19:36:24 riko-mac-pro Installer[2526]: ================================================================================
.
.
May 18 19:37:19 riko-mac-pro Installer[2539]: ================================================================================
May 18 19:37:19 riko-mac-pro Installer[2539]: User picked Standard Install
May 18 19:37:19 riko-mac-pro Installer[2539]: Choices selected for installation:
May 18 19:37:19 riko-mac-pro Installer[2539]: Aktualisieren: "Lazarus"
May 18 19:37:19 riko-mac-pro Installer[2539]: lazarus.pkg : org.freepascal.lazarus.www : 0.9.28.0.9282
May 18 19:37:19 riko-mac-pro Installer[2539]: ================================================================================
-
Hello,
since i don't know how to rebuild lazarus without the printing components, i have tried somewhat else.
I have installed one of my printers again with the name " "...and guess what...it works...lazarus starts up without an error.
Thank you again...
riko.
-
Ok, I had rejoiced too soon...
1) mac-os renames the " " printer after closeing the systemsettings to "_"...afterwards lazarus stops running again
2) i cant run a simple application from IDE...
a lot of warnings like
ld: warning: unknown stabs type 0xE0 in /Developer/lazarus/lcl/units/i386-darwin/comctrls.o
ld: warning: unknown stabs type 0xC0 in /Developer/lazarus/lcl/units/i386-darwin/filectrl.o
ld: warning: unknown stabs type 0xE0 in /Developer/lazarus/lcl/units/i386-darwin/filectrl.o
ld: warning: unknown stabs type 0xC0 in /Developer/lazarus/lcl/units/i386-darwin/carbon/carbonwsdialogs.o
and
[TCompiler.Compile] end
[TCmdLineDebugger] Debug PID: 557
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the \"file\" command."
[Debugger] Running GDB version: Apple version gdb-1461.2
[TDebugger.SetFileName] "/tmp/project1.app"
[TMainIDE.DoRunProject] B TGDBMIDebugger
TGDBMIDebugger.StartDebugging WorkingDir="/tmp/"
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context."
[Debugger] Log output: &"info functions FPC_CPUINIT\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"info file\n"
[Debugger] File type: mach-o-le
[Debugger] Entry point: 0x00002650
[WARNING] Debugger: Unexpected async-record: =shlibs-updated
[Debugger] Log output: &"info program\n"
[WARNING] Debugger: Unknown record: macosx_debug_inferior_status: current status:
[WARNING] Debugger: Unknown record: inferior task: 0x4103
[WARNING] Debugger: Unknown record: [SIGNAL THREAD]
[WARNING] Debugger: Unknown record: macosx_debug_inferior_status: information on debugger task:
[WARNING] Debugger: Unknown record: macosx_debug_inferior_status: information on inferior task:
[WARNING] Debugger: Unknown record: macosx_debug_inferior_status: information on debugger threads:
[WARNING] Debugger: Unknown record: thread: 0x60f
[WARNING] Debugger: Unknown record: thread: 0x1703
[WARNING] Debugger: Unknown record: thread: 0x1b03
[WARNING] Debugger: Unknown record: thread: 0x2003
[WARNING] Debugger: Unknown record: thread: 0x3903
[WARNING] Debugger: Unknown record: thread: 0x4303
[WARNING] Debugger: Unknown record: thread: 0x4503
[WARNING] Debugger: Unknown record: macosx_debug_inferior_status: information on inferior threads:
[WARNING] Debugger: Unknown record: thread: 0x4203
TDebugger.ReqCmd failed: Run
[TMainIDE.DoRunProject] END
Afterwards i can only "halt" the project...
Any suggestions?
-
Since i don't know how to rebuild lazarus without the printing components, i have tried somewhat else.
I have installed one of my printers again with the name " "...and guess what...it works...lazarus starts up without an error.
Thank you again...
1st) To rebuild the lazarus open Terminal "cd" to Lazarus directroy and run command "make"
this should rebuild the Lazarus, removing Printers components.
However, riko, do you have time and wish to fix the printers bug? I cannot reproduce the error on my Mac. However users are experiencing the problem from time-to-time and it needs to be fixed.
2nd) if you want to run an application from IDE, you can try to switch the debugger off. (environment->Options->Debugger select "none") Otherwise, fixing debugging issues, might require some additional information from you, see this thread: http://forum.lazarus.freepascal.org/index.php/topic,7411.60.html
-
Hello,
yes if i can i will try to fix the problem...how?
-
yes if i can i will try to fix the problem...how?
You'll need to get Lazarus from SVN trunk.
run Terminal and execute following commands there
cd ~
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
this will take some time (and internet traffic)
don't close the Terminal. after checkout execute following commands
cd lazarus
make
this should build lazarus.
open the newly built IDE with the command:
open lazarus.app
in Environment->Files change "Lazarus directory" to "/Users/you_user_name/lazarus"
-
Ok, it's done.
During compile there where a lot of warnings like...
ld: warning: unknown stabs type 0xC0 in /Users/riko/Entwicklung/lazarus/components/synedit/units/i386-darwin/synregexpr.o
ld: warning: unknown stabs type 0xE0 in /Users/riko/Entwicklung/lazarus/components/synedit/units/i386-darwin/synregexpr.o
ld: warning: unknown stabs type 0xC0 in /Users/riko/Entwicklung/lazarus/lcl/units/i386-darwin/filectrl.o
ld: warning: unknown stabs type 0xE0 in /Users/riko/Entwicklung/lazarus/lcl/units/i386-darwin/filectrl.o
ld: warning: unknown stabs type 0xC0 in /Users/riko/Entwicklung/lazarus/lcl/units/i386-darwin/ldocktree.o
But it startsup now with no error...also the debugger works...i have not changed any code...
riko.
-
I have seen some miss behaivior in the editor of the IDE.
If the Antialiasing is switched off and you mark some lines they move...also if you edit the line the characters are destroyed...
riko.
-
If the Antialiasing is switched off and you mark some lines they move...also if you edit the line the characters are destroyed...
what's your editor font setting?
-
I have tried it with Andale Mono and Courier...
It looks like it have something to do if there is a 'String' in the code line...
-
just try to keep anti-aliasing enabled.
-
Ok.
If have found that the debuger does not handle the try-except statements!...it crashes if it should go to the except code block.
(gdb)
<-stack-list-frames 2 2>
^done,stack={frame={level="2",addr="0x00044605",fp="0xbfffda50",func="TFORM1__BUTTON1CLICK",optimized="0",file="unit1.pas",fullname="/Users/riko/Entwicklung/test/unit1.pas",line="42",dir="/Users/riko/Entwicklung/test/"}},time={wallclock="0.00014",user="0.00014",system="0.00000",start="1274267817.098614",end="1274267817.098757"}
(gdb)
<-stack-select-frame 2>
^done,time={wallclock="0.00007",user="0.00006",system="0.00000",start="1274267817.098923",end="1274267817.098989"}
(gdb)
<-exec-step>
~"Single stepping until exit from function SYSUTILS_RUNERRORTOEXCEPT$LONGINT$POINTER$POINTER, \n"
~"which has no line number information.\n"
^running
(gdb)
*stopped,time={wallclock="0.01705",user="0.00551",system="0.01128",start="1274267817.616222",end="1274267817.633275"},reason="breakpoint-hit",commands="no",times="1",bkptno="32",thread-id="1"
(gdb)
<-data-evaluate-expression ^^shortstring(^pointer($rdi)^+24)^^>
^error,msg="Invalid cast."
(gdb)
<x/s ^Exception($rdi)^.FMessage>
&"x/s ^Exception($rdi)^.FMessage\n"
-
What OS, what lazarus version
My guess... you are on OSX intel 64bit ?
-
You are right...
May 18 19:34:26 riko-mac-pro Installer[2435]: Hardware: MacPro3,1 @ 2.80 GHz (x 8 ), 10240 MB RAM
May 18 19:34:26 riko-mac-pro Installer[2435]: Running OS Build: Mac OS X 10.6.3 (10D573)
Lazarus 2.4.0
riko.
-
it looks like it somehow cannot find the shortstring symbol
what if you just add a dummy var s:shortstring somewhere in your code ?
-
i have added a shortstring var at the procedure where the try-except is...same error, no change.
(gdb)
<-stack-info-depth>
^done,depth="57",time={wallclock="0.02917",user="0.02193",system="0.00676",start="1274423088.325308",end="1274423088.354477"}
(gdb)
<-stack-list-arguments 1 0 0>
^done,stack-args={frame={level="0",args={}}},time={wallclock="0.00003",user="0.00003",system="0.00000",start="1274423088.354715",end="1274423088.354744"}
(gdb)
<-stack-list-frames 0 0>
^done,stack={frame={level="0",addr="0x00024780",fp="0xbfffd5f0",func="SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER",optimized="0"}},time={wallclock="0.00010",user="0.00010",system="0.00001",start="1274423088.354903",end="1274423088.355006"}
(gdb)
<-stack-list-arguments 1 1 1>
^done,stack-args={frame={level="1",args={}}},time={wallclock="0.00003",user="0.00002",system="0.00000",start="1274423088.355185",end="1274423088.355212"}
(gdb)
<-stack-list-frames 1 1>
^done,stack={frame={level="1",addr="0x000248ad",fp="0xbfffd610",func="SYSTEM_HANDLEERRORFRAME$LONGINT$POINTER",optimized="0"}},time={wallclock="0.00008",user="0.00008",system="0.00000",start="1274423088.355365",end="1274423088.355445"}
(gdb)
<-stack-list-arguments 1 2 2>
^done,stack-args={frame={level="2",args={{name="SENDER",value="(^TOBJECT) 0x177a0c0"},{name="this",value="(TFORM1) 0x177a8e0"}}}},time={wallclock="0.00017",user="0.00013",system="0.00005",start="1274423088.355614",end="1274423088.355788"}
(gdb)
<-stack-list-frames 2 2>
^done,stack={frame={level="2",addr="0x000445ff",fp="0xbfffda50",func="TFORM1__BUTTON1CLICK",optimized="0",file="unit1.pas",fullname="/Users/riko/Entwicklung/test/unit1.pas",line="48",dir="/Users/riko/Entwicklung/test/"}},time={wallclock="0.00066",user="0.00014",system="0.00015",start="1274423088.355940",end="1274423088.356603"}
(gdb)
<-stack-select-frame 2>
^done,time={wallclock="0.00006",user="0.00005",system="0.00000",start="1274423088.356785",end="1274423088.356840"}
(gdb)
<-stack-list-frames 0 0>
^done,stack={frame={level="0",addr="0x00024780",fp="0xbfffd5f0",func="SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER",optimized="0"}},time={wallclock="0.00009",user="0.00009",system="0.00001",start="1274423088.408020",end="1274423088.408111"}
(gdb)
<-exec-continue>
^running
(gdb)
*stopped,time={wallclock="0.00144",user="0.00054",system="0.00087",start="1274423138.525024",end="1274423138.526461"},reason="breakpoint-hit",commands="no",times="1",bkptno="2",thread-id="1"
(gdb)
<-data-evaluate-expression ^^shortstring(^pointer($rdi)^+24)^^>
^error,msg="Invalid cast."
(gdb)
<x/s ^Exception($rdi)^.FMessage>
&"x/s ^Exception($rdi)^.FMessage\n"
-
i have checked the compiler settings:
check compilersettings:
There is a older .ppu file as the compiler:
/usr/local/lib/fpc/2.4.0/units/i386-darwin/rtl/system.ppu
/usr/local/bin/ppc386 -MObjFPC -Scghi -O1 -gl -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' -WG -va -l -Fi/Users/riko/Entwicklung/test/lib/i386-darwin/ -Fu/Users/riko/Entwicklung/lazarus/lcl/units/i386-darwin/ -Fu/Users/riko/Entwicklung/lazarus/lcl/units/i386-darwin/carbon/ -Fu/Users/riko/Entwicklung/lazarus/packager/units/i386-darwin/ -Fu. -FUlib/i386-darwin/ -dLCL -dLCLcarbon /tmp/testcompileroptions.pas
WARNUNG: relativer Unitpfad in der fpc.cfg: ./tmp/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/rtl/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/zlib/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/xforms/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/x11/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/utmp/
.
.
.
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/aspell/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd22/
WARNUNG: relativer Unitpfad in der fpc.cfg: ./usr/local/bin/
WARNUNG: ppu ist zweimal vorhanden: /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd20/httpd.ppu, /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd13/httpd.ppu
WARNUNG: ppu ist zweimal vorhanden: /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd22/apr.ppu, /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd20/apr.ppu
WARNUNG: ppu ist zweimal vorhanden: /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd22/apriconv.ppu, /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd20/apriconv.ppu
WARNUNG: ppu ist zweimal vorhanden: /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd22/aprutil.ppu, /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd20/aprutil.ppu
WARNUNG: ppu ist zweimal vorhanden: /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd22/httpd.ppu, /usr/local/lib/fpc/2.4.0/units/i386-darwin/httpd20/httpd.ppu
WARNUNG: ppu ist zweimal vorhanden: /usr/local/lib/fpc/2.4.0/units/i386-darwin/univint/Dialogs.ppu, /usr/local/lib/fpc/2.4.0/units/i386-darwin/fv/dialogs.ppu
could this be also part of the problem?
-
maybe this could also be helpful...if i can help testing something let me know...
[0x0-0x16016].lazarus[187] *** Exception handlers were not properly removed. Some code has jumped or returned out of an NS_DURING...NS_HANDLER region without using the NS_VOIDRETURN or NS_VALUERETURN macros.
[0x0-0x16016].lazarus[187] lung/lazarus/debugger/debugger.pp
[0x0-0x16016].lazarus[187] $0051FBB1 TDEBUGMANAGER__RUNDEBUGGER, line 2547 of /Users/riko/Entwicklung/lazarus/ide/debugmanager.pas
[0x0-0x16016].lazarus[187] $0051B992 TDEBUGMANAGER__ONRUNTIMER, line 1359 of /Users/riko/Entwicklung/lazarus/ide/debugmanager.pas
[0x0-0x16016].lazarus[187] LAZARUS
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.company.project1 0x00020680 fpc_raiseexception + 0
1 com.company.project1 0x0007af24 SYSUTILS_RUNERRORTOEXCEPT$LONGINT$POINTER$POINTER + 1796
2 com.company.project1 0x00024728 FPC_BREAK_ERROR + 72
3 com.company.project1 0x0004457f UNIT1_TFORM1_$__BUTTON1CLICK$TOBJECT + 287 (unit1.pas:50)
4 com.company.project1 0x0015dd91 CONTROLS_TCONTROL_$__CLICK + 161 (control.inc:2267)
5 com.company.project1 0x001f7bef STDCTRLS_TBUTTONCONTROL_$__CLICK + 31 (buttoncontrol.inc:73)
6 com.company.project1 0x001f8266 STDCTRLS_TCUSTOMBUTTON_$__CLICK + 70 (buttons.inc:175)
7 com.company.project1 0x001f87c1 STDCTRLS_TBUTTON_$__CLICK + 17 (buttons.inc:342)
8 com.company.project1 0x001f7a6a STDCTRLS_TBUTTONCONTROL_$__WMDEFAULTCLICKED$TLMESSAGE + 26 (buttoncontrol.inc:27)
9 com.company.project1 0x0001f93a SYSTEM_TOBJECT_$__DISPATCH$formal + 154
10 com.company.project1 0x001533c0 CONTROLS_TWINCONTROL_$__WNDPROC$TLMESSAGE + 800 (wincontrol.inc:5149)
11 com.company.project1 0x001c54c9 LCLMESSAGEGLUE_DELIVERMESSAGE$TOBJECT$formal$$LONGINT + 185 (lclmessageglue.pas:112)
12 com.company.project1 0x001c55cc LCLMESSAGEGLUE_SENDSIMPLEMESSAGE$TCONTROL$LONGWORD$$LONGINT + 44 (lclmessageglue.pas:143)
13 com.company.project1 0x001c5a56 LCLMESSAGEGLUE_LCLSENDCLICKEDMSG$TCONTROL$$LONGINT + 22 (lclmessageglue.pas:522)
14 com.company.project1 0x0020c2a8 CARBONBUTTONS_TCARBONCUSTOMBUTTON_$__HIT$SMALLINT + 24 (carbonbuttons.pp:327)
15 com.company.project1 0x002005f4 CARBONPRIVATE_CARBONCONTROL_HIT$EVENTHANDLERCALLREF$EVENTREF$TCARBONWIDGET$$LONGINT + 212 (carbonprivatecontrol.inc:49)
16 com.apple.HIToolbox 0x972130a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
17 com.apple.HIToolbox 0x97212370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
18 com.apple.HIToolbox 0x97234b55 SendEventToEventTarget + 52
19 com.apple.HIToolbox 0x97283f7a SendControlHit(HIView*, OpaqueEventRef*, short, unsigned long) + 296
20 com.apple.HIToolbox 0x97283dfb HIView::NotifyControlHit(OpaqueEventRef*, short, unsigned long) + 45
21 com.apple.HIToolbox 0x972e884b HIView::ClickInternal(CGPoint const&, unsigned long, void (*)(OpaqueControlRef*, short), OpaqueEventRef*, bool) + 245
22 com.apple.HIToolbox 0x972e9e04 HIView::ClickSelf(OpaqueEventRef*) + 368
23 com.apple.HIToolbox 0x97225e21 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2363
24 com.apple.HIToolbox 0x972130a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
25 com.apple.HIToolbox 0x97212370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
26 com.apple.HIToolbox 0x97234b55 SendEventToEventTarget + 52
27 com.apple.HIToolbox 0x97282e46 HIView::Click(OpaqueEventRef*) + 480
28 com.apple.HIToolbox 0x97282c13 HandleClickAsHIView(OpaqueWindowPtr*, OpaqueEventRef*) + 151
29 com.apple.HIToolbox 0x972814f0 HandleWindowClick(OpaqueWindowPtr*, Point, short, unsigned long, OpaqueEventRef*) + 491
30 com.apple.HIToolbox 0x97280ff3 HandleMouseEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) + 786
31 com.apple.HIToolbox 0x972808fe StandardWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 93
32 com.apple.HIToolbox 0x972130a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
33 com.apple.HIToolbox 0x97212370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
34 com.apple.HIToolbox 0x97234b55 SendEventToEventTarget + 52
35 com.apple.HIToolbox 0x9724663b ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1257
36 com.apple.HIToolbox 0x972134fa DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2672
37 com.apple.HIToolbox 0x97212370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
38 com.apple.HIToolbox 0x97234b55 SendEventToEventTarget + 52
39 com.company.project1 0x00181fe2 CARBONINT_TCARBONWIDGETSET_$__APPPROCESSMESSAGES + 370 (carbonobject.inc:554)
40 com.company.project1 0x0003f8e6 FORMS_TAPPLICATION_$__HANDLEMESSAGE + 38 (application.inc:1222)
41 com.company.project1 0x0003fdb1 FORMS_TAPPLICATION_$__RUNLOOP + 65 (application.inc:1355)
42 com.company.project1 0x0018131d CARBONINT_EVENTLOOPEVENTHANDLER$EVENTHANDLERCALLREF$EVENTREF$POINTER$$LONGINT + 253 (carbonobject.inc:126)
43 com.apple.HIToolbox 0x972130a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
44 com.apple.HIToolbox 0x97212370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
45 com.apple.HIToolbox 0x972121cf SendEventToEventTargetWithOptions + 58
46 com.apple.HIToolbox 0x97246d10 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 3006
47 com.apple.HIToolbox 0x972134fa DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2672
48 com.apple.HIToolbox 0x97212370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
49 com.apple.HIToolbox 0x97234b55 SendEventToEventTarget + 52
50 com.apple.HIToolbox 0x973bddf7 ToolboxEventDispatcher + 86
51 com.apple.HIToolbox 0x973bdf2f RunApplicationEventLoop + 243
52 com.company.project1 0x00181e29 CARBONINT_TCARBONWIDGETSET_$__APPRUN$TAPPLICATIONMAINLOOP + 393 (carbonobject.inc:498)
53 com.company.project1 0x0003fd68 FORMS_TAPPLICATION_$__RUN + 104 (application.inc:1344)
54 com.company.project1 0x00011071 PASCALMAIN + 81 (project1.lpr:19)
55 com.company.project1 0x0002df05 FPC_SYSTEMMAIN + 69
56 com.company.project1 0x00010ff9 _start + 208
57 com.company.project1 0x00010f28 start + 40
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x9312ab42 kevent + 10
1 libSystem.B.dylib 0x9312b25c _dispatch_mgr_invoke + 215
2 libSystem.B.dylib 0x9312a719 _dispatch_queue_invoke + 163
3 libSystem.B.dylib 0x9312a4be _dispatch_worker_thread2 + 240
4 libSystem.B.dylib 0x93129f41 _pthread_wqthread + 390
5 libSystem.B.dylib 0x93129d86 start_wqthread + 30
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x015818e0 ebx: 0x00000002 ecx: 0xbfffda48 edx: 0x0004457f
edi: 0x015818e0 esi: 0x00000002 ebp: 0xbfffd5c8 esp: 0xbfffd59c
ss: 0x0000001f efl: 0x00000246 eip: 0x00020680 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x0007a820
-
sorry, i can't help. fpc.cfg has no influence. It is not the exception which is the problem, but the retrieval of info about it (what lazarus needs to show you a message). On other systems the used cast works. I've only a old mac-mini powerpc, so I cannot test/fix this atm.
-
My guess... you are on OSX intel 64bit ?
Small side note: there is no such thing as "Mac OS X Intel 64 bit". There are simply no different 32 and 64 bit versions of Mac OS X. Additionally, while as of Mac OS X 10.6 some Macs boot up with a 64 bit kernel (but not all 64 bit capable Macs do!), this does not have any influence whatsoever on the programs that you run (and that includes gdb).
The user space part of Mac OS X is 100% identical on a system booted with a 32 bit kernel and a system booted with a 64 bit kernel, and you can run 32 bit and 64 bit binaries on both (in fact, 64 bit binaries have been supported since Mac OS X 10.4, even though both Mac OS X 10.4 and 10.5 always booted a 32 bit kernel on all machines).
-
sorry, i can't help. fpc.cfg has no influence. It is not the exception which is the problem, but the retrieval of info about it (what lazarus needs to show you a message). On other systems the used cast works. I've only a old mac-mini powerpc, so I cannot test/fix this atm.
The used compiler is ppc386 (and the previously mentioned "unknown stabs" errors confirm that he is building a 32 bit app, since Stabs is not supported/used for 64 bit apps), while Lazarus is asking GDB to print a structure using $rdi (which is a 64 bit register). It seems that Lazarus is wrongly guessing that the application is a 64 bit rather than a 32 bit app.
-
I was getting the same error message about the printer. I do not use a print, but when I installed Adobe suite it puts a adobe printer installed on your system. I just when to system preferences then printers and removed it. Now my Lazarus starts up without dying. I do get another error talking about can't find unit interfaces used by project1. I am sure it is some compiler configurations I need to change. I run macbook pro with snow leopard.
-
I do get another error talking about can't find unit interfaces used by project1.
You probably need to rebuild LCL.
Tools -> Configure Build Lazarus-> Quick Build Options.
* Select "Build LCL" in Build options
* Target should be set to carbon "default")
press build.
After this your project should compile successfully.
-
Thank you very much. When I go home after work I will try it. I will tell you the results tomorrow. :)
-
It worked. Thank you again.