Open Bug 1464697 Opened 8 years ago Updated 3 years ago

Autocomplete for huge typed arrays freezes PC

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: Oriol, Unassigned)

References

(Blocks 1 open bug)

Details

1. Open console and run var arr = new Uint8Array(1e9); 2. Then, start writing arr.length Result: After writing "arr.", autocomplete queries properties. There are gazillions of them. Also, they are not internally stored as strings, so the strings of the result have to be allocated. With e10s, this will make the console stop working. Without e10s, the whole Firefox will freeze. Then Firefox will start using more and more memory, and if you don't kill it quick enough, it may freeze the whole PC. I couldn't even toggle the Caps Lock led. Until bug 1405509 provides better ways to address this case, I would just blacklist huge typed arrays for now and don't attempt to autocomplete.
Priority: -- → P2
Product: Firefox → DevTools
Blocks: console-perf
Type: enhancement → defect
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.