[SOLVED] Intel-based Macs: Some applications only run from administrator account lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- jwdietrich · 2012-03-25 12:09 I noticed a weird behaviour: On Macs with Intel processor some applications created with Lazarus are only useable by the administrator. If another user wants to use the program it only jumps for about half a second in the dock, but nothing else happens. Unfortunately, this is not a systematic error, only a part of the applications is affected. One of my applications suffers from the error, two others don't (although user permissions and project settings are - apart from application name, icon and version information - identical). However, this also happens with Lazarus itself (version 0.9.30.4), it runs from the admin account, but not from others. The problem only happens with Intel-based Macs (Snow Leopard), not on PPC-based machines (Tiger and Leopard). ---------------------------------------------------------------------- Jonas Maebe · 2012-03-25 14:13 Quote from: jwdietrich on March 25, 2012, 02:09:46 pmHowever, this also happens with Lazarus itself (version 0.9.30.4), it runs from the admin account, but not from others. The problem only happens with Intel-based Macs (Snow Leopard), not on PPC-based machines (Tiger and Leopard). Many Intel Macs can also run Mac OS X 10.4 and 10.5, not just 10.6. Additionally, at least on my Intel 10.6 system, Lazarus 0.9.30.4 works fine in the "Guest" account (which has less privileges than a regular user account). ---------------------------------------------------------------------- jwdietrich · 2012-03-25 16:23 Thank you, this is interesting information. I conclude that the unexpected behaviour may have to do with some wrong settings on the target machine, e.g. regarding certain user privileges - although the machine is almost new and I cannot find anything relevant that is set to non-standard values. Does the Intel version of the following application run on every account of your computer? http://sourceforge.net/projects/spina/files/SPINA%20for%20Mac%20OS%20X /spina-thyr-mac-os-x-3.2.1/ Thanks again for your advice! ---------------------------------------------------------------------- Jonas Maebe · 2012-03-25 16:38 Quote from: jwdietrich on March 25, 2012, 06:23:56 pmDoes the Intel version of the following application run on every account of your computer? http://sourceforge.net/projects/spina/files/SPINA%20for%20Mac%20OS%20X /spina-thyr-mac-os-x-3.2.1/ Yes. I do see this exception in the system log: Code: [Select][0x0-0x448448].com.company.SPINA Thyr[30286]: [FORMS.PP] ExceptionOccurred [0x0-0x448448].com.company.SPINA Thyr[30286]:   Sender=EInOutError [0x0-0x448448].com.company.SPINA Thyr[30286]:   Exception=File not found [0x0-0x448448].com.company.SPINA Thyr[30286]:   Stack trace: [0x0-0x448448].com.company.SPINA Thyr[30286]:   $00038220  SAVEPREFERENCES,  line 353 of /Users/Shared/SPINA Source/spina_userinterface.pas [0x0-0x448448].com.company.SPINA Thyr[30286]: TApplication.HandleException File not found [0x0-0x448448].com.company.SPINA Thyr[30286]:   Stack trace: [0x0-0x448448].com.company.SPINA Thyr[30286]:   $00038220  SAVEPREFERENCES,  line 353 of /Users/Shared/SPINA Source/spina_userinterface.pas [0x0-0x448448].com.company.SPINA Thyr[30286]: exception at 00038220: [0x0-0x448448].com.company.SPINA Thyr[30286]: File not found. PS: you may want to remove the .svn directories from your distributed application bundle, they only take up space. ---------------------------------------------------------------------- jwdietrich · 2012-03-25 16:44 Thanks for your valuable advice. The results of the system log give a plausible hint, the more as the application SPINA Thyr is quite old, and I solved preferences handling in a different manner in my newer applications. I will also check the system log for Lazarus, which perfectly runs in administrator mode, but doesn't run from certain accounts (this would be normal on Linux, but not on Mac OS X). ---------------------------------------------------------------------- jwdietrich · 2012-03-25 23:12 Thanks, Jonas Maebe, for your hint. However, it was not the preferences handling (although it needs a rework) but initialization of printing, as revealed by the console log (therefore your advice was helpful, as it gave me the idea to check the log entries). There has never been printed from this user account, therefore there was no default printer, and this caused SPINA Thyr (and Lazarus!) to crash. After defining a default printer all is well. I will therefore rework the printing initialization of my application (and submit a bug report for Lazarus).