-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug VM assert in DoubleToFloatInstr::Canonicalize #45547
Comments
Can you test it at Linux too? Just to confirm if happens in other platforms. |
The called method with the assertion error: |
Unfortunately not easily. I can maybe try to get my MacOS build running but it might take a few days. It looks like the assertion is likely caused by this line in the FlowGraph:
Which I think relates to this line in the provided code:
I can potentially try to reproduce using that code only, but I'm not entirely sure what's causing the recompile? Is it attempting to optimize a hotspot after several iterations? |
Related to recently implemented allocation sinking of the arrays. Probably benign (assertion just needs an adjustment) but we should check that we materialize correct array on deopt |
For what it's worth, since I'm building from source I commented out the assertion for now and I'm not seeing any adverse effects. |
Try a Linux VM with Virtual Box. I do this in my mac to test some code with Linux. |
My embedding use case is as a scripting language for a homegrown game engine. Reproducing in Linux would require porting the engine 😁 |
In addition to an overly strict assertion, there was a bug in materialization of Float32List elements in case of deoptimization. |
I build Dart from source to use it as an embedding scripting language and I've come across a weird assertion. After running my code for a few seconds, the compiler asserts with the following message:
It appears the instruction failing the use assertion is a MaterializeObjectInstr instruction (see screenshot here):
https://twitter.com/fuzzybinary/status/1377418669567791104?s=20
I was asked to provide a dump from FlowGraphPrinter, which is here:
https://gist.github.com/fuzzybinary/2a6f82d9a358c886356e3de53eb1caa5
This is building Dart from the current 2.12.2 label on Windows
The text was updated successfully, but these errors were encountered: