?

Log in

No account? Create an account

Previous Entry | Next Entry

No Friends?

I'm running iJournal 1.4.8, and I'm having the same problem as a previous poster (thread: http://www.livejournal.com/talkread.bml?journal=ijournal&itemid=36676). I know that Cryo suggested getting th CVS version and uncommenting out some stuff. Are there any other suggestions? I don't know where to get the CVS version, and was hoping that someone might have come up with a fix...

Comments

( 6 comments — Leave a comment )
lwj
Jun. 23rd, 2002 06:58 pm (UTC)
I've had the same problem, and your post finally convinced me to get off my butt and look into it. So I dug around in iJournal's code for a while, and this is what I found out:

It's a bug in livejournal, is what it is. You had a group at one time, and one of your friends was in it. You've since deleted that group. Your friend still has membership in it, because his or her groupmask was not modified. iJournal gets that groupmask, goes to look up the group in its internal hash, and because no such group exists any longer, the object in the internal hash at that position is a null. iJournal then tries to stuff something into another hash using that null as a key (not allowed), and boom.

I'm betting this is a *known* bug in LiveJournal... the "security note" on the Edit Friends Groups page sounds very much related. iJournal could probably check for the nil there and sidestep the issue (I'll make a patch), but that's really just a band-aid.
lwj
Jun. 23rd, 2002 07:08 pm (UTC)
err... correction. it's not trying to "stuff something into another hash", it's trying to look something up in that other hash using the nil object as a key.
cryo
Jun. 23rd, 2002 11:55 pm (UTC)
I thought about this, but iJournal is sending the requests to fix the user's groupmask when the group is destroyed (and when they're added). I was very disappointed that the server didn't take care of this mess itself, since if you have a group with 200 people in it, that it means 201 server transactions to clean up the mess. -If- a server error occurs during that time, then it might be possible for a user to end up being part of an undefined group. I would conceed though that -if- somehow that issue did occur, that iJournal shouldn't choke on it, but that when you created a new group that the offending friend would already be a member of it.... I ended up doing this numerous times when doing the original code, and had to create 31 groups to clear all of the bits correctly.

However, the friends panel is separate from the group panel, and while groups might be munged, that had -no- effect on them showing up in the friends panel, which is where this problem seems to be occurring (blank entries in the friend's panel). I am unable to duplicate this situation, which is why it's been so difficult to track down. If you are able to, by showing the NSLog()'s of what the transactions are, that would be helpful (hence my original suggestion). If you come up with a patch, that's even better, since you can duplicate it and test it.

cryo
Jun. 23rd, 2002 11:56 pm (UTC)
oh, you did apply a patch in email... thanks, I'll look over it shortly :)

Yay Logan!
spikenheimer
Jul. 22nd, 2002 05:56 am (UTC)
thanks to this post, i was able to find my offending friend and delete them, and then it fixed my ijournal edit-friends functionality... (and i was able to re-add them w/o problem!) perhaps ijournal could simply pop an error indicating the issue and which friends need to be fixed ... then pop up the webpage for friend editing so the user can delete / re-add them that way...

merikus
Jun. 24th, 2002 08:51 am (UTC)
Thanks very much for looking in to this! :)
( 6 comments — Leave a comment )

Profile

ijournal
iJournal: Official LiveJournal Client for Mac OS X
iJournal Home

Latest Month

January 2012
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Page Summary

Powered by LiveJournal.com
Designed by Lilia Ahner