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

Graphic glitches in the editor

Discussion in 'Linux' started by spacepluk, Dec 19, 2015.

  1. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243


    - When moving the view around sometimes you get some weird deformed geometry flashes.
    - Gizmos look like black boxes after you click on one of them.

    I'm getting the same thing on intel and nvidia gpus.
     
    danger89 likes this.
  2. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    I've noticed the same behaviour. (Nvidia driver version 358.16, open source)
     
  3. RedChops

    RedChops

    Joined:
    Sep 15, 2015
    Posts:
    3
    Yup, same here. Also once this starts happening, I can no longer just click on objects in the scene, I can only drag select them or select them from the hierarchy. I'm using the latest stable nvidia drivers, 355.11 (for LukaKotar, just fyi these are not the open source ones, Nouveau is. I'm not sure if the open source ones would be able to drive unity or not).

    Unfortunately for me, this makes this the most unstable build of Unity on Linux to date, bordering on totally unusable without being able to select items in the scene.
     
  4. jsra15

    jsra15

    Joined:
    Oct 31, 2015
    Posts:
    8
  5. RedChops

    RedChops

    Joined:
    Sep 15, 2015
    Posts:
    3
    Could be tangentially related, but I'm not sure. Thing is, I don't use Mesa for my OpenGL drivers, Nvidia rolls their own which has a version string of 4.5.0. It could be that they changed something in their graphics calls but we wouldn't know about that. The release notes says they didn't change their rendering stuff, but they must have at some point.
     
  6. Kryry

    Kryry

    Joined:
    Jul 12, 2015
    Posts:
    3
    I've got the same problem. I'm on Radeon 5830 with open source drivers. I start Unity with the "MESA_GL_VERSION_OVERRIDE=3.2" option.

    unity-editor-5.3.0f4

    I don't know if it's related in any way but there are some error in logs:

    Load scene 'Temp/__Backupscenes/0.backup' time: 50,431999 ms
    Enlighten scene contents: 0 geometries. 0 instances. 0 systems. 0 probe groups. 0 cube maps. Scene is up-to-date.
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000233 seconds (Nothing changed)
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000280 seconds (Nothing changed)
    [1220/190403:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWindow'
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_get_screen: assertion 'GTK_IS_WINDOW (window)' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_height: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_resize: assertion 'width > 0' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190403:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190403:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000288 seconds (Nothing changed)
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000285 seconds (Nothing changed)
    [1220/190434:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWindow'
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_get_screen: assertion 'GTK_IS_WINDOW (window)' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_height: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_resize: assertion 'width > 0' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190434:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190434:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000303 seconds (Nothing changed)
    [1220/190439:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWindow'
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_get_screen: assertion 'GTK_IS_WINDOW (window)' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_height: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_resize: assertion 'width > 0' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190439:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190439:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000290 seconds (Nothing changed)
    [1220/190443:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWindow'
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_get_screen: assertion 'GTK_IS_WINDOW (window)' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_height: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_resize: assertion 'width > 0' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190443:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190443:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000272 seconds (Nothing changed)
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000296 seconds (Nothing changed)
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000291 seconds (Nothing changed)
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000251 seconds (Nothing changed)
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000278 seconds (Nothing changed)
    [1220/190649:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWindow'
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_get_screen: assertion 'GTK_IS_WINDOW (window)' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_height: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_resize: assertion 'width > 0' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190649:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190649:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000291 seconds (Nothing changed)
    [1220/190653:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWindow'
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_get_screen: assertion 'GTK_IS_WINDOW (window)' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_height: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gdk: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_window_resize: assertion 'width > 0' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    [1220/190653:ERROR:browser_main_loop.cc(207)] GLib-GObject: invalid unclassed pointer in cast to 'GtkWidget'
    [1220/190653:ERROR:browser_main_loop.cc(207)] Gtk: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0,000313 seconds (Nothing changed)
     
  7. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    134
    I've noticed this too, just with the new 5.3 deb that was released. When running my demo it has random polygon glitches everywhere.. Almost like when I was creating a Game Engine, and I did a 'count + 1' when feeding the Vertex Buffer, so it was grabbing a vertex from random memory.
     
  8. cra0zy

    cra0zy

    Joined:
    Sep 30, 2014
    Posts:
    29
    Same glitchiness with black boxes for me, tested with both open and closed source AMD driver.
     
  9. mzavoloka

    mzavoloka

    Joined:
    Feb 28, 2015
    Posts:
    4
    Same happens to me. I run it with MESA_GL_VERSION_OVERRIDE=3.3COMPAT on Ubuntu 14.04 with Intel HD 3000. The artifacts from time to time appear when I move cursor from Scene view to other windows (Inspector, Console, Project). If I move camera (not only zoom it) in Scene view, or choose another object artifacts may disappear.
     
  10. mzavoloka

    mzavoloka

    Joined:
    Feb 28, 2015
    Posts:
    4
    Also, sometimes I can clearly see distorted image of Google Chrome's address bar when I move cursor to the Unity3D's top bar. It's not responsive (if I type something in currently opened chrome's address bar it won't affect that distorted image). It's just some image stored in the computer's memory some time ago.
     
  11. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Does running Unity with -force-opengl change this behavior?
     
  12. Kryry

    Kryry

    Joined:
    Jul 12, 2015
    Posts:
    3
    Like so?

    unity.jpeg
     
  13. cra0zy

    cra0zy

    Joined:
    Sep 30, 2014
    Posts:
    29
    The black squares glitch still occurs.

    Also, just to mention, I am not getting the other graphics glitch, just the gizmos turning into black squares.
     
  14. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    It doesn't seem to make a difference for me, at least with the intel gpu.

    On the nvidia the black gizmos are still there but I can't reproduce the polygon flashes anymore. This is using nvidia's driver 358.16 (same as before) and regardless of whether I use -force-opengl or not... I checked my logs and I upgraded mesa from 11.0.7 to 11.1.0 the same day I posted this, but I'm not sure which version I was using that when I tested :/
     
  15. mzavoloka

    mzavoloka

    Joined:
    Feb 28, 2015
    Posts:
    4
    No, it changes nothing.
    I also have those black squares instead of camera and light objects' icons. I've got mesa 11.2.0.
     
  16. danger89

    danger89

    Joined:
    Jul 10, 2012
    Posts:
    1
    I can also confirm this black box issue with Unity 5.3 on Arch Linux. Very nasty issue. Nvidia driver 340.96, using Nvidia GTX275. Only work-around is every time restart Unity... -force-opengl doesn't help at all.
     

    Attached Files:

  17. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,331
    I noticed that the vertex flashes only happen in Quality Levels Simple, Good, Beautiful and Fantastic. Fastest and Fast work fine.
     
  18. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    I noticed that in editor -force-opengl doesn't even use old renderer.
     
  19. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    this is fixed in the last release! :)