plasma-umass / BLeak

BLeak: Automatically Debugging Memory Leaks in Web Applications
MIT License
408 stars 41 forks source link

No Stack Traces #42

Closed DangerStu closed 5 years ago

DangerStu commented 5 years ago

I'm running into an issue were there are no stack traces available.

if I inspect the chrome console I'm seeing this error:

bleak_agent.ts:1236 Uncaught ReferenceError: ApplicationCache is not defined at bleak_agent.ts:1236 at bleak_agent.ts:1607

My main code is behind a login, after login the app page loads twice before testing begins.

jvilk commented 5 years ago

Hmm, could it be that BLeak is running in an environment where ApplicationCache isn't available?

@DangerStu could you try commenting out this line in the package:

https://github.com/plasma-umass/BLeak/blob/3355e6ecf14902f4c11824abfde165a0b0d46e8b/src/lib/bleak_agent.ts#L1405

...and seeing if it fixes your problem? If it does, then it looks like I'll need to check if those things are available before using them.

jvilk commented 5 years ago

Closing due to inactivity.