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

DefineDynamicModule with emitSymbolInfo raise ExecutionEngineException on Unity player for Win/Mac #1

Open
wants to merge 7 commits into
base: unity
Choose a base branch
from

Conversation

ayamada
Copy link

@ayamada ayamada commented Jun 29, 2014

Hi, nasser.
I try Clojure-Unity. It is so very nice.
But, it don't work on built executable (outside of Unity Editor). It throw ExecutionEngineException at initializing ClojureCLR.
I research, and I found that was caused by DefineDynamicModule with emitSymbolInfo.
It called by AssymblyGen in DLR.
And I found Clojure-Unity work well when _isDebuggable is false.
I guess Unity Player for Win/Mac cannot emit debug symbol info.
Therefore, I believe to better to compile clojure-clr with release flag by default.

Thank you!

@nasser
Copy link

nasser commented Sep 7, 2014

Thanks! Are you saying that compiling in Release mode disables DefineDynamicModule?

@ayamada
Copy link
Author

ayamada commented Sep 8, 2014

Yes and No.
To be exact, "compiling in Release mode disables DefineDynamicModule's emitSymbolInfo flags".

Unity Editor can run new AssemblyGen(aname, directory, extension, true);, but Unity Player cannot run new AssemblyGen(aname, directory, extension, true);. (throw ExecutionEngineException)

Both of Unity Editor and Unity Player can run new AssemblyGen(aname, directory, extension, false);.

Apologize for my poor english.

PS:
I develop a game for Unity, but I doesn't like any of C#, UnityScript and Boo. I like Lisp.
Your job is great!

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

Successfully merging this pull request may close these issues.

2 participants