Skip to content

Access Violation Exception when running JSX handler in Visual Studio debugging session #28

@paulirwin

Description

@paulirwin

Please note that this is not a consistently reproducible issue AFAICT.

Occasionally, and this seems to be about on average once an hour or so during active development, when going through this process (my normal react.js dev workflow) it results in a catastrophic Access Violation Exception:

  1. Start the Visual Studio 2013 debugger for my ASP.NET MVC project that uses React.NET.
  2. Make some changes to my JSX file in Sublime. Hit Save.
  3. Go over to Chrome, hit refresh. This requests the JSX file from the React.NET JSX handler again.
  4. If successful, the JSX handler will return the compiled JS, then I'll test it and probably go back to step 2 again, keeping the same debugger session active. But occasionally here I'll get Visual Studio popping up saying that the "Unknown Handler" had an Access Violation Exception. After clicking OK, the process crashes, and Visual Studio stops debugging.
  5. After a crash like this, without modifying the JSX file, I'll re-start the debugging session in VS, call the .jsx URL again executing the handler, and it will compile the JS just fine (meaning there's nothing wrong with the JSX itself).

Due to the obscure nature of the exception, that it says "Unknown Handler", and that I have no call stack or target site, I can't give any further information about the exception itself. I assume it is occurring in the MSIE integration layer, but that is just a guess. I also have yet to deploy this app to any kind of production environment, so this is at least a developer environment / IIS Express issue. I can not confirm if this does or does not happen using full IIS.

While I can't do anything explicitly to reproduce this, I can say that this happens at least under this criteria:

  • Keeping the Visual Studio debugging session active across multiple JSX file changes
  • This exception has not yet occurred on the first load -- it has always been after I've saved the JSX file a couple times and reloaded the page/called the JSX handler again a few times.
  • If it matters, I am not editing the file in Visual Studio (using Sublime 3)

And, if it's relevant (due to the MSIE engine), here's my system info:

  • Windows 8.1 update
  • IE 11.0.9600.17126

If you would like me to try anything explicitly on my machine to try to reproduce this issue, let me know and I'd be happy to help. Also, I'm interested to know if anyone else has encountered this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions