fougue / mayo

3D CAD viewer and converter based on Qt + OpenCascade
BSD 2-Clause "Simplified" License
1.45k stars 276 forks source link

Error reading file on every step files #144

Open physnoct opened 2 years ago

physnoct commented 2 years ago

DEBUG: OpenCascade settings file doesn't exist or is not readable [path=opencascade.conf] TKOpenGl | Type: Other | ID: 0 | Severity: Medium | Message: OpenGl_Window::CreateWindow: window Visual is incomplete: no stencil buffer WARNING: internal error: void QXcbWindow::setNetWmStateOnUnmappedWindow() called on mapped window TKOpenGl | Type: Other | ID: 0 | Severity: Medium | Message: OpenGl_Window::CreateWindow: window Visual is incomplete: no stencil buffer

sebmestrallet commented 1 year ago

Hello, I may not be related, but I had a similar issue (infinite loading) with only the first 3 lines of your logs.

My solution was to use Intel graphics instead of NVIDIA (on Ubuntu, with __NV_PRIME_RENDER_OFFLOAD and __GLX_VENDOR_LIBRARY_NAME shell variables).

HuguesDelorme commented 1 year ago

Hello @sebmestrallet If you are running latest Mayo version(built from develop branch) then you should have access to Help->System Information command(see #210) Could you then please post here the whole information with your NVidia device on Post as well what you get with Intel chipset on(maybe only the "OpenGL" related infos) Thanks!

sebmestrallet commented 1 year ago

I tried to install from sources (I used the AppImage before), but sadly Qt 5.14 is not available on the Ubuntu 20.04 LTS apt repository. And I don't have the rights to add PPAs on my PC...

I forgot to say in my last message that the warning/error lines are still printed with Intel drivers but it works.

sebmestrallet commented 1 year ago

Some news: I have another work PC on my hands, on Ubuntu 22.04 this time. The build instructions for Debian work perfectly. I no longer have any problems with NVIDIA drivers. Here is the System Information output, OpenGL parts.

With Intel graphics drivers:

OpenGL:
    GLXDirectRendering: Yes
    GLXVendor: SGI
    GLXVersion: 1.4
    GLXClientVendor: Mesa Project and SGI
    GLXClientVersion: 1.4
    GLvendor: Intel
    GLdevice: Mesa Intel(R) Graphics (ADL GT2)
    GLversion: 4.6 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
    GLSLversion: 4.60
    Max texture size: 16384
    Max FBO dump size: 4096x16384
    Max combined texture units: 192
    Max MSAA samples: 16
    Viewport: 100x100
    GPU memory: 31773 MiB
    MaxDegreeOfAnisotropy: 16
    MaxDrawBuffers: 8
    MaxClipPlanes: 8
    HasRayTracing: true
    HasRayTracingTextures: false
    HasRayTracingAdaptiveSampling: true
    UseVBO: true
    MaxDumpSizeX: 4096
    MaxDumpSizeY: 16384
    HasRayTracingAdaptiveSamplingAtomic: false
    HasTextureBaseLevel: true
    HasSRGB: true
    RenderSRGB: true
    IsWindowSRGB: true
    HasPBR: true

With NVIDIA drivers:

OpenGL:
    GLXDirectRendering: Yes
    GLXVendor: NVIDIA Corporation
    GLXVersion: 1.4
    GLXClientVendor: NVIDIA Corporation
    GLXClientVersion: 1.4
    GLvendor: NVIDIA Corporation
    GLdevice: NVIDIA T600 Laptop GPU/PCIe/SSE2
    GLversion: 4.6.0 NVIDIA 535.86.05
    GLSLversion: 4.60 NVIDIA
    Max texture size: 32768
    Max FBO dump size: 32768x32768
    Max combined texture units: 192
    Max MSAA samples: 64
    Viewport: 100x100
    GPU free memory: 3852 MiB
    GPU memory: 4096 MiB
    MaxDegreeOfAnisotropy: 16
    MaxDrawBuffers: 8
    MaxClipPlanes: 8
    HasRayTracing: true
    HasRayTracingTextures: true
    HasRayTracingAdaptiveSampling: true
    UseVBO: true
    MaxDumpSizeX: 32768
    MaxDumpSizeY: 32768
    HasRayTracingAdaptiveSamplingAtomic: true
    HasTextureBaseLevel: true
    HasSRGB: true
    RenderSRGB: true
    IsWindowSRGB: true
    HasPBR: true

I still have

DEBUG: OpenCascade settings file doesn't exist or is not readable [path=opencascade.conf]
TKOpenGl | Type: Other | ID: 0 | Severity: Medium | Message:
  OpenGl_Window::CreateWindow: window Visual is incomplete: no stencil buffer

warning lines printed at runtime in both cases.

HuguesDelorme commented 1 year ago

Hello @sebmestrallet Good to see it works on your side, thanks for the feedback That TKOpenGl message is an OpenCascade warning and shouldn't cause rendering problems(see comment)

HuguesDelorme commented 1 year ago

@physnoct Are you still having the issue? What about the 3D graphics, do you see the STEP file correctly rendered?

alexmyczko commented 4 months ago

meanwhile, i created an ITP and an official debian package is waiting at ftp-master new queue. you'll find a copy here http://bananas.debian.net/debian/mayo/git/

HuguesDelorme commented 4 months ago

@alexmyczko Thanks for your effort, notice that some debian package was already published at xtradeb: https://xtradeb.net/apps/mayo