Skip to content
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

Very Strange: Stack trace missing the real line error and prints other line #60199

Open
busslina opened this issue Feb 24, 2025 · 3 comments
Open
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@busslina
Copy link

busslina commented Feb 24, 2025

Hi, I have seen this error several times and this is the first time I report it.

Basically in some situations, a runtime error gets badly printed, as it points to near line but not the correct one:

I did a video showing it. It might be a little bit confusing as it uses rearch concept and might not be very popular, but as I had this issue in the past I can assure is not rearchrelated.

In few words, the real error is being triggered by app.capsules.dart line 34 (_defaultAppVersionCapsule) but the reported error says app.capsules.dart line 16 (_defaultAppNameCapsule).

Video: https://streamable.com/fdao6x

@busslina
Copy link
Author

busslina commented Feb 24, 2025

So... digging more I tried with a different error string and it seems to correct it. Then using again the same string the error came again.

(Sorry about the noise...)

Video: https://streamable.com/8aot9h

Image

Image

The first image will point at line 16 (bad).
The second one will point at line 36 (good).

@lrhn
Copy link
Member

lrhn commented Feb 24, 2025

Looks like a compiler that tries to compile two equivalent function bodies into the same code, but messes up the line numbering.

@lrhn lrhn added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Feb 24, 2025
@a-siva
Copy link
Contributor

a-siva commented Feb 24, 2025

//cc @derekxu16 can you check if this an issue with CFE or with the JIT compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants