GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

crashing on moving only one remain tab to another window #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open 2 windows, one with any number tab and other with only one.
2. move alone tab to another window.

What is the expected output? What do you see instead?
2 ways expected:
1. alone tab cannot be moved to other window.
2. after or before moving, opening a new untitled tab.

But i see the Error/Crash Reporter window with the following info and
cannot close it anyway and all opened window are out of control, so i have
to kill the process! sorry for pasting all here.

#---- Notes ----#
Please provide additional information about the crash here

#---- System Information ----#
Editra Version: 0.4.75
Operating System: Linux 2.6.26-1-686 i686
Python Version: 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) 
[GCC 4.3.3]
wxPython Version: 2.8.7.1 (gtk2-unicode)
wxPython Info: (__WXGTK__, wxGTK, unicode, gtk2, wx-assertions-off,
SWIG-1.3.29)
Python Encoding: Default=ascii  File=UTF-8
wxPython Encoding: UTF-8
System Architecture: 32bit i686
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Wed Apr 22 19:14:01 2009 ***
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Editra/src/ed_main.py", line 351,
in OnActivate
    (nb, nb.GetSelection()))
  File "/usr/lib/python2.5/site-packages/Editra/src/ed_msg.py", line 200,
in PostMessage
    Publisher().sendMessage(msgtype, msgdata)
  File "/usr/lib/python2.5/site-packages/Editra/src/extern/pubsub.py", line
796, in sendMessage
    self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
  File "/usr/lib/python2.5/site-packages/Editra/src/extern/pubsub.py", line
483, in sendMessage
    deliveryCount += node.sendMessage(message)
  File "/usr/lib/python2.5/site-packages/Editra/src/extern/pubsub.py", line
321, in sendMessage
    listener(message)
  File
"/usr/lib/python2.5/site-packages/Editra/plugins/FileBrowser-1.3-py2.5.egg/fileb
rowser/browser.py",
line 624, in OnPageChange
    page = nbdata[0].GetPage(nbdata[1])
  File
"/usr/lib/python2.5/site-packages/Editra/src/extern/flatnotebook.py", line
3400, in GetPage
    return self._windows[page]
IndexError: list index out of range

*** Wed Apr 22 19:14:08 2009 ***
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Editra/src/ed_main.py", line 351,
in OnActivate
    (nb, nb.GetSelection()))
  File "/usr/lib/python2.5/site-packages/Editra/src/ed_msg.py", line 200,
in PostMessage
    Publisher().sendMessage(msgtype, msgdata)
  File "/usr/lib/python2.5/site-packages/Editra/src/extern/pubsub.py", line
796, in sendMessage
    self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
  File "/usr/lib/python2.5/site-packages/Editra/src/extern/pubsub.py", line
483, in sendMessage
    deliveryCount += node.sendMessage(message)
  File "/usr/lib/python2.5/site-packages/Editra/src/extern/pubsub.py", line
321, in sendMessage
    listener(message)
  File
"/usr/lib/python2.5/site-packages/Editra/plugins/FileBrowser-1.3-py2.5.egg/fileb
rowser/browser.py",
line 624, in OnPageChange
    page = nbdata[0].GetPage(nbdata[1])
  File
"/usr/lib/python2.5/site-packages/Editra/src/extern/flatnotebook.py", line
3400, in GetPage
    return self._windows[page]
IndexError: list index out of range

#---- End Traceback Info ----#

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
Editra 0.4.75 on Platform: (linux2, python 2.5.4,wxGTK 2.8.7.1, unicode,
gtk2, wx-assertions-off, SWIG-1.3.29) (debian)

What method of install was your version installed with (Binary/Source)?
Binary

If from source: What version of python and wxPython are you using?

Please provide any additional information below.

Original issue reported on code.google.com by rastiker...@gmail.com on 22 Apr 2009 at 2:59

GoogleCodeExporter commented 9 years ago
Fixed for next version of filebrowser plugin.

Plugin was failing to check that the page index returned by the event was valid 
or not.

The new version of the plugin will be bundled with the next release of Editra, 
or
from editra svn if you bundle yourself.

Original comment by CodyPrec...@gmail.com on 22 Apr 2009 at 6:31