On Fri, May 24 2019, Jeremie Courreges-Anglas <jca@wxcvbn.org> wrote:
> +cc Pascal (maintainer of blender)
>
> On Mon, May 20 2019, Mihai Popescu <mihscu@gmail.com> wrote:
>> Hello,
>>
>> Maybe it is already known, but blender is not able to display gui
>> menus. IT renders just a blank no menu and items window. I will send
>> some terminal errors and dmesg. More info can be sent later.
>>
>> search for unknown operator 'WM_OT_context_set_enum', 'WM_OT_context_set_enum'
>> RNA_string_set: OperatorProperties.data_path not found.
>> RNA_string_set: OperatorProperties.value not found.
>
> [...]
>
>> uiItemStringO: 'WM_OT_url_open' unknown operator
>> search for unknown menutype USERPREF_MT_splash_footer
>>
>> Blender quit
>>
>> OpenBSD 6.5-current (GENERIC.MP) #35: Sat May 18 11:40:36 MDT 2019
>> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> [...]
>
> Rebuilding blender with
>
> MODPY_VERSION = 3.6
>
> fixes the UI issue here, I guess this could be used as a workaround.
> (Is there any rush to get rid of 3.6?)
>
> Updating the port to 2.79b didn't help.
>
> This issue may be relevant:
>
> "Blender UI failed to render using Python 3.7"
> https://developer.blender.org/T56969
This indeed fixes the UI glitches.
patch-source_blender_python_intern_bpy_rna_c below addresses this.
And since I had lightly tested an update to blender-2.79b, here's an
update diff.
Pascal, thoughts/ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/blender/Makefile,v
retrieving revision 1.91
diff -u -p -r1.91 Makefile
--- Makefile 28 Apr 2019 20:51:41 -0000 1.91
+++ Makefile 24 May 2019 17:26:46 -0000
@@ -4,8 +4,8 @@ ONLY_FOR_ARCHS = amd64 i386
COMMENT = 3D creation software
-DISTNAME = blender-2.79
-REVISION = 5
+DISTNAME = blender-2.79b
+PKGNAME = blender-2.79pl1
CATEGORIES = graphics
@@ -17,7 +17,7 @@ MAINTAINER = Pascal Stumpf <pascal@stump
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += GL GLEW GLU Half Iex IlmImf IlmThread Imath OpenColorIO
-WANTLIB += OpenImageIO X11 Xi Xrender Xxf86vm avcodec avdevice avformat
+WANTLIB += OpenImageIO X11 Xfixes Xi Xrender Xxf86vm avcodec avdevice avformat
WANTLIB += avutil boost_date_time-mt boost_filesystem-mt boost_regex-mt
WANTLIB += boost_system-mt boost_thread-mt c freetype jpeg m openal
WANTLIB += openjpeg png pthread ${MODPY_WANTLIB} swscale tiff tinyxml
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/blender/distinfo,v
retrieving revision 1.28
diff -u -p -r1.28 distinfo
--- distinfo 9 Nov 2017 17:00:28 -0000 1.28
+++ distinfo 24 May 2019 17:26:46 -0000
@@ -1,2 +1,2 @@
-SHA256 (blender-2.79.tar.gz) = qd4D52mipKC/khhlVolsT00y/ZrESAkVrpLX+VslyJk=
-SIZE (blender-2.79.tar.gz) = 50145270
+SHA256 (blender-2.79b.tar.gz) = TJRMMEpJ5orGh+oG9XWCBN7wSbZtwhHhz/oYV3Fjk7w=
+SIZE (blender-2.79b.tar.gz) = 50204270
Index: patches/patch-intern_guardedalloc_intern_mallocn_c
===================================================================
RCS file: /cvs/ports/graphics/blender/patches/patch-intern_guardedalloc_intern_mallocn_c,v
retrieving revision 1.4
diff -u -p -r1.4 patch-intern_guardedalloc_intern_mallocn_c
--- patches/patch-intern_guardedalloc_intern_mallocn_c 1 Apr 2015 21:26:40 -0000 1.4
+++ patches/patch-intern_guardedalloc_intern_mallocn_c 24 May 2019 17:26:46 -0000
@@ -2,9 +2,10 @@ $OpenBSD: patch-intern_guardedalloc_inte
Use posix_memalign() on OpenBSD.
---- intern/guardedalloc/intern/mallocn.c.orig Wed Mar 25 12:01:16 2015
-+++ intern/guardedalloc/intern/mallocn.c Wed Apr 1 11:56:33 2015
-@@ -75,7 +75,7 @@ void *aligned_malloc(size_t size, size_t alignment)
+Index: intern/guardedalloc/intern/mallocn.c
+--- intern/guardedalloc/intern/mallocn.c.orig
++++ intern/guardedalloc/intern/mallocn.c
+@@ -77,7 +77,7 @@ void *aligned_malloc(size_t size, size_t alignment)
assert(alignment == 16);
(void)alignment;
return malloc(size);
Index: patches/patch-intern_guardedalloc_intern_mallocn_guarded_impl_c
===================================================================
RCS file: /cvs/ports/graphics/blender/patches/patch-intern_guardedalloc_intern_mallocn_guarded_impl_c,v
retrieving revision 1.5
diff -u -p -r1.5 patch-intern_guardedalloc_intern_mallocn_guarded_impl_c
--- patches/patch-intern_guardedalloc_intern_mallocn_guarded_impl_c 22 Sep 2015 18:48:40 -0000 1.5
+++ patches/patch-intern_guardedalloc_intern_mallocn_guarded_impl_c 24 May 2019 17:26:46 -0000
@@ -1,7 +1,8 @@
$OpenBSD: patch-intern_guardedalloc_intern_mallocn_guarded_impl_c,v 1.5 2015/09/22 18:48:40 pascal Exp $
---- intern/guardedalloc/intern/mallocn_guarded_impl.c.orig Tue Jun 30 15:07:35 2015
-+++ intern/guardedalloc/intern/mallocn_guarded_impl.c Thu Sep 10 19:35:19 2015
-@@ -687,6 +687,9 @@ static int compare_len(const void *p1, const void *p2)
+Index: intern/guardedalloc/intern/mallocn_guarded_impl.c
+--- intern/guardedalloc/intern/mallocn_guarded_impl.c.orig
++++ intern/guardedalloc/intern/mallocn_guarded_impl.c
+@@ -717,6 +717,9 @@ static int compare_len(const void *p1, const void *p2)
void MEM_guarded_printmemlist_stats(void)
{
@@ -11,7 +12,7 @@ $OpenBSD: patch-intern_guardedalloc_inte
MemHead *membl;
MemPrintBlock *pb, *printblock;
unsigned int totpb, a, b;
-@@ -761,6 +764,7 @@ void MEM_guarded_printmemlist_stats(void)
+@@ -791,6 +794,7 @@ void MEM_guarded_printmemlist_stats(void)
#ifdef HAVE_MALLOC_STATS
printf("System Statistics:\n");
malloc_stats();
Index: patches/patch-source_blender_blenkernel_intern_writeffmpeg_c
===================================================================
RCS file: /cvs/ports/graphics/blender/patches/patch-source_blender_blenkernel_intern_writeffmpeg_c,v
retrieving revision 1.1
diff -u -p -r1.1 patch-source_blender_blenkernel_intern_writeffmpeg_c
--- patches/patch-source_blender_blenkernel_intern_writeffmpeg_c 25 Feb 2019 22:22:13 -0000 1.1
+++ patches/patch-source_blender_blenkernel_intern_writeffmpeg_c 24 May 2019 17:26:46 -0000
@@ -32,7 +32,7 @@ Index: source/blender/blenkernel/intern/
}
/* xasp & yasp got float lately... */
-@@ -764,7 +762,7 @@ static AVStream *alloc_audio_stream(FFMpegContext *con
+@@ -765,7 +763,7 @@ static AVStream *alloc_audio_stream(FFMpegContext *con
}
if (of->oformat->flags & AVFMT_GLOBALHEADER) {
@@ -41,7 +41,7 @@ Index: source/blender/blenkernel/intern/
}
set_ffmpeg_properties(rd, c, "audio", &opts);
-@@ -783,14 +781,14 @@ static AVStream *alloc_audio_stream(FFMpegContext *con
+@@ -784,14 +782,14 @@ static AVStream *alloc_audio_stream(FFMpegContext *con
st->codec->time_base.den = st->codec->sample_rate;
#ifndef FFMPEG_HAVE_ENCODE_AUDIO2
Index: patches/patch-source_blender_python_intern_bpy_rna_c
===================================================================
RCS file: patches/patch-source_blender_python_intern_bpy_rna_c
diff -N patches/patch-source_blender_python_intern_bpy_rna_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-source_blender_python_intern_bpy_rna_c 24 May 2019 17:26:46 -0000
@@ -0,0 +1,26 @@
+$OpenBSD$
+
+Fix PyRNA class registration w/ Python 3.7
+https://developer.blender.org/rB1db47a2ccd1e68994bf8140eba6cc2a26a2bc91f
+
+Index: source/blender/python/intern/bpy_rna.c
+--- source/blender/python/intern/bpy_rna.c.orig
++++ source/blender/python/intern/bpy_rna.c
+@@ -7389,6 +7389,7 @@ static int bpy_class_validate_recursive(PointerRNA *du
+ item = PyObject_GetAttrString(py_class, identifier);
+
+ if (item == NULL) {
++ PyErr_Clear();
+ /* Sneaky workaround to use the class name as the bl_idname */
+
+ #define BPY_REPLACEMENT_STRING(rna_attr, py_attr) \
+@@ -7404,6 +7405,9 @@ static int bpy_class_validate_recursive(PointerRNA *du
+ } \
+ Py_DECREF(item); \
+ } \
++ else { \
++ PyErr_Clear(); \
++ } \
+ } /* intentionally allow else here */
+
+ if (false) {} /* needed for macro */
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
No comments:
Post a Comment