Error Report - button doesn't work, so report it this way

10 views
Skip to first unread message

werner

unread,
Oct 14, 2011, 8:56:23 AM10/14/11
to edi...@googlegroups.com
I once in a while get the following error when working on
wx.lib.agw.persist.anyofthem.py in a SVN check out done yesterday.

Preferered encoding is set to utf-8 and after I first got this I also
inserted the following at the top and saved, closed and reopened the file.

# -*- coding: utf-8 -*-#


When I click on "Report Error" Internet Explorer opens. IE is not my
default browser, I use Firefox and my Email client is Thunderbird.

Werner

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


#---- System Information ----#
Editra Version: 0.6.77
Operating System: Windows 7 (build 7601, Service Pack 1)
Python Version: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32
bit (Intel)]
wxPython Version: 2.9.2.4 msw (classic)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit x86
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Fri Oct 14 10:58:10 2011 ***
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Fri Oct 14 10:59:04 2011 ***
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Fri Oct 14 14:50:18 2011 ***
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor

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

Cody

unread,
Oct 14, 2011, 9:17:51 AM10/14/11
to edi...@googlegroups.com
Hi,

On Fri, Oct 14, 2011 at 7:56 AM, werner <wbr...@free.fr> wrote:
> I once in a while get the following error when working on
> wx.lib.agw.persist.anyofthem.py in a SVN check out done yesterday.
>
> Preferered encoding is set to utf-8 and after I first got this I also
> inserted the following at the top and saved, closed and reopened the file.
>
> # -*- coding: utf-8 -*-#
>
>
> When I click on "Report Error" Internet Explorer opens.  IE is not my
> default browser, I use Firefox and my Email client is Thunderbird.
>

IE must be registered as your system default handler for "mail:"
links. Editra just calls webrowser.open which uses the system default
(or is supposed to anyway).

>
> #---- Traceback Info ----#
> *** Fri Oct 14 10:58:10 2011 ***
> Traceback (most recent call last):
>  File "C:\Python27\lib\threading.py", line 525, in __bootstrap
>    self.__bootstrap_inner()
>  File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
>    (self.name, _format_exc()))
> IOError: [Errno 9] Bad file descriptor
>

What were you doing when this occurred. There isn't any Editra code in
the stack trace so hard to tell what is at fault.

If it is reproducable to narrow it down I would start by disabling
plugins one by one. Off the top of my head all of the following start
background threads during normal use:

* PyStudio (during file save / debugging / lint analysis)
* Launch (while running a script)
* CodeBrowser (after file save / page change)


Cody

werner

unread,
Oct 14, 2011, 9:59:02 AM10/14/11
to edi...@googlegroups.com
On 10/14/2011 03:17 PM, Cody wrote:
> Hi,
>
> On Fri, Oct 14, 2011 at 7:56 AM, werner<wbr...@free.fr> wrote:
>> I once in a while get the following error when working on
>> wx.lib.agw.persist.anyofthem.py in a SVN check out done yesterday.
>>
>> Preferered encoding is set to utf-8 and after I first got this I also
>> inserted the following at the top and saved, closed and reopened the file.
>>
>> # -*- coding: utf-8 -*-#
>>
>>
>> When I click on "Report Error" Internet Explorer opens. IE is not my
>> default browser, I use Firefox and my Email client is Thunderbird.
>>
> IE must be registered as your system default handler for "mail:"
> links. Editra just calls webrowser.open which uses the system default
> (or is supposed to anyway).
Should have thought a bit more. This is happening on my Windows 7 which
runs in the VirtualBox, so that VM doesn't know anything about my email
client.

Maybe provide a "send via SMTP" option on that dialog?


>> #---- Traceback Info ----#
>> *** Fri Oct 14 10:58:10 2011 ***
>> Traceback (most recent call last):
>> File "C:\Python27\lib\threading.py", line 525, in __bootstrap
>> self.__bootstrap_inner()
>> File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
>> (self.name, _format_exc()))
>> IOError: [Errno 9] Bad file descriptor
>>
> What were you doing when this occurred. There isn't any Editra code in
> the stack trace so hard to tell what is at fault.

