Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

D3D9: attempt to lock null vertex buffer error

Discussion in 'Editor & General Support' started by heskethgames, Sep 9, 2015.

  1. heskethgames

    heskethgames

    Joined:
    Jul 2, 2013
    Posts:
    18
    Hi, since updating to version 5.2 of unity from 5.1.1 I cant seem to change the games resolution mid game.

    When it loads up it I had written in it to change the resolution to the last preference however this all of a sudden is breaking the game with the UI failing to load and the full screen game to appear all strange in the window and stretched.

    All the error logs and say is this:

    - Completed reload, in 0.038 seconds
    desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
    <RI> Initializing input.

    <RI> Input initialized.

    <RI> Initialized touch support.

    Platform assembly: C:\Users\Public\Videos\gamebuild\executiveassault_Data\Managed\System.dll (this message is harmless)
    Platform assembly: C:\Users\Public\Videos\gamebuild\executiveassault_Data\Managed\UnityScript.Lang.dll (this message is harmless)
    Platform assembly: C:\Users\Public\Videos\gamebuild\executiveassault_Data\Managed\Boo.Lang.dll (this message is harmless)
    Setting up 2 worker threads for Enlighten.
    Thread -> id: 1248 -> priority: 1
    Thread -> id: 1dcc -> priority: 1
    D3D9: attempt to lock null vertex buffer
    D3D9: attempt to lock null vertex buffer
    D3D9: attempt to lock null vertex buffer
    D3D9: attempt to lock null vertex buffer
    D3D9: attempt to lock null vertex buffer
    etc


    I took out of the script the resolution change at the beginning and now it works, however if anyone tries to change midgame it goes all strange again.

    Just to repeat, this has started happening since updating from 5.1.1 to 5.2
    Can anyone suggest a fix? I have already submitted this as an error to Unity.

    Cheers
    Rob
     
  2. nia1701

    nia1701

    Joined:
    Jun 8, 2012
    Posts:
    74
    Just a quick note I'm getting the same error every frame. The game works perfect in the editor and worked perfect in 5.1. Now in 5.2 every frame I see the D3D9: attempt to lock null vertex buffer. I'm trying to hunt down whats causing this, I think it has something to do with a UI mouse, but its hard to say at this point. Any one else have any hints?
     
  3. mikelortega

    mikelortega

    Joined:
    Feb 5, 2014
    Posts:
    47
    I'm having the same error. I think it could be related to this issue, so I think I will wait until 5.2.1 is out. The temporal workaround for me is to avoid calling Screen.SetResolution if it isn't necessary.
    Cheers.
     
    Last edited: Sep 14, 2015
  4. ifisch

    ifisch

    Joined:
    Jul 15, 2012
    Posts:
    35
    Also having this problem in builds after switching from 5.1 to 5.2. In addition to a bunch of
    D3D9: attempt to lock null vertex buffer error
    messages in my output_log.txt, my uGUI HUD canvas stops rendering all together.
     
  5. AndyKorth

    AndyKorth

    Joined:
    Oct 19, 2009
    Posts:
    40
    This is affecting us as well. We call Screen.SetResolution at launch.
     
  6. titaskulikauskas

    titaskulikauskas

    QA Minion Unity Technologies

    Joined:
    Sep 1, 2015
    Posts:
    14
  7. AndyKorth

    AndyKorth

    Joined:
    Oct 19, 2009
    Posts:
    40
    Hm, yeah, that issue was mentioned elsewhere. However, the issue is occurring for me on a Mac (not DX11), at high resolutions (2560x1600) and in windowed mode. That issue is currently marked as fixed, but almost every item in it is different from my experience. Not sure what to make of it! But thank you! :)
     
  8. Doddler

    Doddler

    Joined:
    Jul 12, 2011
    Posts:
    265
    This issue unfortunately still exists with p1. :(
     
  9. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    465
    we're running into this with 5.2.1f1, standalone 32-bit Windows 7
     
  10. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    465
  11. mikelortega

    mikelortega

    Joined:
    Feb 5, 2014
    Posts:
    47
    I still have the problem with 5.2.1p1 and status in the issue (722107) changed from Fixed to Active. I'm afraid we'll have to wait...
     
  12. David-Kamunyu

    David-Kamunyu

    Joined:
    Jul 23, 2012
    Posts:
    23
    Yeah, my UI also disappears as soon as I change resolutions or quality levels, sometimes reappearing most times not; should be noted it is for Unity 5.x related UI stuff, while the old UI runtime technique is still working. (I'm in the midst of a transition).

    Nearly drop-kicked my machine thinking that I had messed something up in a script...
     
  13. mikelortega

    mikelortega

    Joined:
    Feb 5, 2014
    Posts:
    47
    David-Kamunyu likes this.
  14. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,850
    chrismarch likes this.
  15. David-Kamunyu

    David-Kamunyu

    Joined:
    Jul 23, 2012
    Posts:
    23
  16. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,850
    David-Kamunyu likes this.
  17. David-Kamunyu

    David-Kamunyu

    Joined:
    Jul 23, 2012
    Posts:
    23
    Oh yeah, "p" not "f".

    I really do miss the simple details :oops:

    Well, here is looking forward to the patch :D
     
    karl_jones likes this.
  18. EpicIndustries

    EpicIndustries

    Joined:
    Sep 28, 2014
    Posts:
    32
    I can confirm this has been fixed in the latest patch (works for me on 5.2.2p4)
     
    David-Kamunyu and karl_jones like this.
  19. AntiDanilevski

    AntiDanilevski

    Joined:
    Oct 20, 2012
    Posts:
    8

    Attached Files:

    Last edited: Mar 1, 2016
  20. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    902
    Still happening in 5.6.3p3 (found this at the top of Google). Regression?
     

    Attached Files:

    • log.txt
      File size:
      27.3 KB
      Views:
      872