circuitjs1 icon indicating copy to clipboard operation
circuitjs1 copied to clipboard

simulator breaks when i add an extra coil to custom transformer

Open Qwerty135246 opened this issue 1 year ago • 5 comments

whenever I add an extra coil to a custom transformer the simulator breaks and I have to save then reload the webpage.

Qwerty135246 avatar Jun 11 '23 13:06 Qwerty135246

Could you give me more detail? What are you setting the description to? How does the simulator break?

pfalstad avatar Jun 11 '23 18:06 pfalstad

I'm changing the description from, say, 1:2,3 to 1:2,4,1. the graphics breaks (freezes) and I have to reload the page to fix the graphics. This usually happens for larger circuits or when the transformer is already connected.

Qwerty135246 avatar Jun 14 '23 09:06 Qwerty135246

Can you give me a sample circuit? Or could you see if there's any errors in the browser console?

pfalstad avatar Jun 14 '23 22:06 pfalstad

an example is https://tinyurl.com/2a435t7g try adding a coil to a transformer There is also an error in the console: Uncaught TypeError: Cannot read properties of undefined (reading '0') at d9.e9 [as lf] (circuitjs1-0.js:2578:19585) at d9.KU [as _f] (circuitjs1-0.js:2576:24385) at c2 (circuitjs1-0.js:2487:437) at H0 (circuitjs1-0.js:2475:146) at v3 (circuitjs1-0.js:2567:188) at i4.j4 [as Od] (circuitjs1-0.js:2578:1035) at i4.Eb [as Nd] (circuitjs1-0.js:2575:15079) at eval (circuitjs1-0.js:931:42) at Zg (circuitjs1-0.js:830:29) at ah (circuitjs1-0.js:1300:44) at eval (circuitjs1-0.js:1375:46)

Qwerty135246 avatar Jun 18 '23 12:06 Qwerty135246

thanks, will fix.

pfalstad avatar Jun 19 '23 03:06 pfalstad