cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
850 stars 112 forks source link

Crashes while typing in search field #61

Closed jon1270 closed 5 years ago

jon1270 commented 11 years ago

I'm new to both NVPY and Github, so please forgive me if I'm missing something important. I'm running NVPY on a Windows 7 machine, and it reliably crashes when I type the thirteenth character into the search field. Behaves just fine with up to 12 characters, but on the 13th character the program closes by itself. When I restart it, the message 'retrieving full note list from server, could take a while' is displayed for several seconds, during which the program is unresponsive.

cpbotha commented 11 years ago

Could you start nvpy from the Windows command-line (cmd.exe), then case it to crash and submit here the traceback that you see?

jon1270 commented 11 years ago

I'm not skilled in this area so I may be missing something; I don't even know what a traceback is or looks like.

I was able to start nvpy from the command line, but when it crashed (by which I mean the nvpy window closed spontaneously; it didn't stop responding), no new information appeared in the command line window. Is there somewhere else I should be looking for it?

Worth noting, it no longer seems that the crash is triggered by the 13th character typed in the search field. I tried it several times just now (all started from the cmd prompt) and never got further than the 11th character.

cpbotha commented 11 years ago

nvPY should output a traceback (a list of instructions it performed before crashing) to the command-line if it crashes. It's very strange that in your case it's not showing anything.

Could it be that you started nvpy by running nvpy.exe from the command-line?

If so, that could be the problem. Could you try invoking it with Python? Somewhere in your c:\Python27\ folder you should find nvpy.py. If you go to that directory on the command line, and then do:

\python27\python.exe nvpy.py

... and then make it crash again, hopefully you'll see a traceback. With the traceback, I can hopefully figure out why it's crashing on your system.

jon1270 commented 11 years ago

Yes, I was starting it from nvpy.exe. Sorry I didn't recognize the difference.

I was able to start nvpy.py from the command line, and when I did so I was able to use the search feature without crashing nvpy. However, the following appeared in the cmd window as I was typing in nvpy's search:

Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle' Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in call return self.func(_args) File "C:\python27\lib\site-packages\nvpy\view.py", line 554, in handle ase if self.cycle: AttributeError: TriggeredcompleteEntry instance has no attribute 'cycle'

cpbotha commented 11 years ago

Just fixed this bug in https://github.com/cpbotha/nvpy/commit/d3386488e31da681f0994021c2c724679f4cea50 -- I hope @swestdijk will also take a look.

jon1270 commented 11 years ago

Thank you!

On Mon, May 20, 2013 at 5:13 PM, Charl P. Botha notifications@github.comwrote:

Just fixed this bug in d338648https://github.com/cpbotha/nvpy/commit/d3386488e31da681f0994021c2c724679f4cea50-- I hope @swestdijk https://github.com/swestdijk will also take a look.

— Reply to this email directly or view it on GitHubhttps://github.com/cpbotha/nvpy/issues/61#issuecomment-18174546 .

swestdijk commented 11 years ago

@cpbotha: I am not sure this will fix the bug. The "TriggeredcompleteEntry instance has no attribute 'cycle' " gives a sign that the set_completion_list is not called at that moment, so the cycle variable is not initialized. Adding self.cycle = 0 to the init should correct the problem I think. It's not clear for me why this happens.

cpbotha commented 11 years ago

@swestdijk That was indeed the problem. The event handler was of course being triggered before anyone had called set_completion_list. Now initialising to empty list.

swestdijk commented 11 years ago

@cpbotha: overlooked that you used the set_completion_list with empty array. This should indeed solve the problem

yuuki0xff commented 5 years ago

This issue is too old. Latest stable version is fixed many bugs. Please use the latest version.

If this problem still persists, reopen it again.