question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High Rtrace values causing test errors?

See original GitHub issue

Hello! This might be more of a discussion point, than a bug in as-pect. I’m not too sure, but I’ll create a repro case if you think this might be a bug 😄

So I’m working on a unit test of an object with a complex constructor. I’m testing a case I expect to throw, and at the end of the test I get: RTrace: +16. And this was causing a really weird behavior, where the test would fail, which appeared to be a runtime error. And as-pect would also output:

Screenshot from 2020-12-11 16-51-31


And for geenral google and github search:

[Error]: rtrace: Block: 8940 => shadow region mismatch: 0 != 8940
 [Stack]:     at Rtrace.unmarkShadow

...

So I’m not too sure what this means, but looking at the docs for RTrace, it meantions is might be a memory leak? https://tenner-joshua.gitbook.io/as-pect/as-api/rtrace-and-memory-leaks

However, the constructor is definitely creating a lot of objects on the runtime, and even runs through a few loops. If I understand the docs correctly, the Rtrace is a report of the number of object that were alive when the function had an error. So, a high Rtrace value (if it’s not being cleaned up like the docs mentions), makes sense for this test.

To fix this in the meantime, I just threw the problematic test, as the last test in my describe block, and everything seems to be working fine now 😄

Is this something on me? Or is this an as-pect issue? 🤔

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
jtennercommented, Mar 1, 2021

This should be all set.

4reactions
jtennercommented, Jan 27, 2021

This is why I’ve waited on development. I’m very excited for the new release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding the Accuracy of Diagnostic and Serology ...
The higher the values of a test's sensitivity and specificity (each out of 100%), the more accurate the test is in diagnosing a...
Read more >
The impact of false positive COVID-19 results in an area of low ...
False negative results in COVID-19 testing are well recognised and ... results have the potential to cause harm in both high- and low-prevalence...
Read more >
HPLC Troubleshooting Guide
No sample/deteriorated sample/ wrong sample. Settings too high on detector or recorder. Turn lamp on. Check electrical connections and cables. “ ...
Read more >
Guidance for the Validation of Analytical Methodology and ...
This is a measure of the difference between the expectation of the test result and the accepted reference value due to systematic method...
Read more >
Angular 6 Unit Tests: An error was thrown in afterAll ...
Typically there will be a stack trace there which will help you fix the ... My specific issue with this error was caused...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found