Recent

Author Topic: Closing Lazarus 1.24: Read Error - Unable to create file ...?  (Read 5620 times)

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All

When closing Lazarus 1.2.4, I constantly get an error message, and was wondering if anyone could help with this.
Not sure if it's a bug, or something in my setup.


Code: [Select]
Read Error
Unable to create file "/User/<username>/.lazarus"


I already deleted the entire /User/<username>/.lazarus directory, I also tried setting the access rights to the max (chmod 777, also for the files and directory in the directory), but I keep getting this error message.


When looking at the files in that directory then I see that 5 files will be updated each time I close Lazarus:
- EditorMacros.xml
- environmentoptions.xml
- includelinks.xml
- inputhistory.xml
- protocol.xml


Lazarus: 1.2.4 (Intel, MacOS X / i386 Darwin Carbon)
FPC: 2.6.4
MacOS X: 10.9.4
MacBook Pro Retina (early 2013), i7 quad core, 16Gb memory.
« Last Edit: July 31, 2014, 06:35:47 pm by Hansaplast »

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #1 on: July 31, 2014, 06:50:02 pm »
You may need to change owner. I suspect they may be owned by root or sudo. If you run Lazarus as user then you might see this error.

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #2 on: July 31, 2014, 06:56:46 pm »

Thanks for the prompt reply!  :)


Well I'm running Lazarus as the same user (hans) that owns all the directory and all the files in that directory ... (/User/Username/.lazarus)
Didn't think to check that, so thanks for the tip!


Lazarus itself is owned by root though, but I don't think that would cause the problem since I run Lazarus as the same user (hans).
I'd hate to have to run Lazarus as root ...

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #3 on: July 31, 2014, 11:17:32 pm »
I'd hate to have to run Lazarus as root ...

In some Linux distributions you always have to do so.

However, I cannot reproduce the problem here. On Mac OS X 10.6 Snow Leopard Lazarus 1.2.4 runs (and quits) neatly from a normal user account (albeit one with administrative privileges).
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #4 on: July 31, 2014, 11:36:00 pm »
I'm the only user on this computer and have admin rights. :-(


Is lazarus keeping an error log or something alike?

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #5 on: July 31, 2014, 11:38:44 pm »
When I start, restart and then close Lazarus I see the following in the console:


Code: [Select]
7/31/14 4:36:58.509 PM gkbisd[160]: Unable to collect cdhash for /Developer/lazarus/lazarus.app (error code 100024)
7/31/14 4:37:17.741 PM gkbisd[160]: Unable to collect cdhash for /Developer/lazarus/lazarus.app/Contents/Resources/startlazarus.app (error code 100024)
7/31/14 4:37:17.980 PM gkbisd[160]: Unable to collect cdhash for /Developer/lazarus/lazarus.app (error code 100024)


jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #6 on: July 31, 2014, 11:55:03 pm »
Did you have the same problem with older versions of Lazarus or did it start with version 1.2.4?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Closing Lazarus 1.24: Read Error - Unable to create file ...?
« Reply #7 on: August 01, 2014, 02:45:29 pm »
It started with 1.2.2 or 1.2.4 (I think 1.2.2) - but always just ignored it.
Now that I'm actively developing an app, it just started to annoy me and wondered what the issue could be.

 

TinyPortal © 2005-2018