Search Unity

Bug Made A game and it crashes on some player computers on win 10 /win 11 (inconsistent) help i just lau

Discussion in 'Editor & General Support' started by Alan_Trabelsi, Sep 23, 2022.

  1. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    -Hey i made a steam game and i had some persons saying it crashes , the game works fine on my pc and some others as well but it doesnt work for some
    -i have a player log / error log of someone that tried to run it on win 11


    -Please note i made it wit hUnity 2020.1.6 and DX 12 i dont know if anything has to do with the version or build architecture but anything can help ,my launch is a disaster i think)
     

    Attached Files:

    • help.rar
      File size:
      11.9 KB
      Views:
      126
  2. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    Please note i made it wit hUnity 2020.1.6 and DX 12 i dont know if anything has to do with the version or build architecture but anything can help ,my launch is a disaster i think)
     
  3. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    When you say "crashes" does it crash as soon as someone runs it, or does it crash randomly during the game?
    Did you collect any info about these players' hardware?
     
    Alan_Trabelsi likes this.
  4. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    it happend for... like for 5 at least , it freezes on launch (when running the game to see unity logo) there's a file attached if you can help , its not even demanding because its 1st of all optimised it works on my pc which is a laptop 2017 and not that good , many players have better configuration so i dont really now whats goin on and im so devastetd by this
     
    Last edited: Sep 23, 2022
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    One of the errors says the following. Are you using UnityEngine.Experimental?

    NullReferenceException: Object reference not set to an instance of an object
    at UnityEngine.Experimental.Rendering.HighDefinition.HDTemporalFilter.Init
     
  6. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    I don't like opening random files from the internet. Were there any error messages? I think most likely they'd be towards the end of the log.
     
  7. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    yes i have this error popping from time to time and im really a noob so what is it and can it be what causes someone computer to freeze ? and what i have to do exactly ?
     
  8. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    literally 2 log files so don't worry
     
  9. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    Yes, an uncaught null reference exception will cause a crash. Did you ever see this error in the editor?
     
  10. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    yes it pops sometimes and when sometimes i relaunch unity hub and reopen my project it dissapears ,
    please help with my 2 questions : what does it do excatly ? and why does it pop in console
    2-why me and some others didnt have a problem launching the game on STEAM,?
     
  11. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you confirm if you have the following in any of your scripts?

    using UnityEngine.Experimental
     
  12. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    i will Sir but i thought a unity update will be better and im stuck opening my project now , but i can confirm the error Object reference not set to an instance of an object . so any more details can be helpful and this 2 questions :

    1-what does it do excatly and why does it pop in console?
    2-why me and some others didnt have a problem launching the game on STEAM,?
     
  13. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You don't need to open the project to find if you have this in any of your scripts. If you find an experimental reference, you may need to update the package (not Unity necessarily) and ship another version of your game. You should try to stay away from anything with "Experimental" in the name. We don't know yet the answers to your questions, but this will hopefully narrow it down. To find a reference, use the following from the command line at the root of your project

    findstr /s /c:"UnityEngine.Experimental" * (on Mac, use grep)
     
  14. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    Please more help on this where to put that command line you mean the search tab?
    Do you mean the folder with assets in it?
     
    Last edited: Sep 23, 2022
  15. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    No, in a command (terminal) window at the root of the project. Or any file search utility you are familiar with. Probably should use *.cs (for script files only)
     
  16. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    Sorry but i do not know too much about things like this , do im ake a cmd file in my project and copy that command line to it and press enter right?
     
  17. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Sorry no. Are you on Windows or Mac? Either way, you first open a system terminal prompt (not using Unity).
     
  18. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    im on windows 10
     
  19. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Me too. It looks like I have an older timeline package myself!

    CommandPrompt.png
     
  20. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    really tried but nothing please help
     

    Attached Files:

  21. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    C:\Users\exalbdam\Documents\Stalked>findstr /s "UnityEngine.Experimental" *.cs
    isnt this ?
     
  22. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You first need to change directory, see my screenshot. You are in the wrong directory. First do:

    cd C:\Users\exalbdam\Documents\Stalked

    then use findstr
     
  23. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    can updating unity solves the problem , im literraly didint know how to do the cmd thing you've sent
     
  24. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Probably. Make a full back up first. Good luck!
     
  25. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    you are probably tired from my questions im really noob and a little bit stupid , so the problem is in one of my scripts if it shows up again (error)?
     
  26. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We don't know yet. The steps I was suggesting would help you to find out.
     
  27. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    i need really a clear step by step guide on how to search because it seems like it doesnt work for me really i tried your other comment and nothing , i really need to update my build
     
  28. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Just enter the following exactly as I typed it into your terminal that you showed before. Don't type anything more or less than exactly shown below:

    cd C:\Users\exalbdam\Documents\Stalked

    (cd is short for change directory)

    Then run the findstr command:

    findstr /s "UnityEngine.Experimental" *.cs

    Otherwise, just make a full backup of your project, then upgrade Unity.
     
  29. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    it says The system cannot find the path specified. whenever i press enter after putting the cd line
     
  30. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    So where is your project located? You spelled it both "exalbdam" and "exalb dam" Show a screenshot of your Hub on the Projects tab. that will show the exact location
     
  31. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    it worked sorry t was a mistake so now its geratig something
     
  32. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    i seen many things with experimantal , what go do
     
  33. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Summarize and share what they are. At the same time, make a full project backup and then upgrade Unity.
     
  34. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    too long really and thanks
     

    Attached Files:

  35. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    It seems you have the latest HDRP pipeline 12.1.7 that was throwing the errors. At this point I would recommend to make full project backup and upgrade Unity to 2021.3.10f1 (LTS)
     
  36. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    i did that and i hope it works , thanks Jeff
     
  37. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    When you get a build ready, maybe you could send it first to one of the users who had problems.
     
  38. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    Hey again , in the middle of building unity crashed and here's an editor log crush dmp , help needed
     

    Attached Files:

  39. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Does it crash every time you build? Please go through the logs and look for any errors and/or exceptions. Deduplicate and summarize your findings.
     
  40. Alan_Trabelsi

    Alan_Trabelsi

    Joined:
    Sep 20, 2020
    Posts:
    28
    Hey Jeff i dont know what i did but the game works fine , thanks for helping me out yesterday
     
    JeffDUnity3D likes this.