VM

Virtual folders inhibit quitting

Bug #672275 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Fix Released
High
Uday Reddy

Bug Description

Trying to quit an IMAP folder, while it still had a virtual folder based on it, gave rise to this error:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  vm-thread-symbol(nil)
  vm-sort-compare-activity(nil [...])
  vm-sort-compare-xxxxxx([...] [...])
  sort((...))
  vm-sort-messages("activity")
  vm-expunge-folder(t t nil)
  vm-imap-synchronize-folder(t t t nil t)
  vm-save-folder()
  vm-quit(nil)
  call-interactively(vm-quit)

The nil message entry was generated by vm-sort-compare-thread which was called before vm-sort-compare-activity.

Tags: 8.2 virtual

Related branches

Revision history for this message
Uday Reddy (reddyuday) wrote :

The problem was that vm-virtual-quit destroyed threads. It should have been done after save-folder. Fixed it.

Changed in vm:
status: Triaged → Fix Committed
Revision history for this message
Uday Reddy (reddyuday) wrote :

Problems still persist with regard to quitting virtual folders.

After a folder's virtual folders have been quit, doing pretty much anything with the folder gives rise to arrayp nil error in vm-sort-compare-activity.

This is happening because some message symbols in vm-thread-list have nil for vm-th-messages, even though they have a non-nil vm-th-message. So, vm-thread-root-sym is giving nil in vm-sort-compare-thread. Where is this problem coming from?

Changed in vm:
status: Fix Committed → In Progress
Revision history for this message
Uday Reddy (reddyuday) wrote :

Can't reproduce such problems any more.

Changed in vm:
status: In Progress → Fix Committed
Uday Reddy (reddyuday)
tags: added: 8.2
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
Revision history for this message
Uday Reddy (reddyuday) wrote :
Download full text (5.6 KiB)

Problems persist. This error was received today while trying to quit a local folder that has a virtual folder based on it.

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  vm-sortable-subject-of(nil)
  (or (vm-sortable-subject-of m) (progn (vm-set-sortable-subject-of m ...) (vm-sortable-subject-of m)))
  vm-so-sortable-subject(nil)
  vm-build-thread-list([[#<marker at 703199 in china.m> #<marker at 703232 in china.m> #<marker at 706894 in china.m> #<marker at 707239 in china.m> #<marker at 708621 in china.m> #<marker at 708622 in china.m>] ["98" " 98" nil #<marker at 7126 in china.m Summary> #<marker at 7207 in china.m Summary> <<>> <-- From_ "169" #<buffer china.m> nil nil nil nil nil nil nil none #<overlay from 7126 to 7207 in china.m Summary> nil nil <<>> nil] [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] ["4567" "Tuesday" "2" "September" "2008" "15:50:08" "+0100" "Uday S Reddy" "<email address hidden>" "<email address hidden>" nil "Re: Sun Yat Sen fees/scholarships" "^From:" "<email address hidden>, <email address hidden>, <email address hidden>, <email address hidden>" "Peter Coxhead, srmg, Caroline Wilson, <email address hidden>" "9" "2008090215:50:08" "Sun Yat Sen fees/scholarships" (number mark " 9/2 /08 To: Peter Coxhead " thread-indent "Re: Sun Yat Sen fees/scholarships\n") "<email address hidden>" ("<email address hidden>" "<email address hidden>" "<email address hidden>") nil nil "2466" "1217243146" nil] [nil <v> nil nil nil nil]])
  vm-thread-list([[#<marker at 703199 in china.m> #<marker at 703232 in china.m> #<marker at 706894 in china.m> #<marker at 707239 in china.m> #<marker at 708621 in china.m> #<marker at 708622 in china.m>] ["98" " 98" nil #<marker at 7126 in china.m Summary> #<marker at 7207 in china.m Summary> <<>> <-- From_ "169" #<buffer china.m> nil nil nil nil nil nil nil none #<overlay from 7126 to 7207 in china.m Summary> nil nil <<>> nil] [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] ["4567" "Tuesday" "2" "September" "2008" "15:50:08" "+0100" "Uday S Reddy" "<email address hidden>" "<email address hidden>" nil "Re: Sun Yat Sen fees/scholarships" "^From:" "<email address hidden>, <email address hidden>, <email address hidden>, <email address hidden>" "Peter Coxhead, srmg, Caroline Wilson, <email address hidden>" "9" "2008090215:50:08" "Sun Yat Sen fees/scholarships" (number mark " 9/2 /08 To: Peter Coxhead " thread-indent "Re: Sun Yat Sen fees/scholarships\n") "<email address hidden>" ("<email address hidden>" "<email address hidden>" "<email address hidden>") nil nil "2466" "1217243146" nil] [nil <v> nil nil nil nil]])
  vm-thread-root([[#<marker at 703199 in china.m> #<marker at 703232 in china.m> #<marker at 706894 in china.m> #<marker at 707239 in china.m> #<marker at 708621 in china.m> #<marker at 708622 in china.m>] ["98" " 98" nil #<mark...

Read more...

Changed in vm:
status: Fix Released → In Progress
milestone: 8.2.0a → 8.2.0
Revision history for this message
Uday Reddy (reddyuday) wrote :

False alarm. The session was using VM 8.2.0a.

Changed in vm:
milestone: 8.2.0 → 8.2.0a
status: In Progress → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.