Search Issue Tracker

Fixed in 2019.1.X

Votes

0

Found in

2018.1.6f1

Issue ID

1056115

Regression

No

Crash on Scripting::ScriptingWrapperFor when destroying component with GameObject.DestroyImmediate after re-adding it

Scripting

-

How to reproduce:
1. Open the "crash_on_change.zip" project
2. Open the "SampleScene.unity" scene
3. Select "Directional Light" and "Cube" game objects via Hierarchy
4. In the Inspector open the "Network Identity" component context menu
5. Press "Selection to PhotonView"
6. Select the same game objects again
7. Remove "Photon View" component
8. Add "Network Identity" component
9. Repeat step 4-5

Actual result: Unity crashes. (gif attached)

Reproducible with: 2017.1.4p2, 2017.2.3p2, 2017.4.7f1, 2018.1.9f1, 2018.2.0f2, 2018.3.0a5.

Notes:
Assertion failed: Assertion failed on expression: 'm_InstanceID != InstanceID_None' appears after first execution of the script.
The crash is caused by line: GameObject.DestroyImmediate(networkView); SelectiontoPhoton.cs: 45

---------------------------------------------------
Fixed in 2019.1.0a11.

Comments (16)

  1. allesoverhonden

    Sep 15, 2020 12:24

    nk you very much for this great post.

  2. rajputyahya51_unity

    Aug 11, 2020 13:21

    This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
    view it https://maps.google.io/url?q=https://www.jodi-lynnphotography.com

  3. rajputyahya51_unity

    Aug 10, 2020 16:22

    I think this is an informative post and it is very useful and knowledgeable. therefore. I would like to thank you for the efforts you have made in writing this article.
    try this https://www.cs.odu.edu/~mln/teaching/cs595-s07/?method=display&redirect=https://www.fiveoaksfarmal.com

  4. hidok52765

    Aug 09, 2020 11:22

    I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight.
    startpagina https://www.joober.nl

  5. rajputyahya51_unity

    Aug 06, 2020 04:44

    This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
    click to find out more https://maps.google.cc/url?q=https://www.saveonit.ca

  6. rajputyahya51_unity

    Aug 02, 2020 07:00

    i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
    click here to find out more https://maps.google.cc/url?q=https://www.vvlcanhaus.com

  7. rajputyahya51_unity

    Aug 01, 2020 16:34

    Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder. what about the other side? !!!!!!THANKS!!!!!!
    check out your url https://maps.google.de/url?q=https://www.melissalynphotography.com

  8. rajputyahya51_unity

    Aug 01, 2020 11:45

    Thank you very much for this great post.
    article source https://maps.google.fr/url?q=https://www.throughalenz.com

  9. rajputyahya51_unity

    Jul 31, 2020 16:22

    Thanks for sharing the info. keep up the good work going.... I really enjoyed exploring your site. good resource...
    a total noob https://maps.google.io/url?q=https://www.amberniedermaier.com

  10. rajputyahya51_unity

    Jul 31, 2020 08:37

    I appreciated your work very thanks
    check my reference https://maps.google.md/url?q=https://danielletrina.com

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.