Ticket #19 (closed defect: fixed)

Opened 7 years ago

Last modified 5 years ago

FreeBSD: Caught exception: "ui::ElementStringList::activate(...) called on an object in the wrong state"

Reported by: anonymous Owned by: rakshasa
Priority: normal Component: rtorrent
Version: HEAD Severity: normal
Keywords: Cc:

Description

Compiled from the ports collection, rtorrent 0.6.7 terminates with the error above, when you press backspace and tab in case there is more than one file (e.g. a file named "a.torrent" and a file named "b.torrent") or directory in the directory you started from.

Change History

Changed 7 years ago by anonymous

I had this problem when there were spaces in the torrent file. i just renamed the torrent file with no spaces, and it worked (or better yet, just insert by url, which i found out you can do later, makes it so much easier)

Changed 7 years ago by rakshasa

  • status changed from new to assigned

I'll look into this before the next release, though i'm unable to reproduce this behavior.

Changed 6 years ago by anonymous

  • status changed from assigned to closed
  • resolution set to fixed

This is because m_window isn't initialized to NULL, it might work on some systems where malloc returns zeroed chunks of memory.

Index: src/ui/element_string_list.cc
===================================================================
--- src/ui/element_string_list.cc       (revision 517)
+++ src/ui/element_string_list.cc       (working copy)
@@ -44,6 +44,7 @@
 namespace ui {
 
 ElementStringList::ElementStringList() {
+  m_window = NULL;
   m_list.push_back("Test string 1");
   m_list.push_back("Test string 2");
 }

I really think those "test strings" should be removed too, or do they serve some obscure purpose?

Fredrik Lindberg, fli (at) shapeshifter (dot) se

Changed 6 years ago by anonymous

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 6 years ago by rakshasa

  • status changed from reopened to closed
  • resolution set to fixed

That looks like the cause of the bug, I'll commit the fix shortly.

Note: See TracTickets for help on using tickets.