Closed Bug 435716 Opened 16 years ago Closed 8 years ago

selecting select1-list inside xforms:case (by using xforms:toggle inside a xforms:trigger) creates heavy cpu load and causes severe slow down of xforms page

Categories

(Core Graveyard :: XForms, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kullmann, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla XForms 0.8.5

Creating a select1-element inside a xforms:switch -> xforms:case and selecting it by using a tab-like structure that uses xforms:trigger-elements slows down display of this case considerably and makes the use of xforms impossible for lists that have 200 or more entries. Using a instance with about 1000 entries, it takes about 2-3 minutes on a P4 3.2 GHz to render the xforms:select1. This does not happen on the initial xforms:case ("first tab"), only when selecting another one.

Reproducible: Always

Steps to Reproduce:
1. create instance with at least 200-300 entries
2. create two xforms:trigger elements that each contain a xforms:toggle ("two tabs")
3. create a xforms:switch 
4. create two xforms:case with unique ids
5. load xforms-file and select second toggle-element
Actual Results:  
When selecting the second tab, the cpu load will go up to 100% and, depending on the number of elements that are to be displayed in the select1-list, it may take up to minutes to actually display the list.

Expected Results:  
Render the list as for the first "tab", just taking less than a second to display.
testcase to see the cpu load and slow down of display when selecting "Second" tab
The same type of sample , tested with 300 records with data window option .. the loading time of the sample is more better then your case like whole data file will load at the same time. and move from one record to another also flexible ...
But not in select1 control ,, like in that kind of sample used XQuery to load the xml file ,, it's more faster then the normal load from direct xml file
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100503 Firefox/3.6.4

Can't reproduce given test case on Firefox 3.6.4. I got the following error:

"XML Parsing Error: not well-formed
Location: https://bug435716.bugzilla.mozilla.org/attachment.cgi?id=322487
Line Number 17, Column 79: [...]"
Attached file Testcase v2
To get example working I removed calls of instance function from xf:bind. I don't understand why it doesn't work with instance function. 

Now when selecting the second tab I get the following:

uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object"  nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)"  location: "JS frame :: chrome://xforms/content/xforms.xml :: focus :: line 469"  data: no]
RIP xforms
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: