If all blogs are removed, blogtk2 will not start properly

Bug #601268 reported by Benjamin Roberts
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BloGTK
In Progress
High
JayReding

Bug Description

I downloaded BlogTK2 a few minutes ago, and tried to get it set up. I came across numerous hang-ups, in which the program would seem to go into an endless loop, such as when accessing with the wrong blog ID - then, once that was fixed, downloading pre-existing blog entries - and once I had forced quit and re-opened, creating a new blog entry.

Finally, I thought the blog account might have become corrupted, and deleted it (using the "-" on-screen button in the Settings dialog). This caused another crash. Then, ever since, when I've tried to re-open blogtk2, I get this response:

Traceback (most recent call last):
  File "/usr/bin/blogtk2", line 7, in <module>
    main()
  File "/usr/bin/../share/blogtk2/lib/blogtk2/main.py", line 769, in main
    blogtk.main()
  File "/usr/bin/../share/blogtk2/lib/blogtk2/main.py", line 244, in main
    self.initPostList()
  File "/usr/bin/../share/blogtk2/lib/blogtk2/main.py", line 226, in initPostList
    self.checkListing(None)
  File "/usr/bin/../share/blogtk2/lib/blogtk2/main.py", line 395, in checkListing
    accountID = self.model.get_value(selected_iter, 1)
TypeError: iter must be a GtkTreeIter

and an on-screen report that the program quit unexpectedly.

I'm running Lucid with the latest publicly released updates, if that helps. (Incidentally, I'm surprised that it was as unstable as it has proved to be. Maybe my machine is running something that conflicts with it.)

Revision history for this message
Benjamin Roberts (ben-roberts) wrote :

Further to my complaints about hangs when refreshing posts, creating new entries, etc.:

The one with refreshing posts, at least, appears to be related to threading. If I comment out the "@threaded" and "gtk.gdk.threads.enter()/leave()" from refreshPosts, the hang no longer occurs when doing that. But I'm not sure whether that's safe to do. I suspect the same problem, in other methods, may be responsible for the other hangs. Any ideas why threading might go crazy on my machine?

By the way, I was able to get some functionality back by throwing away my ~/.BloGTK directory. But it would still be ideal if deleting all blogs doesn't cause BloGTK to stop working, even though a workaround has now been demonstrated.

Revision history for this message
JayReding (jayreding) wrote :

It shouldn't let you delete all the blog accounts. If you try to delete the last one, it should stop you. I'll check to make sure that functionality is working.

For now, you can delete your settings by deleting the .blogtk directory in your home directory and BloGTK should start up again.

Changed in blogtk:
assignee: nobody → JayReding (jayreding)
importance: Undecided → High
milestone: none → 2.0.1
status: New → In Progress
Revision history for this message
Benjamin Roberts (ben-roberts) wrote :

Thanks Jay. I had already discovered about the .BloGTK directory, as I had noted in comment #1.

Have you had any thoughts about my threading problem? And am I better to file that in a separate bug ticket for ease of tracking?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.