Search Unity

Unity3D build stuck on scene 0

Discussion in 'Editor & General Support' started by zukinet, Nov 20, 2019.

  1. zukinet

    zukinet

    Joined:
    Oct 30, 2016
    Posts:
    51
    Hello,

    After I remove the Google Mobile Ads plugin, my projects build get stuck at "Building Scene 0"



    Very Strange:

    1)I have tried to create a new blank scene and remove all other scenes but still got this stuck...

    2) I have tried to rollback the projects and use assets that previously successfully build, but now it can not build and get stuck too.

    Is there any way to debug this thing? or the way to fix this?

    Note: I'm using Unity 2019.2.10f1

    Do I need to reinstall Unity?
     
    IndieFist likes this.
  2. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    520
    Do you found a solution? i just have this problem after update unity inapp
     
  3. kosted

    kosted

    Joined:
    Mar 14, 2015
    Posts:
    104
    Did you find a solution ?
     
    IndieFist likes this.
  4. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
  5. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    520
    Is something about sdk, just update and feel is working. When you switch to API 29 you need to update library of play resolver also.
     
    kosted likes this.
  6. NoDumbQuestion

    NoDumbQuestion

    Joined:
    Nov 10, 2017
    Posts:
    186
  7. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    I'm having this same issue in 2019.4.12f1.
    What I tried:
    - Disabling lightmap on all scenes
    - Upgrading the SDK to api 29
    - Force resolving the libraries
    Last lines of editor log:
    Code (csharp):
    1. Opening scene 'Temp/__Backupscenes/0.backup'
    2. Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
    3. Loaded scene 'Temp/__Backupscenes/0.backup'
    4.     Deserialize:            0.643 ms
    5.     Integration:            7.135 ms
    6.     Integration of assets:  0.005 ms
    7.     Thread Wait Time:       35.795 ms
    8.     Total Operation Time:   43.578 ms
    9. System memory in use before: 93.0 MB.
    10. System memory in use after: 92.9 MB.
    11. Unloading 64 unused Assets to reduce memory usage. Loaded Objects now: 3279.
    12. Total: 16.201100 ms (FindLiveObjects: 0.991700 ms CreateObjectMapping: 0.245700 ms MarkObjects: 14.386700 ms  DeleteObjects: 0.575700 ms)
    Everything was working fine in 2019.4.7f1...

    Any idea?
     
  8. NoDumbQuestion

    NoDumbQuestion

    Joined:
    Nov 10, 2017
    Posts:
    186
    Update: in batchmode build. Unity build will stuck in any scene with missing Prefab reference.

    Sometime clean /Library help when rebuild it. But when rebuild the 2nd times, the batchmode build will be stuck.

    Clean, copy/paste all build scenes solve the issue.
     
  9. xainulabdeen

    xainulabdeen

    Joined:
    Apr 10, 2018
    Posts:
    5
    Restarting system and unity resolved my issue
     
  10. Nith666

    Nith666

    Joined:
    Aug 1, 2012
    Posts:
    56
    I'm now in Unity 2022.2 and this bug still exists. Has definitely nothing to do with Lightmaps etc. Any other ideas?
     
  11. tuan_va_02

    tuan_va_02

    Joined:
    Feb 27, 2023
    Posts:
    1
    I have the same issue in Unity 2022.3, did you fix yours bro?
     
  12. Nith666

    Nith666

    Joined:
    Aug 1, 2012
    Posts:
    56
    Yes, what ultimately works in most of these cases is to go into the Unity Settings -> External tools where you see several check boxes in the "Android" section. Before you build, uncheck all of them and check them again. For me this usually works and following builds in the same session work as well, but you'll have to redo this procedure in your next Unity session. Sometimes you need to also force run the Android resolver. Hope this helps!
     
    Finn_Nua and dan_ginovker like this.
  13. Finn_Nua

    Finn_Nua

    Joined:
    Mar 27, 2023
    Posts:
    9
    same issue with version 2023.1.11f1

    Nith666's solution above worked for me. For windows users, it's Edit > preferences > External tools.

    Thanks Nith666, this was killing me!
     
  14. W5529Development

    W5529Development

    Joined:
    Aug 27, 2023
    Posts:
    2
    This is still occurring nothing is working
     

    Attached Files: