sfc-aqua / quisp

Open source implementation of quantum internet simulation package
BSD 3-Clause "New" or "Revised" License
89 stars 36 forks source link

[wasm] Application exit (RangeError: Maximum call stack size exceeded) #542

Open bsiegelwax opened 10 months ago

bsiegelwax commented 10 months ago

https://aqua.sfc.wide.ad.jp/quisp-online/0.2.1/ is displaying:

Application exit (RangeError: Maximum call stack size exceeded)
zigen commented 10 months ago

thanks for reporting it. the v0.2.1 is an old version. it might be fixed in the master branch https://aqua.sfc.wide.ad.jp/quisp-online/master/ or https://aqua.sfc.wide.ad.jp/quisp-online/v0.3.0/ I'd be happy if you provide what you did in the simulator to reproduce this error.

note that inherently the WebAssembly version has several limitations for the execution like memory size and stack depth because it should run on a web page.

you can see other revisions in quisp wasm version here https://github.com/sfc-aqua/quisp-online .

bsiegelwax commented 10 months ago

I haven't done anything with the simulator. If I click on the 0.2.1, master, or v0.3.0 links, I see that error message before I can even see what the simulator looks like.

zigen commented 10 months ago

hmm, that sounds weird. could you tell me the full stack trace and your OS and browser version?

bsiegelwax commented 10 months ago

Windows 11 Home Single Language 22H2 Microsoft Edge Version 120.0.2210.121 (Official build) (64-bit) quisp

zigen commented 10 months ago

thanks! i haven't tried it on Edge. i'll try it tomorrow.

i confirmed it works on Google Chrome.

zigen commented 10 months ago

I tried it but it works. Windows 10 Pro 22H2 19045.3930 Microsoft Edge 120.0.2210.121

bsiegelwax commented 10 months ago

That's my screenshot. It starts off and stays just like that. Any other ideas?

zigen commented 10 months ago

could you show me the stacktrace in web console? I think there's more detailed log.

bsiegelwax commented 10 months ago

All it shows is:

console.trace
(anonymous) @ VM95:1