discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ProjectCenter / Gorm do not work together


From: edwin ancaer
Subject: Re: ProjectCenter / Gorm do not work together
Date: Fri, 15 Feb 2013 09:51:22 +0100

Riccardo,

I will rebuild in a minute. In the mean time I had added the update that was suggested by Sebastian.

This is the result of the execution:

[edwin@ridcule ~]$ openapp GWorkspace
2013-02-15 09:41:42.493 GWorkspace[1612] thumbnaildir: /home/edwin/GNUstep/Library/Thumbnails
2013-02-15 09:41:43.030 fswatcher[1677] register client 2
2013-02-15 09:41:43.193 GWorkspace[1612] Volumes ({dir = "/"; name = "/dev/mapper/vg_ridcule-lv_root"; type = ext4; }, {dir = "/boot"; name = "UUID=48244031-c4e9-4166-b731-56116e13f24b"; type = ext4; }, {dir = "/home"; name = "/dev/mapper/vg_ridcule-lv_home"; type = ext4; }, {dir = swap; name = "/dev/mapper/vg_ridcule-lv_swap"; type = swap; })
2013-02-15 09:41:45.356 fswatcher[1677] Connection became invalid
2013-02-15 09:41:45.356 fswatcher[1677] No next in enumerator
2013-02-15 09:41:45.356 fswatcher[1677] No next in enumerator
2013-02-15 09:41:45.356 fswatcher[1677] No next in enumerator
Segmentation fault (core dumped)

To exclude permission problems I ran as root with the following result: 
[edwin@ridcule ~]$ su root
Password:
[root@ridcule edwin]# openapp GWorkspace
2013-02-15 09:42:22.507 make_services[1800] couldn't create /root/GNUstep/Library/Services
2013-02-15 09:42:22.619 GWorkspace[1738] thumbnaildir: /root/GNUstep/Library/Thumbnails
2013-02-15 09:42:22.620 GWorkspace[1738] unable to create the thumbnails directory. Quiting now
Segmentation fault (core dumped)
[root@ridcule edwin]#

I also tried to remove the directory Thumbnails and run GWorkspace

[edwin@ridcule Library]$ ls -l
total 24
drwxrwxr-x. 2 edwin edwin 4096 Jan  5 11:12 Cookies
drwxrwxr-x. 3 edwin edwin 4096 Jan  8 22:05 Fonts
drwxrwxr-x. 3 edwin edwin 4096 Feb 10 19:18 GWorkspace
drwxrwxr-x. 2 edwin edwin 4096 Nov 21 06:32 Icons
drwxrwxr-x. 2 edwin edwin 4096 Feb 14 05:34 Services
drwxrwxr-x. 9 edwin edwin 4096 Dec  1 09:44 WindowMaker
[edwin@ridcule Library]$ openapp GWorkspace
2013-02-15 09:49:00.074 GWorkspace[1942] thumbnaildir: /home/edwin/GNUstep/Library/Thumbnails
2013-02-15 09:49:00.483 fswatcher[2007] register client 2
2013-02-15 09:49:00.576 GWorkspace[1942] Volumes ({dir = "/"; name = "/dev/mapper/vg_ridcule-lv_root"; type = ext4; }, {dir = "/boot"; name = "UUID=48244031-c4e9-4166-b731-56116e13f24b"; type = ext4; }, {dir = "/home"; name = "/dev/mapper/vg_ridcule-lv_home"; type = ext4; }, {dir = swap; name = "/dev/mapper/vg_ridcule-lv_swap"; type = swap; })
2013-02-15 09:49:02.406 fswatcher[2007] Connection became invalid
2013-02-15 09:49:02.406 fswatcher[2007] No next in enumerator
2013-02-15 09:49:02.406 fswatcher[2007] No next in enumerator
2013-02-15 09:49:02.406 fswatcher[2007] No next in enumerator
Segmentation fault (core dumped)
[edwin@ridcule Library]$ ls -l
total 28
drwxrwxr-x. 2 edwin edwin 4096 Jan  5 11:12 Cookies
drwxrwxr-x. 3 edwin edwin 4096 Jan  8 22:05 Fonts
drwxrwxr-x. 3 edwin edwin 4096 Feb 10 19:18 GWorkspace
drwxrwxr-x. 2 edwin edwin 4096 Nov 21 06:32 Icons
drwxrwxr-x. 2 edwin edwin 4096 Feb 14 05:34 Services
drwxrwxr-x. 2 edwin edwin 4096 Feb 15 09:49 Thumbnails
drwxrwxr-x. 9 edwin edwin 4096 Dec  1 09:44 WindowMaker

It seems the directory has been created correctly.

Now I'll build the new version.
I'll report about it as soon as possible.

Kind regards


2013/2/13 Riccardo Mottola <riccardo.mottola@libero.it>
Hi,


It is, in frame 9, when initializing FSNodeRep, it tries to create the tumbnail directory, but fails,
and then terminates the application. So far, so good.
Question is, why it is failing.

Do you can add a NSLog output like this:
NSLog(@"thumbnaildir: %@", thumbnailDir);
To FSNodeRep.m right after the RETAIN (thumbnailDir); line around line 130.
Then recompile and check what's wrong with the dir?
At the locations something already exists, or wrong permissions prevent creating the directory?

Yes, that sounds like a good idea. The directory should be inside
"GNUstep/Library" in your home
does GNUstep/Library exist in your system? And if, is it writeable by your user? (not that accidentally it is root owned or such).

In any case the code in GWorkspace was brittle: NSSearchPathForDirectoriesInDomains returns a value, but it is not guaranteeed to exist and creating a directory won't create its parent.

I added a check, a creation and a new error log. Could you update GWorkspace from SVn and try it and see if it works and if it fails, what error you do get this time? Thank you.

Riccardo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]