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. rajputyahya51_unity

    Jul 31, 2020 04:18

    Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading.
    a replacement https://maps.google.io/url?q=https://www.birthbymelissa.com

  2. rajputyahya51_unity

    Jul 24, 2020 06:04

    Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up.
    máy triệt lông ipl https://disqus.com/by/osakacoss/

  3. rajputyahya51_unity

    Jul 23, 2020 18:59

    This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.
    máy triệt lông opt shr https://www.bigpictureclasses.com/users/osakacoss

  4. beriberis

    Jun 02, 2020 12:53

    Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks.
    schutzmaske https://www.hewecon.de/

  5. beriberis

    May 20, 2020 15:22

    I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues.
    sms cyprus https://www.steilesms.com/en/

  6. beriberis

    May 17, 2020 22:26

    No doubt this is an excellent post I got a lot of knowledge after reading good luck. Theme of blog is excellent there is almost everything to read, Brilliant post.
    information security https://esowatch.org/

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.