It happens when I press "ctrl-s" to save the file in the editor and it
only seems to happen with the files in wx.lib.agw.persist folder from a
recent SVN check out.


> If it is reproducable to narrow it down I would start by disabling
> plugins one by one. Off the top of my head all of the following start
> background threads during normal use:
>
> * PyStudio (during file save / debugging / lint analysis)
> * Launch (while running a script)
> * CodeBrowser (after file save / page change)

Happened a few times over the last couple of days, but I can't reproduce
it at will - at least not yet.

Will provide more details when I can reproduce it at will.

Werner

werner

unread,
Oct 20, 2011, 5:47:59 AM10/20/11
to edi...@googlegroups.com
On 10/14/2011 03:17 PM, Cody wrote:

...


>> #---- Traceback Info ----#
>> *** Fri Oct 14 10:58:10 2011 ***
>> Traceback (most recent call last):
>> File "C:\Python27\lib\threading.py", line 525, in __bootstrap
>> self.__bootstrap_inner()
>> File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
>> (self.name, _format_exc()))
>> IOError: [Errno 9] Bad file descriptor
>>
> What were you doing when this occurred. There isn't any Editra code in
> the stack trace so hard to tell what is at fault.
>
> If it is reproducable to narrow it down I would start by disabling
> plugins one by one. Off the top of my head all of the following start
> background threads during normal use:
>
> * PyStudio (during file save / debugging / lint analysis)
> * Launch (while running a script)
> * CodeBrowser (after file save / page change)
>

It is happening only on the files of wx.lib.agw.persist which I are from
a SVN checkout.

I don't get it on each save but quit often. Does the following by any
chance help to pin point what the issue is?

Werner

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


#---- System Information ----#
Editra Version: 0.6.77
Operating System: Windows 7 (build 7601, Service Pack 1)
Python Version: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32
bit (Intel)]
wxPython Version: 2.9.2.4 msw (classic)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit x86
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Thu Oct 20 11:14:30 2011 ***


Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Thu Oct 20 11:23:26 2011 ***


Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Thu Oct 20 11:28:20 2011 ***


Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Thu Oct 20 11:36:46 2011 ***


Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Thu Oct 20 11:40:30 2011 ***


Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor


*** Thu Oct 20 11:43:46 2011 ***


Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 525, in __bootstrap
self.__bootstrap_inner()
File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
(self.name, _format_exc()))
IOError: [Errno 9] Bad file descriptor

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


Last few entries in the Editra log are:

