Bug 275819 - graphics/blender update to v4.0.2
Summary: graphics/blender update to v4.0.2
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL: https://www.blender.org/download/rele...
Keywords:
Depends on: 275402
Blocks:
  Show dependency treegraph
 
Reported: 2023-12-18 08:04 UTC by Shane
Modified: 2024-04-20 23:24 UTC (History)
3 users (show)

See Also:


Attachments
maintainer update graphics/blender (34.70 KB, patch)
2023-12-18 08:04 UTC, Shane
no flags Details | Diff
Fixed patch with update to 4.0.2 (33.44 KB, patch)
2024-02-17 11:58 UTC, Vladimir Druzenko
no flags Details | Diff
add option OPENXR (default off) and prevent silent grab graphics/openxr if indtalled (34.59 KB, patch)
2024-03-10 09:57 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shane 2023-12-18 08:04:58 UTC
Created attachment 247112 [details]
maintainer update graphics/blender

update graphics/blender to v4.0.2
Bring in the next major release for blender
this is needed to compile with opencolorio v2.3.1 update
Comment 1 Dima Panov freebsd_committer freebsd_triage 2023-12-18 11:58:39 UTC
Take it
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-02-16 17:05:29 UTC
Attached patch look for me as broken.
Check from line 31.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-02-17 11:58:50 UTC
Created attachment 248526 [details]
Fixed patch with update to 4.0.2

Check patch.

Build fine, but crashes during run.
==============================================================================
Under regular user:
$ blender
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)
-------------------------------------------------------------------------------------
$ cat /tmp/blender.crash.txt
# Blender 4.0.2, Commit date: 1970-01-01 00:00, Hash unknown

# backtrace
0x240cf79 <???> at /usr/local/bin/blender-bin
0x1c0db24 <???> at /usr/local/bin/blender-bin
0x82eddfb60 <pthread_sigmask+0x540> at /lib/libthr.so.3
0x82eddf11f <pthread_setschedparam+0x83f> at /lib/libthr.so.3
0x7ffffffff8a3 <???> at ???
0x245a29c <aligned_free+0x4119c> at /usr/local/bin/blender-bin
0x2459e4d <aligned_free+0x40d4d> at /usr/local/bin/blender-bin
0x241cbc3 <aligned_free+0x3ac3> at /usr/local/bin/blender-bin
0x2432a46 <aligned_free+0x19946> at /usr/local/bin/blender-bin
0x243ec65 <aligned_free+0x25b65> at /usr/local/bin/blender-bin

# Python backtrace
-------------------------------------------------------------------------------------
$ gdb /usr/local/bin/blender-bin blender-bin.core
GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd13.2".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/blender-bin...
(No debugging symbols found in /usr/local/bin/blender-bin)
[New LWP 638662]
[New LWP 101343]
[New LWP 638663]
[New LWP 638664]
[New LWP 638665]

warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `/usr/local/bin/blender-bin'.
Program terminated with signal SIGSEGV, Segmentation fault.
Sent by kill() from pid 48697 and user 1000.
#0  0x000000082c909048 in _umtx_op () from /lib/libc.so.7
[Current thread is 1 (LWP 638662)]
warning: File "/usr/local/lib/libpython3.10.so.1.0-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/local/lib/libpython3.10.so.1.0-gdb.py
line to your configuration file "/home/vvd/.config/gdb/gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/vvd/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
(gdb) bt
#0  0x000000082c909048 in _umtx_op () at /lib/libc.so.7
#1  0x000000082c88b839 in sem_clockwait_np () at /lib/libc.so.7
#2  0x000000084f6a5768 in IlmThread_3_2::Semaphore::wait() () at /usr/local/lib/libIlmThread-3_2.so.31
#3  0x000000084f6a4e2b in ??? () at /usr/local/lib/libIlmThread-3_2.so.31
#4  0x000000084f6a4f19 in ??? () at /usr/local/lib/libIlmThread-3_2.so.31
#5  0x000000082edd6a7a in ??? () at /lib/libthr.so.3
#6  0x0000000000000000 in ??? ()
==============================================================================
Under root:
# blender
GHOST/Wayland: error: XDG_RUNTIME_DIR is invalid or not set in the environment.
0x240cf79 <???> at /usr/local/bin/blender-bin
0x968b04b85 <wl_array_copy+0x705> at /usr/local/lib/libwayland-client.so.0
0x968affcc8 <wl_display_connect+0x118> at /usr/local/lib/libwayland-client.so.0
0x3c7b8b6 <PyInit_mathutils_noise+0x9325b6> at /usr/local/bin/blender-bin
0x3c6988a <PyInit_mathutils_noise+0x92058a> at /usr/local/bin/blender-bin
0x3c689c0 <PyInit_mathutils_noise+0x91f6c0> at /usr/local/bin/blender-bin
0x245b6da <aligned_free+0x425da> at /usr/local/bin/blender-bin
0x243eb42 <aligned_free+0x25a42> at /usr/local/bin/blender-bin
Writing: /tmp/blender.crash.txt
Segmentation fault
-------------------------------------------------------------------------------------
# cat /tmp/blender.crash.txt
# Blender 4.0.2, Commit date: 1970-01-01 00:00, Hash unknown

# backtrace
0x240cf79 <???> at /usr/local/bin/blender-bin
0x1c0db24 <???> at /usr/local/bin/blender-bin
0x82df81b60 <pthread_sigmask+0x540> at /lib/libthr.so.3
0x82df8111f <pthread_setschedparam+0x83f> at /lib/libthr.so.3
0x7ffffffff8a3 <???> at ???
0x245a29c <aligned_free+0x4119c> at /usr/local/bin/blender-bin
0x2459e4d <aligned_free+0x40d4d> at /usr/local/bin/blender-bin
0x241cbc3 <aligned_free+0x3ac3> at /usr/local/bin/blender-bin
0x2432a46 <aligned_free+0x19946> at /usr/local/bin/blender-bin
0x243ec65 <aligned_free+0x25b65> at /usr/local/bin/blender-bin

# Python backtrace
-------------------------------------------------------------------------------------
No cores.
==============================================================================
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-02-17 12:09:16 UTC
Build options are:
        ALEMBIC        : on
        ALEMBIC_HDF5   : on
        AVI            : on
        BULLET         : on
        CAMERATRACK    : on
        CINEON         : on
        COLLADA        : on
        COMPOSITOR     : on
        CYCLES         : on
        CYCLESEMBR     : on
        CYCLESOSL      : on
        DDS            : on
        DRACO          : on
        EBOOL          : on
        FFMPEG         : on
        FFTW3          : on
        FRAMESERVER    : on
        FREESTYLE      : on
        HARU           : on
        HDR            : on
        HEADLESS       : off
        INPUT_NDOF     : on
        JACK           : off
        LZMA           : on
        LZO            : on
        MENU           : on
        MOD_BOOLEAN    : on
        MOD_FLUID      : on
        MOD_OCEANSIM   : on
        MOD_REMESH     : on
        MOD_SMOKE      : on
        NLS            : on
        OPENAL         : on
        OPENCOLORIO    : on
        OPENEXR        : on
        OPENIMAGEDN    : on
        OPENIMAGEIO    : on
        OPENJPEG       : on
        OPENMP         : on
        OPENPGL        : off
        OPENSUBDIV     : off
        OPENVDB        : on
        POTRACE        : on
        PUGIXML        : on
        PULSEAUDIO     : off
        QUADRIFLOW     : on
        RAYOPTIMIZATION: on
        SDL            : off
        SNDFILE        : on
        TBB            : on
        THUMBNAILER    : on
        TIFF           : on
        TRACE          : on
        WAYLAND        : on
        WEBP           : on
        XF86VMODE      : on
        XINPUT         : on
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2024-02-17 12:16:27 UTC
But it run fine (without crashes) on other host.
I'll check my installation…
Comment 6 Shane 2024-02-18 00:52:18 UTC
Have you updated python since building blender?
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2024-02-18 12:34:58 UTC
(In reply to Shane from comment #6)
On both host same version of the python310-3.10.13_1.
Build ports on 1st host, then pkg create, then copy to 2nd host and pkg add.
On 1st host work without crashes, on 2nd host crashes.
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2024-03-10 09:57:00 UTC
Created attachment 249064 [details]
add option OPENXR (default off) and prevent silent grab graphics/openxr if indtalled
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2024-03-16 17:34:39 UTC
ping
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2024-04-20 23:24:13 UTC
Can we go forward?