Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Crash on entry editing

#348

In the Account view, I got this crash while tabbing from the date field to the payee field:

Application Identifier: com.hardcoded-software.moneyguru
Application Version: 2.5.5
Mac OS X Version: 10.8.2

Traceback (most recent call last):
  File "/Users/hsoft/src/moneyguru/build/moneyGuru.app/Contents/Resources/mg_cocoa.py", line 1426, in setText_
    self.model.text = value
  File "/Users/hsoft/src/moneyguru/build/moneyGuru.app/Contents/Resources/py/core/gui/completable_edit.py", line 122, in text
    if self.candidates:
  File "/Users/hsoft/src/moneyguru/build/moneyGuru.app/Contents/Resources/py/core/gui/completable_edit.py", line 112, in candidates
    self._refresh_candidates()
  File "/Users/hsoft/src/moneyguru/build/moneyGuru.app/Contents/Resources/py/core/gui/completable_edit.py", line 45, in _refresh_candidates
    self._candidates = dedupe([name for name in self._candidates if name.strip()])
  File "/Users/hsoft/src/moneyguru/build/moneyGuru.app/Contents/Resources/py/core/gui/completable_edit.py", line 45, in <listcomp>
    self._candidates = dedupe([name for name in self._candidates if name.strip()])
AttributeError: 'NoneType' object has no attribute 'strip'

It's a bit hard to reproduce. It happened to me twice and it seems to be related to split editing and/or MCT balancing. That crash happened right after I did a MCT balancing (which creates a split). And then, I created a new transaction and tabbed from the date field into the payee field. This is when the crash happened (both times).

Now I can't seem to be able to reproduce it...

Reported by Virgil Dupras · October 6th, 2012 @ 06:11 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • Title changed from Crash on entry edition. to Crash on entry editing

    October 6th, 2012 @ 06:12 PM

  2. Virgil Dupras
    Virgil Dupras

    Got it. It seems to be related to split editing + fuzzy lookup window. If I add a split to a txn and then use the Cmd+L lookup window to assign an account to that split, the next new txn editing I do will trigger this crash.

    I thought that this crash happened also under 2.5.5, but it seems to have been a hallucination. It seems to affect only the dev version.

    October 6th, 2012 @ 06:20 PM

  3. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    October 7th, 2012 @ 04:05 PM

  4. Virgil Dupras
    Virgil Dupras
    • Tag changed from bug to bug, cocoa

    Oh, it was simply payee's field in Cocoa's transaction panel which wasn't linked. Easy stuff.

    October 7th, 2012 @ 04:33 PM

  5. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

    (from [2be79d6e1996]) [#348 state:fixed] Fixed Payee field in Cocoa's transaction panel which wasn't working. https://bitbucket.org/hsoft/moneyguru/changeset/2be79d6e1996/

    October 7th, 2012 @ 04:35 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.