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

Bug ImportFBX of .obj files fails (Ubuntu 16.04)

Discussion in 'Linux' started by Gorna, Jan 26, 2017.

  1. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Unity editor Version: 5.5.0xp1

    When importing assets I get following error:

    ImportFBX Errors:
    Couldn't import file /home/goran/projects/linux/trunk/Assets/Art/Heroes/Warrior/Meshes/OrcWarchiefPosed_Sliced.obj.

    As result there is no meshes and nothing to render.

    Is there a solution?
     
  2. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Importing .obj should generally work - is there anything relevant in your editor log?
    If you send me the obj, I can investigate more locally.
     
  3. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Hello,

    Thank you for reply.

    Nothing relevant in logs just this for all of my .obj files.
    ImportFBX Errors:
    Couldn't import file /home/goran/projects/linux/trunk/Assets/Art/BoardPieces/Walls/Ork_Walls.obj.


    I am sending you this obj file to you for inspect.
    Files are created with MODO 8.0.1sp5. Options in attachment also.

    Thank you,
    Goran
     

    Attached Files:

  4. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Yes and same obj is imported on windows without errors.

    Thanx,
    Goran
     
  5. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Is there any progress on this issue?

    Thank you,
    Goran
     
  6. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    :| it imports fine here.
    There are no other import errors or other log messages? What locale are you using (env | egrep '(LANG|LC_)')?
    Is there anything "special" about your computer or environment?
     
  7. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Hi,

    So you got meshes and linux unity3d reported no error?

    well nothing special about my machine:

    here are some info:
    goran@tenchi:~$ env | egrep '(LANG|LC_)'
    LC_PAPER=hr_HR.UTF-8
    LC_ADDRESS=hr_HR.UTF-8
    LC_MONETARY=hr_HR.UTF-8
    LC_NUMERIC=hr_HR.UTF-8
    LC_TELEPHONE=hr_HR.UTF-8
    LC_IDENTIFICATION=hr_HR.UTF-8
    LANG=en_US.UTF-8
    GDM_LANG=en_US
    LC_MEASUREMENT=hr_HR.UTF-8
    LANGUAGE=en_US
    LC_TIME=hr_HR.UTF-8
    LC_NAME=hr_HR.UTF-8
    goran@tenchi:~$ uname -a
    Linux tenchi 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    goran@tenchi:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.1 LTS
    Release: 16.04
    Codename: xenial
    goran@tenchi:~/temp$ glxinfo | grep render
    direct rendering: Yes
    OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_KHR_robustness, GL_KTX_buffer_region, GL_NVX_conditional_render,
    GL_NV_conditional_render, GL_NV_conservative_raster,
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering,
    GL_NV_path_rendering_shared_edge, GL_NV_pixel_data_range,
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
    GL_KHR_robustness, GL_KTX_buffer_region, GL_NVX_conditional_render,
    GL_NV_conditional_render, GL_NV_conservative_raster,
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering,
    GL_NV_path_rendering_shared_edge, GL_NV_pixel_data_range,
    GL_EXT_raster_multisample, GL_EXT_render_snorm, GL_EXT_robustness,
    GL_NV_blend_equation_advanced_coherent, GL_NV_conditional_render,
    GL_NV_path_rendering, GL_NV_path_rendering_shared_edge,
    GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size,

     
  8. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    orkwalls.png


    Could you try launching unity with LC_ALL=C set in the environment and retrying the import?
     
  9. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Yes - in the mean time I followed your hint and updated all locales on en_us.UTF-8

    LC_PAPER=en_US.UTF-8
    LC_ADDRESS=en_US.UTF-8
    LC_MONETARY=en_US.UTF-8
    LC_NUMERIC=en_US.UTF-8
    LC_TELEPHONE=en_US.UTF-8
    LC_IDENTIFICATION=en_US.UTF-8
    LANG=en_US.UTF-8
    GDM_LANG=en_US
    LC_MEASUREMENT=en_US.UTF-8
    LANGUAGE=en_US
    LC_TIME=en_US.UTF-8
    LC_NAME=en_US.UTF-8

    did not try with LC_ALL=C (will try that thou)

    And import works! I have meshes. :):)

    Thank you!

    I have another issue - maybe you know.

    In editor on linux everything is very dark... I mean darker than on Windows. I tried Gamma and Linear color space (player settings) but that was not it.

    I tried to start unity with different version of OpenGL but still all is darker than normal - and when I render some object I have following error:

    OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range

    Do you maybe know what could be the problem?
    Or should I create another thread with new issue?

    Thank you again,
    Goran
     
    wenderRondonia likes this.
  10. Gorna

    Gorna

    Joined:
    May 12, 2015
    Posts:
    10
    Or maybe better question - how to force linux editor to run with GLES20 ?

    I think that would help...

    Switch -force-glesXX does not work
     
  11. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    It's good that the workaround works - the bad news is that this means there's probably a locale-based parsing bug in the fbx sdk itself.

    Currently, only opengl core profile (3.2 - 4.5) is supported in Unity 5.5+.
     
  12. markvi

    markvi

    Unity Technologies

    Joined:
    Oct 31, 2016
    Posts:
    118
    Reported as issue 877501.
     
    Tak likes this.
  13. KomorNick

    KomorNick

    Joined:
    Sep 12, 2016
    Posts:
    1
    same here... standard local is pl_PL.utf8 after changing to en_US.UTF-8 nothing change, same witch LC_ALL=C
    meaby some elaboration, about this workaround?
     
  14. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    The workaround is about the system (and the FBX SDK) using . or , for the decimal separator.
     
  15. CianNoonan

    CianNoonan

    Joined:
    May 19, 2017
    Posts:
    139
    Is there any update on how to work around the "OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range" error?

    I'm currently experiencing it on a Linux build made in 5.6.1, the game will open and the instantly close with this as the only error.
     
  16. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Are you using native rendering plugins?
     
  17. CianNoonan

    CianNoonan

    Joined:
    May 19, 2017
    Posts:
    139
    Hey Tak thanks for the response, can you clarify what you mean by native rendering plugins? As far as I know we do not have any plugins that interfere with rendering.
     
  18. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
  19. CianNoonan

    CianNoonan

    Joined:
    May 19, 2017
    Posts:
    139
  20. umarali_43

    umarali_43

    Joined:
    Mar 6, 2020
    Posts:
    6
    I had the issue on Linux that my meshes we not being imported correctly and were not visible.
    The error was
    "ImportFBX Errors:
    Couldn't read file /home/Projects/Assets/Meshes/Player.FBX.
    Unexpected file type".

    I solved it. The problem was that I had to do "git lfs pull" instead of "git pull".
     
    DavidN0 likes this.