Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

AccessViolationExceptions while loading custom Effects #161

Closed
dazerdude opened this issue Sep 14, 2013 · 3 comments
Closed

AccessViolationExceptions while loading custom Effects #161

dazerdude opened this issue Sep 14, 2013 · 3 comments

Comments

@dazerdude
Copy link
Contributor

So I submitted those changes a couple days back, and brought my personal branch up to date, and now I'm getting AccessViolationExceptions when I load custom effects. Perhaps I'm writing my effects wrong, but they work with the old binaries, so I suspect a bug has been introduced into effect loading in the last month. I tried to develop a fix on my own, but I'm much too inexperienced, and failed to get anywhere.

I've created something along the lines of a minimum failing project (it's a very small project), which I've parked in my dropbox here: https://www.dropbox.com/sh/fjk34cd93unbmwj/mWwPVQWX6L/Space.zip
It doesn't always repro, but it does most of the time on both of my test computers.

Let me know. Thanks!

  • Dazerdude
@ArtiomCiumac
Copy link
Contributor

Effect loading leads to corruption of unmanaged memory and the app crashes randomly.
Messing around with the constant buffer seems to change the behavior of crashes.
Have you tried other shaders? But I don't see anything unusual in this one.

xoofx added a commit that referenced this issue Sep 16, 2013
…fers causing an AccessViolationException
@xoofx
Copy link
Member

xoofx commented Sep 16, 2013

Thanks for the report this should be fixed by commit 6b6c3e8

@xoofx xoofx closed this as completed Sep 16, 2013
@dazerdude
Copy link
Contributor Author

Thanks for the quick fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants