Closed Bug 653393 Opened 13 years ago Closed 13 years ago

Cannot unfold sometimes some accounts. Uncaught exception in chrome://messenger/content/folderPane.js" line: 889

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86_64
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 658534

People

(Reporter: fredbezies, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20100101 Firefox/6.0a1
Build Identifier: 

Seems to be a very young bug. Only see it for a day or so. I built a trunk version of Mozilla Thunderbird, and sometimes (after folding / unfolding some accounts / trees), folder list for a given account doesn't work anymore.

I got this in error console :

Error: uncaught exception: [Exception... "'[JavaScript Error: "tree is undefined" {file: "chrome://messenger/content/folderPane.js" line: 889}]' when calling method: [nsITreeView::toggleOpenState]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://global/content/bindings/tree.xml :: changeOpenState :: line 241"  data: yes]


Reproducible: Always

Steps to Reproduce:
1.Just build a mozilla thunderbird trunk or a grab a new binary
2. Launch it.
3. Open / close accounts until you cannot do it anymore

Actual Results:  
Folders cannot be opened anymore.

Expected Results:  
Folders to be opened every single time ?

Using an homemade trunk build, with lightning addons (those which are built with thunderbird).

I'm using this .mozconfig on an up-to-date archlinux testing with gnome 3 on it and gcc 4.6

#
# See http://www.mozilla.org/build/ for build instructions.
#

export AUTOCONF=autoconf-2.13
export CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fpermissive"

ac_add_options --enable-application=mail
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-tb
mk_add_options MOZ_MAKE_FLAGS=-j4

# Options for ‘configure’ (same as command-line options).
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-calendar
ac_add_options --disable-crashreporter
ac_add_options --with-ccache
ac_add_options --disable-installer
ac_add_options --disable-warnings-as-errors
Can you try to narrow down steps to reproduce (ie how many folders - special folders etc ..) ?
Very quick this time after you asked me.

Only go to my main mailbox, and opened 3 folders (no subfolders) in this account. I have to had that I removed a thread of 5 messages in my main mail inbox.

I thought it was related to lightning, so I removed it, but it changed nothing at all.

And this error in error console :

Error: uncaught exception: [Exception... "'[JavaScript Error: "tree is undefined" {file: "chrome://messenger/content/folderPane.js" line: 889}]' when calling method: [nsITreeView::toggleOpenState]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://global/content/bindings/tree.xml :: changeOpenState :: line 241"  data: yes]
Using lxr.mozilla.org, found this file :

http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/tree.xml

And changeOpenState, starting from line 242 :

241 
242       <method name="changeOpenState">
243         <parameter name="row"/>
244         <!-- Optional parameter openState == true or false to set. 
245              No openState param == toggle -->
246         <parameter name="openState"/>
247         <body><![CDATA[
248           if (row < 0 || !this.view.isContainer(row)) {
249             return false;
250           }
251           if (this.view.isContainerOpen(row) != openState) {
252             this.view.toggleOpenState(row);
253             if (row == this.currentIndex) {
254               // Only fire event when current row is expanded or collapsed
255               // because that's all the assistive technology really cares about.
256               var event = document.createEvent('Events');
257               event.initEvent('OpenStateChange', true, true);
258               this.dispatchEvent(event);
259             }
260             return true;
261           }
262           return false;
263         ]]></body>
264       </method>

Can't find change which bust open/closing folders process though :(
Oups. Looks like I didn't remove cleanly lightning before. It is guilty here. Removing it - and cleaning my profile fixed the bug. Strange to see this behaviour, because I used lightning XPIs made with thunderbird...
Component: Folder and Message Lists → General
Product: Thunderbird → Calendar
QA Contact: folders-message-lists → general
Version: unspecified → Trunk
Another mistake. Create a new blank profile, recreate my accounts, imports mail and news. Still seeing it after 3 closed / opened folders / accounts :(
Component: General → Mail Window Front End
Product: Calendar → Thunderbird
QA Contact: general → front-end
I have no idea how Lightning could influence the folder pane, tbh.
Anyway, as I said in comment #5, lighting is innocent here. Maybe a change in JS engine cause this ? Anyway, it is a really annoying bug.
I never saw this bug with POP accounts only, but hit it once I added an IMAP account. Folder lists for all accounts are affected.

Thunderbird built from <http://hg.mozilla.org/comm-central/rev/e8332e7c3d7c> on Ubuntu 11.04 (x86).
It happens too me with: 
Mozilla/5.0 (Windows NT 6.1; rv:7.0a1) Gecko/20110704 Thunderbird/7.0a1

STR:
1. have more accounts\folders on folders pane;
2. turn all accounts to expanded mode;
3. resize main window to have some accounts\folders out of the screen
4. close an account node (in my example "news & blogs");
5. close another account node (in my example "local folders");
6. double click on "news & blogs" account to open it: works;
7. try to expand "local folders" using arrow or double click: works;
8. close local folders;
9. close "news & blogs" and double click on it;
10. now try to open local folders: don't works until next TB restart

OS=>All because I'm on Windows 7
OS: Linux → All
Component: Mail Window Front End → Folder and Message Lists
QA Contact: front-end → folders-message-lists
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.