[11:43:30][codebrowser][info] Syncing tree for position 185
[11:43:45][ed_stc][info] Writing file
C:\Python27\Lib\site-packages\wx-2.9.2-msw\wx\lib\agw\persist\persist_handlers.py,
with encoding utf-8
[11:43:45][ed_txt][info] Resetting buffer
[11:43:45][ed_txt][info] CheckMagicComment: [u'# -*- coding: utf-8
-*-#\r\n', u'#!/usr/bin/env python\r\n']
[11:43:45][ed_txt][info] MagicComment is utf-8
[11:43:45][ed_txt][info] Write: found magic comment: utf-8
[11:43:45][ed_txt][info] Opened
C:\Python27\Lib\site-packages\wx-2.9.2-msw\wx\lib\agw\persist\persist_handlers.py,
writing as utf-8
[11:43:45][ed_txt][info] Resetting buffer
[11:43:45][ed_txt][info]
C:\Python27\Lib\site-packages\wx-2.9.2-msw\wx\lib\agw\persist\persist_handlers.py
was written successfully
[11:43:45][CompileCheck][info] Using Python: c:\python27\python.exe
[11:43:45][CompileCheck][info] Using CWD:
C:\Python27\Lib\site-packages\wx-2.9.2-msw\wx\lib\agw\persist
[11:43:45][CompileCheck][info] Starting command:
['c:\\python27\\python.exe', '-m', 'py_compile', 'persist_handlers.py']
[11:43:46][projects][info]C:\Python27\Lib\site-packages\wx-2.9.2-msw\wx\lib\agw\persist
svn status -v --non-interactive -N persist_handlers.py
[11:43:46][codebrowser][info] Syncing tree for position 185
[11:43:46][app][info] Going to sleep
[11:43:46][app][info] I'm Awake!!
[11:43:46][codebrowser][info] Syncing tree for position 185
[11:43:47][codebrowser][info] Syncing tree for position 185
[11:44:15][app][info] Going to sleep
[11:44:15][app][info] I'm Awake!!

> Cody
>

Cody Precord

unread,
Oct 20, 2011, 6:53:01 PM10/20/11
to editra
Hi,

On Oct 20, 4:47 am, werner <wbru...@free.fr> wrote:
> On 10/14/2011 03:17 PM, Cody wrote:
>
> ...
>
>
>
>
>
>
>
> >> #---- Traceback Info ----#
> >> *** Fri Oct 14 10:58:10 2011 ***
> >> Traceback (most recent call last):
> >>   File "C:\Python27\lib\threading.py", line 525, in __bootstrap
> >>     self.__bootstrap_inner()
> >>   File "C:\Python27\lib\threading.py", line 565, in __bootstrap_inner
> >>     (self.name, _format_exc()))
> >> IOError: [Errno 9] Bad file descriptor
>
> > What were you doing when this occurred. There isn't any Editra code in
> > the stack trace so hard to tell what is at fault.
>
> > If it is reproducable to narrow it down I would start by disabling
> > plugins one by one. Off the top of my head all of the following start
> > background threads during normal use:
>
> > * PyStudio (during  file save / debugging / lint analysis)
> > * Launch (while running a script)
> > * CodeBrowser (after file save / page change)
>
> It is happening only on the files of wx.lib.agw.persist which I are from
> a SVN checkout.
>
> I don't get it on each save but quit often.  Does the following by any
> chance help to pin point what the issue is?
>

A little bit it definitely looks related to some background thread
after saving a file. I haven't been able to reproduce on my system
yet.

Try disabling the "Compile on save" option in the PyStudio
configuration and see if it goes away that will at least eliminate one
possible source of the error. The bad file descriptor error would
suggest it is getting thrown on some file operation most likely either
a write or delete. The two most likely are the PyStudio compile
checker and the Projects plugin its possible there could be some sort
of conflict or something. Should be easy to test by turning one of
them off and seeing if the issue goes away.


Thanks,

Cody

werner

unread,
Oct 22, 2011, 3:14:32 AM10/22/11
to edi...@googlegroups.com
On 10/21/2011 12:53 AM, Cody Precord wrote:
...

> A little bit it definitely looks related to some background thread
> after saving a file. I haven't been able to reproduce on my system
> yet.
>
> Try disabling the "Compile on save" option in the PyStudio
> configuration and see if it goes away that will at least eliminate one
> possible source of the error. The bad file descriptor error would
> suggest it is getting thrown on some file operation most likely either
> a write or delete. The two most likely are the PyStudio compile
> checker and the Projects plugin its possible there could be some sort
> of conflict or something. Should be easy to test by turning one of
> them off and seeing if the issue goes away.
>
I unchecked "Check for syntax errors on save" in PyStudio (I assume that
is the option you had in mind?), but I still see the error once in a while.

BTW, when I click on the "Configure" icon on the Projects pane I only
see a small window (see attached) on Windows 7 with Editra from SVN.

Werner

editraProject.jpg

Cody Precord

unread,
Oct 24, 2011, 9:18:11 AM10/24/11
to editra
Hi,
Sorry been offline for a few days.

Looks like a wx2.9 compatibility issue. I haven't made any updates to
that plugin or tested it on 2.9 yet. I am actually hoping to deprecate
it and replace it with a new one based on some of the new frameworks I
am making for supporting a Project feature in the PyStudio plugin.

Anyway will try testing again with the projects plugin with those
files.

Thanks,

Cody


werner

unread,
Oct 24, 2011, 10:19:32 AM10/24/11
to edi...@googlegroups.com
It is not a big enough problem for you to worry about now if you plan to
rework part of this, it happens only on a few files for me and has no
further side effects as far as I can see.

Werner

Reply all
Reply to author
Forward
0 new messages