~sircmpwn/aerc2#280: 
panic: runtime error: index out of range in fetch.go

Hi,

just got the following crash:

panic: runtime error: index out of range goroutine 1196 [running]: git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages.func1(0xc000a1e300, 0xc0001e25a0, 0x9525e0, 0xc000cebda0, 0xc000cd6700, 0xc000a1e3c0) /home/jenfi/WORK/jp/git/aerc/worker/imap/fetch.go:73 +0xbe1 created by git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages /home/jenfi/WORK/jp/git/aerc/worker/imap/fetch.go:71 +0xbf

Jean-Philippe

Status
REPORTED
Submitter
~grosjean
Assigned to
No-one
Submitted
1 year, 26 days ago
Updated
6 months ago
Labels
No labels applied.

~esparta 6 months ago

I was able to consistently reproduce this bug pressing J in the right time I got this error:

    panic: runtime error: index out of range [19] with length 19
    goutine 117 [running]: 
    git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages.func1(0xc0000b0e) 
     /src/worker/imap/fetch.go:80
     created by git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages
    src/worker/imap/fetch.go:78

If I change the folder from "Invoices" which has 19 messages, to "Invoices/Amazon" which has 44 messages, then aerc panic with the above message letting the terminal unusable.

The movement (using J) needs to be done before finishing rendering the messages in the Folder A, and then move to a non-empty Folder B.

Using aerc 0.3.0

Register here or Log in to comment, or comment via email.