-
Notifications
You must be signed in to change notification settings - Fork 747
Uni-50101-Fixing_the_domain_reload_crash_on_second_init #697
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
Closed
lassond
wants to merge
1
commit into
pythonnet:master
from
Unity-Technologies:Uni-50101-Fixing_the_domain_reload_crash_on_second_init
Closed
Uni-50101-Fixing_the_domain_reload_crash_on_second_init #697
lassond
wants to merge
1
commit into
pythonnet:master
from
Unity-Technologies:Uni-50101-Fixing_the_domain_reload_crash_on_second_init
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lassond
commented
Jul 4, 2018
- Now calling PythonEngine.Shutdown on app domain unload
Sorry, wanted to open against our new fork |
Is there any reason not to merge it here as well? |
No reason except that we would like to test more scenarios. But feel free
to merge and we’ll follow up with anything else we end up fixing.
Cheers!
David
…On Wed, Jul 4, 2018 at 5:01 PM Benedikt Reinartz ***@***.***> wrote:
Is there any reason not to merge it here as well?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#697 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlP9b6R2WVYayU5kge6aFImpwphb9RT_ks5uDS0cgaJpZM4VC-Ln>
.
|
@lassond a unit test or a reproducible crash report would be handy too |
Yes, I will make sure to write a unit test. Hopefully I can manage to
figure out how to reproduce from scratch (the crash happens in the context
of an application I do not have the code for);
- execute Python code with Python .NET
- app domain reload of the assembly
- execute Python code with Pytjon .NET
—> crash on second init when the runtime imports the « exception » module.
The import hook « saved » original funtion ptr must be garbage at this
point.
Anyway, I will reopen the pull request or create a new one when everything
is done.
Thanks!
…On Wed, Jul 4, 2018 at 10:36 PM Denis Akhiyarov ***@***.***> wrote:
@lassond <https://github.com/lassond> a unit test or a repoducible crash
report would be handy too
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#697 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlP9b3Z4z0S3GceORKwv5S_BUneXQh4kks5uDXuvgaJpZM4VC-Ln>
.
|
Hi Benedikt and Denis,
I am working on a pull request to get my fix to this crash in the public
repo. I created an issue:
#714
I am now following the steps for contributing:
https://github.com/pythonnet/pythonnet/blob/master/CONTRIBUTING.md
About the branch name in my fork, is this ok:
fix/develop/shutdown_on_domain_unload
or should it be
fix/lassond/shutdown_on_domain_unload
Can you clarify these points for me please:
* Make sure your commit messages are in the proper format
What is the proper format?
* Make sure you have added the necessary tests for your changes.
* Run all the tests to assure nothing else was accidentally broken.
Can you give me steps on how to run and add tests please? I created a
standalone app that reproduces the crash. I will gladly try and translate
it to a proper test.
Thanks and keep up the good work, Python .NET is an impressive project!
David
On Thu, Jul 5, 2018 at 5:52 AM, David Lassonde <
david.lassonde@imaginary-spaces.com> wrote:
… Yes, I will make sure to write a unit test. Hopefully I can manage to
figure out how to reproduce from scratch (the crash happens in the context
of an application I do not have the code for);
- execute Python code with Python .NET
- app domain reload of the assembly
- execute Python code with Pytjon .NET
—> crash on second init when the runtime imports the « exception » module.
The import hook « saved » original funtion ptr must be garbage at this
point.
Anyway, I will reopen the pull request or create a new one when everything
is done.
Thanks!
On Wed, Jul 4, 2018 at 10:36 PM Denis Akhiyarov ***@***.***>
wrote:
> @lassond <https://github.com/lassond> a unit test or a repoducible crash
> report would be handy too
>
> —
> You are receiving this because you were mentioned.
>
>
> Reply to this email directly, view it on GitHub
> <#697 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AlP9b3Z4z0S3GceORKwv5S_BUneXQh4kks5uDXuvgaJpZM4VC-Ln>
> .
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.