Comments (16)
Not sure what's libtcm.so.1
.
@mwestphal any idea?
from f3d.
To us libtcm.so.1
looks unrelated to the actual problem here.
We saw the same errors in a successful run too (F3D on Ubuntu with GUI).
from f3d.
I attempted to debug (without symbols)...
(gdb) r --version
Starting program: /f3d/bin/f3d --version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x00007ffff0706273 in pxrInternal_v0_23__pxrReserved__::ArchMeasureExecutionTime<pxrInternal_v0_23__pxrReserved__::Arch_InitTickTimer()::{lambda()#1}>(pxrInternal_v0_23__pxrReserved__::Arch_InitTickTimer()::{lambda()#1} const&, unsigned long, bool*)::{lambda(void const*, int)#2}::_FUN(void const*, int) () from /f3d/lib/libusd_ms.so
(gdb)
Could be failing in the USD library libusd_ms
with a call to ArchMeasureExecutionTime(std::chrono::steady_clock::now)
from f3d.
Install f3d 2.4.0. (Irrespective of how you install f3d viz .deb, .tar.gz, headless, etc the issue is persistant)
Did you try compiling ?
from f3d.
pxrInternal_v0_23__pxrReserved__
This is USD, not sure what it would fail though
from f3d.
I'm unable to reproduce with the following, simple, dockerfile
FROM ubuntu:latest
RUN apt update && apt install -y \
wget \
xz-utils \
libopengl0 \
libegl1
RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz && tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz && ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version
[...]
F3D - A fast and minimalist 3D viewer
Version: 2.4.0.
Build date: 2024-04-03 14:12:03.
Build system: Linux 64-bits.
Compiler: GNU 8.4.0.
External rendering module: ON.
Raytracing module: OFF.
VTK version: 9.3.0-2200-g1312f8a726 (date: 20240312).
Copyright (C) 2019-2021 Kitware SAS.
Copyright (C) 2021-2024 Michael Migliore, Mathieu Westphal.
License BSD-3-Clause.
By Michael Migliore, Mathieu Westphal and Joachim Pouderoux.
from f3d.
I get an error?
FROM ubuntu:latest
RUN apt update && apt install -y wget xz-utils libopengl0 libegl1
RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz
RUN tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz
RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version
output:
docker build -t f3d .
[+] Building 0.7s (8/8) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 337B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:latest 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/5] FROM docker.io/library/ubuntu:latest@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 0.0s
=> CACHED [2/5] RUN apt update && apt install -y wget xz-utils libopengl0 libegl1 0.0s
=> CACHED [3/5] RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz 0.0s
=> CACHED [4/5] RUN tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz 0.0s
=> ERROR [5/5] RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version 0.2s
------
> [5/5] RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version:
0.178 Illegal instruction
------
Dockerfile:5
--------------------
3 | RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz
4 | RUN tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz
5 | >>> RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version
--------------------
ERROR: failed to solve: process "/bin/sh -c ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version" did not complete successfully: exit code: 132
I'm using macOS Intel 13.6.6 with Docker Desktop 4.29.0 (145265)
from f3d.
Tried it on my M3 Max (with --platform flag)...
docker build --platform linux/amd64 -t f3d .
[+] Building 59.9s (9/9) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 337B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:latest 2.2s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/5] FROM docker.io/library/ubuntu:latest@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 10.7s
=> => resolve docker.io/library/ubuntu:latest@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 0.0s
=> => sha256:d21429c4635332e96a4baae3169e3f02ac8e24e6ae3d89a86002d49a1259a4f7 424B / 424B 0.0s
=> => sha256:bf3dc08bfed031182827888bb15977e316ad797ee2ccb63b4c7a57fdfe7eb31d 2.30kB / 2.30kB 0.0s
=> => sha256:49b384cc7b4aa0dfd16ff7817ad0ea04f1d0a8072e62114efcd99119f8ceb9ed 28.87MB / 28.87MB 10.1s
=> => sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15 1.13kB / 1.13kB 0.0s
=> => extracting sha256:49b384cc7b4aa0dfd16ff7817ad0ea04f1d0a8072e62114efcd99119f8ceb9ed 0.6s
=> [2/5] RUN apt update && apt install -y wget xz-utils libopengl0 libegl1 32.4s
=> [3/5] RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz 12.6s
=> [4/5] RUN tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz 1.8s
=> ERROR [5/5] RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version 0.1s
------
> [5/5] RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version:
0.133 ArchError: Could not find 'cpu MHz' in /proc/cpuinfo
0.133 Function: Arch_ComputeNanosecondsPerTick
0.133 File: /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/base/arch/timing.cpp
0.133 Line: 150
0.134 Aborted
------
Dockerfile:5
--------------------
3 | RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz
4 | RUN tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz
5 | >>> RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version
--------------------
ERROR: failed to solve: process "/bin/sh -c ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version" did not complete successfully: exit code: 134
from f3d.
Works fine here:
Step 5/5 : RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version
---> Running in 848468982bf9
F3D 2.4.0
F3D - A fast and minimalist 3D viewer
Version: 2.4.0.
Build date: 2024-04-03 14:12:03.
Build system: Linux 64-bits.
Compiler: GNU 8.4.0.
External rendering module: ON.
Raytracing module: OFF.
VTK version: 9.3.0-2200-g1312f8a726 (date: 20240312).
Copyright (C) 2019-2021 Kitware SAS.
Copyright (C) 2021-2024 Michael Migliore, Mathieu Westphal.
License BSD-3-Clause.
By Michael Migliore, Mathieu Westphal and Joachim Pouderoux.
---> Removed intermediate container 848468982bf9
---> 6f510ac3e37a
Successfully built 6f510ac3e37a
I'm on ArchLinux. this may be host dependant.
from f3d.
0.133 ArchError: Could not find 'cpu MHz' in /proc/cpuinfo
0.133 Function: Arch_ComputeNanosecondsPerTick
0.133 File: /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/base/arch/timing.cpp
0.133 Line: 150
0.134 Aborted
Looks like a different error, in any case, this error seems to be macOS host specific.
from f3d.
0.133 ArchError: Could not find 'cpu MHz' in /proc/cpuinfo 0.133 Function: Arch_ComputeNanosecondsPerTick 0.133 File: /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/base/arch/timing.cpp 0.133 Line: 150 0.134 Aborted
Looks like a different error.
Think this is a known bug on Rosetta docker/for-mac#7080
from f3d.
Running as native ARM on my M3 Max... docker build -t f3d .
=> ERROR [5/5] RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version 0.1s
------
> [5/5] RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version:
0.091 rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
0.091 Trace/breakpoint trap
------
Dockerfile:5
--------------------
3 | RUN wget https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Linux-x86_64-headless.tar.xz
4 | RUN tar -xvf ./F3D-2.4.0-Linux-x86_64-headless.tar.xz
5 | >>> RUN ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version
--------------------
ERROR: failed to solve: process "/bin/sh -c ./F3D-2.4.0-Linux-x86_64-headless/bin/f3d --version" did not complete successfully: exit code: 133
(full house of exit codes... 132, 133 and 134)
from f3d.
Works on a native Ubuntu machine:
Linux host 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
F3D 2.4.0
F3D - A fast and minimalist 3D viewer
Version: 2.4.0.
Build date: 2024-04-03 14:12:03.
Build system: Linux 64-bits.
Compiler: GNU 8.4.0.
External rendering module: ON.
Raytracing module: OFF.
VTK version: 9.3.0-2200-g1312f8a726 (date: 20240312).
Copyright (C) 2019-2021 Kitware SAS.
Copyright (C) 2021-2024 Michael Migliore, Mathieu Westphal.
License BSD-3-Clause.
By Michael Migliore, Mathieu Westphal and Joachim Pouderoux.
from f3d.
@p4charu @p4paul If you want to investigate this, I would first try to compile to see if it reproduce it in that case too, then tries USD (pxr) sample examples to see if this is a OpenUSD bug/limitations.
from f3d.
Thank you for looking into this.
This does seem like a host specific issue.
from f3d.
Thank you for looking into this.
To clarify, I will not look into this but suggested debugging step for anyone willing to look into it.
from f3d.
Related Issues (20)
- viewer plugin for windows explorer HOT 3
- Long filepath causes explorer.exe crash in the Windows thumbnailer
- Help wanted, how do I install the 3mf plugin HOT 25
- Add deprecation logic in options.json CMake generation code
- Rework application layer and simplify options logic
- Add more option types
- Add proper parsing for all options types HOT 3
- Add documentation for options parsing
- Complete javascript bindings
- Complete the java bindings
- Use exception translator in python bindings
- Improve compile-time opti in options_tools.h.in
- Window on Windows 10 positioned at top left under taskbar HOT 7
- Wrong log with --group-geometries
- Parse mesh url from url-param search query to load https://f3d.app/web?mesh={mesh_url} HOT 10
- Add a `-D` `--define` option to set libf3d options directly
- Add imperative config option support
- Improvements to f3d web model url parsing feature
- Avoid displaying grid on the main axes HOT 2
- Add options to configure grid color HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from f3d.