* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
@ 2024-04-09 19:43 ` oreo639
2024-04-09 19:44 ` oreo639
` (39 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-04-09 19:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2045935105
Comment:
Can you share the backtrace with debug symbols? (Add the debug repo and install blender-dbg)
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
2024-04-09 19:43 ` oreo639
@ 2024-04-09 19:44 ` oreo639
2024-04-10 19:01 ` MechDR
` (38 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-04-09 19:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2045935105
Comment:
Can you share the backtrace with debug symbols? (Add the debug repo and install blender-dbg)
You might need to use `gdb`, in which case do `gdb blender`, then do `run` and when the application crashes, do `bt`.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
2024-04-09 19:43 ` oreo639
2024-04-09 19:44 ` oreo639
@ 2024-04-10 19:01 ` MechDR
2024-04-13 22:48 ` MechDR
` (37 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-04-10 19:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2048240387
Comment:
@oreo639 Mhm, OK, I'll try.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (2 preceding siblings ...)
2024-04-10 19:01 ` MechDR
@ 2024-04-13 22:48 ` MechDR
2024-04-15 2:20 ` oreo639
` (36 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-04-13 22:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2053784642
Comment:
@oreo639 OK, here's what it spew.
````
#0 wm_window_set_drawable (activate=false, win=0x0, wm=0x7fffe4bc6c08) at ../source/blender/windowmanager/intern/wm_window.cc:1235
#1 wm_window_ghostwindow_add (title=0x555558d9b801 "Blender", is_dialog=<optimized out>, win=0x7fffe43acd08, wm=0x7fffe4bc6c08)
at ../source/blender/windowmanager/intern/wm_window.cc:785
#2 wm_window_ghostwindow_ensure (wm=0x7fffe4bc6c08, win=0x7fffe43acd08, is_dialog=<optimized out>)
at ../source/blender/windowmanager/intern/wm_window.cc:817
#3 0x00005555564de1bd in wm_window_ghostwindows_ensure (wm=wm@entry=0x7fffe4bc6c08)
at ../source/blender/windowmanager/intern/wm_window.cc:874
#4 0x00005555564a7d04 in WM_check (C=C@entry=0x7fffe6398b88) at ../source/blender/windowmanager/intern/wm.cc:483
#5 0x00005555564bd98e in wm_homefile_read_ex (C=C@entry=0x7fffe6398b88, params_homefile=params_homefile@entry=0x7fffffffe6b0,
reports=reports@entry=0x0, r_params_file_read_post=r_params_file_read_post@entry=0x7fffffffe6a8)
at ../source/blender/windowmanager/intern/wm_files.cc:1476
#6 0x00005555564c3124 in WM_init (C=C@entry=0x7fffe6398b88, argc=argc@entry=1, argv=argv@entry=0x7fffffffe888)
at ../source/blender/windowmanager/intern/wm_init_exit.cc:302
#7 0x0000555555d8c5e8 in main (argc=1, argv=0x7fffffffe888) at ../source/creator/creator.cc:537
````
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (3 preceding siblings ...)
2024-04-13 22:48 ` MechDR
@ 2024-04-15 2:20 ` oreo639
2024-04-15 2:21 ` oreo639
` (35 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-04-15 2:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2054394443
Comment:
The crash is a nullptr dereference here: https://github.com/blender/blender/blob/v4.0.2/source/blender/windowmanager/intern/wm_window.cc#L1235
What desktop environment are you using? Doe this happen with the Blender flatpak?
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (4 preceding siblings ...)
2024-04-15 2:20 ` oreo639
@ 2024-04-15 2:21 ` oreo639
2024-04-16 15:54 ` MechDR
` (34 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-04-15 2:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2054394443
Comment:
The crash is a nullptr dereference here: https://github.com/blender/blender/blob/v4.0.2/source/blender/windowmanager/intern/wm_window.cc#L1235
What desktop environment are you using? Does this happen with the Blender flatpak?
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (5 preceding siblings ...)
2024-04-15 2:21 ` oreo639
@ 2024-04-16 15:54 ` MechDR
2024-04-16 15:55 ` MechDR
` (33 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-04-16 15:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2059424318
Comment:
@oreo639 xfce4. No, I haven't tried the flatpack, but I will.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (6 preceding siblings ...)
2024-04-16 15:54 ` MechDR
@ 2024-04-16 15:55 ` MechDR
2024-04-16 16:06 ` MechDR
` (32 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-04-16 15:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2059424318
Comment:
@oreo639 xfce4. No, I haven't tried the flatpak, but I will.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (7 preceding siblings ...)
2024-04-16 15:55 ` MechDR
@ 2024-04-16 16:06 ` MechDR
2024-05-07 7:20 ` MechDR
` (31 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-04-16 16:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 766 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2059447434
Comment:
Yep, it crashes again with the same crash report.
````
# Blender 4.0.2, Unknown revision
# backtrace
blender(+0xf43dd3) [0x55bff141fdd3]
blender(+0x862ea9) [0x55bff0d3eea9]
/usr/lib/libc.so.6(+0x3f8c0) [0x7f03f56558c0]
blender(+0xf8a15c) [0x55bff146615c]
blender(+0xf8a1bd) [0x55bff14661bd]
blender(+0xf53d04) [0x55bff142fd04]
blender(+0xf6998e) [0x55bff144598e]
blender(+0xf6f124) [0x55bff144b124]
blender(+0x8385e8) [0x55bff0d145e8]
/usr/lib/libc.so.6(+0x29c4c) [0x7f03f563fc4c]
/usr/lib/libc.so.6(__libc_start_main+0x85) [0x7f03f563fd05]
blender(+0x85e8b1) [0x55bff0d3a8b1]
# Python backtrace
````
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (8 preceding siblings ...)
2024-04-16 16:06 ` MechDR
@ 2024-05-07 7:20 ` MechDR
2024-05-07 9:30 ` naoNao89
` (30 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-05-07 7:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2097618164
Comment:
This still isn't resolved...
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (9 preceding siblings ...)
2024-05-07 7:20 ` MechDR
@ 2024-05-07 9:30 ` naoNao89
2024-05-14 7:51 ` MechDR
` (29 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: naoNao89 @ 2024-05-07 9:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
New comment by naoNao89 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2097861452
Comment:
@MechDR Try running Blender with different command-line options or environment variables that may help diagnose the issue
```
blender --debug-all or MESA_DEBUG=1 blender
```
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (10 preceding siblings ...)
2024-05-07 9:30 ` naoNao89
@ 2024-05-14 7:51 ` MechDR
2024-05-18 23:08 ` MechDR
` (28 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-05-14 7:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3828 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2109514269
Comment:
OK, here is what `blender --debug-all` says.
````
Switching to fully guarded memory allocator.
graph_id_tag_update: id=SCScene flags=BASE_FLAGS source=USER_EDIT
DEG_relations_tag_update: Tagging relations for update.
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=TRANSFORM, GEOMETRY, COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GROVERRIDE_RESYNC_LEFTOVERS flags=COPY_ON_WRITE source=USER_EDIT
DEG_relations_tag_update: Tagging relations for update.
DEG_relations_tag_update: Tagging relations for update.
DEG_relations_tag_update: Tagging relations for update.
graph_id_tag_update: id=GRScene Collection flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=SCScene flags=COPY_ON_WRITE source=USER_EDIT
graph_id_tag_update: id=GRCollection flags=COPY_ON_WRITE source=USER_EDIT
Received X11 Error:
error code: 170
request code: 153
minor code: 0
error text: GLXBadFBConfig
Received X11 Error:
error code: 170
request code: 153
minor code: 0
error text: GLXBadFBConfig
Received X11 Error:
error code: 170
request code: 153
minor code: 0
error text: GLXBadFBConfig
Received X11 Error:
error code: 170
request code: 153
minor code: 0
error text: GLXBadFBConfig
Writing: /tmp/blender.crash.txt
fish: Job 1, 'blender --debug-all' terminated by signal SIGSEGV (Address boundary error)
````
As for `MESA_DEBUG=1 blender`, it basically does the same thing as just running `blender`, crashes and writes to `blender.crash.txt`.
````
Writing: /tmp/blender.crash.txt
fish: Job 1, 'MESA_DEBUG=1 blender' terminated by signal SIGSEGV (Address boundary error)
````
And there is nothing new in `blender.crash.txt`, it's the same thing as if you just run `blender`.
````
# Blender 4.0.2, Unknown revision
# backtrace
blender(+0xf43dd3) [0x5568b1097dd3]
blender(+0x862ea9) [0x5568b09b6ea9]
/usr/lib/libc.so.6(+0x3f8c0) [0x7f90396558c0]
blender(+0xf8a15c) [0x5568b10de15c]
blender(+0xf8a1bd) [0x5568b10de1bd]
blender(+0xf53d04) [0x5568b10a7d04]
blender(+0xf6998e) [0x5568b10bd98e]
blender(+0xf6f124) [0x5568b10c3124]
blender(+0x8385e8) [0x5568b098c5e8]
/usr/lib/libc.so.6(+0x29c4c) [0x7f903963fc4c]
/usr/lib/libc.so.6(__libc_start_main+0x85) [0x7f903963fd05]
blender(+0x85e8b1) [0x5568b09b28b1]
# Python backtrace
````
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (11 preceding siblings ...)
2024-05-14 7:51 ` MechDR
@ 2024-05-18 23:08 ` MechDR
2024-05-24 23:01 ` MechDR
` (27 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-05-18 23:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2119025385
Comment:
Still relevant...
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (12 preceding siblings ...)
2024-05-18 23:08 ` MechDR
@ 2024-05-24 23:01 ` MechDR
2024-06-24 6:48 ` fruitiestPunch
` (26 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-05-24 23:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2130494277
Comment:
Bump.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (13 preceding siblings ...)
2024-05-24 23:01 ` MechDR
@ 2024-06-24 6:48 ` fruitiestPunch
2024-06-24 7:02 ` oreo639
` (25 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-06-24 6:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 358 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185738238
Comment:
I wonder if this problem is caused on Void's side or rather on Blender's side.
Any ideas?
If it's because Blender is messing something up, I'd go to Blenders GH and create a new issue and link to this one.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (14 preceding siblings ...)
2024-06-24 6:48 ` fruitiestPunch
@ 2024-06-24 7:02 ` oreo639
2024-06-24 7:06 ` oreo639
` (24 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185760108
Comment:
> I wonder if this problem is caused on Void's side or rather on Blender's side.
I highly doubt it. It is a nullptr dereference in upstream code and was reproduced by OP in the Blender flatpak.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (15 preceding siblings ...)
2024-06-24 7:02 ` oreo639
@ 2024-06-24 7:06 ` oreo639
2024-06-24 7:06 ` oreo639
` (23 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185760108
Comment:
> I wonder if this problem is caused on Void's side or rather on Blender's side.
I highly doubt it. It is a nullptr dereference in upstream code and was reproduced by OP in the Blender flatpak.
As for why `wmWindow` seemingly suddenly becomes a nullptr in the `wm_window_set_drawable()`, idk.
I can't reproduce it so there isn't much I can do.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (16 preceding siblings ...)
2024-06-24 7:06 ` oreo639
@ 2024-06-24 7:06 ` oreo639
2024-06-24 7:06 ` oreo639
` (22 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 468 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185760108
Comment:
> I wonder if this problem is caused on Void's side or rather on Blender's side.
I highly doubt it. It is a nullptr dereference in upstream code and was reproduced by OP in the Blender flatpak.
As for why `wmWindow` seemingly suddenly becomes a nullptr in the `wm_window_set_drawable()`, idk.
Idk how to reproduce it.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (17 preceding siblings ...)
2024-06-24 7:06 ` oreo639
@ 2024-06-24 7:06 ` oreo639
2024-06-24 7:07 ` fruitiestPunch
` (21 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185760108
Comment:
> I wonder if this problem is caused on Void's side or rather on Blender's side.
I highly doubt it. It is a nullptr dereference in upstream code and was reproduced by OP in the Blender flatpak.
As for why `wmWindow` seemingly suddenly becomes a nullptr when calling `wm_window_set_drawable()`, idk.
Idk how to reproduce it.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (18 preceding siblings ...)
2024-06-24 7:06 ` oreo639
@ 2024-06-24 7:07 ` fruitiestPunch
2024-06-24 7:08 ` oreo639
` (20 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-06-24 7:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185768387
Comment:
I dug a little and compared Blender 4.0.1 with Blender 3.6.12 (this one and v3.3. work for me) and
`GPU_context_active_set(static_cast<GPUContext *>(win->gpuctx));`
lead me to
https://github.com/blender/blender/blob/9be62e85b7270d3d2e5bcc846420b91bab3988f9/source/blender/gpu/GPU_context.h#L65
where even the doc string states that it can be NULL (in v4 and v3.6).
I think the issue lies in the 'static_cast'.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (19 preceding siblings ...)
2024-06-24 7:07 ` fruitiestPunch
@ 2024-06-24 7:08 ` oreo639
2024-06-24 7:08 ` oreo639
` (19 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 421 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185760108
Comment:
> I wonder if this problem is caused on Void's side or rather on Blender's side.
I highly doubt it. It is a nullptr dereference in upstream code and was reproduced by OP in the Blender flatpak.
In this case, it calls `wm_window_set_drawable(wm, prev_windrawable, false);`
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (20 preceding siblings ...)
2024-06-24 7:08 ` oreo639
@ 2024-06-24 7:08 ` oreo639
2024-06-24 7:10 ` fruitiestPunch
` (18 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185760108
Comment:
> I wonder if this problem is caused on Void's side or rather on Blender's side.
I highly doubt it. It is a nullptr dereference in upstream code and was reproduced by OP in the Blender flatpak.
In this case, it calls `wm_window_set_drawable(wm, prev_windrawable, false)` when `wm->windrawable` is NULL because `GHOST_CreateWindow()` fails.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (21 preceding siblings ...)
2024-06-24 7:08 ` oreo639
@ 2024-06-24 7:10 ` fruitiestPunch
2024-06-24 7:10 ` oreo639
` (17 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-06-24 7:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185768387
Comment:
I dug a little and compared Blender 4.0.1 with Blender 3.6.12 (this one and v3.3. work for me) and
`GPU_context_active_set(static_cast<GPUContext *>(win->gpuctx));`
lead me to
https://github.com/blender/blender/blob/9be62e85b7270d3d2e5bcc846420b91bab3988f9/source/blender/gpu/GPU_context.h#L65
where even the doc string states that it can be NULL (in v4 and v3.6).
This only difference is the STATIC_CASTING in v4.
I will try to see, if
a) removing the 'static_cast' or
b) adding a nullptr-check before casting
will resolve the issue.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (22 preceding siblings ...)
2024-06-24 7:10 ` fruitiestPunch
@ 2024-06-24 7:10 ` oreo639
2024-06-24 7:11 ` oreo639
` (16 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx`, in this case `win` is null because `GHOST_CreateWindow()` fails and `wm->windrawable` is NULL.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (23 preceding siblings ...)
2024-06-24 7:10 ` oreo639
@ 2024-06-24 7:11 ` oreo639
2024-06-24 7:12 ` oreo639
` (15 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx`, in this case `win` is null because `GHOST_CreateWindow()` fails and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (24 preceding siblings ...)
2024-06-24 7:11 ` oreo639
@ 2024-06-24 7:12 ` oreo639
2024-06-24 7:12 ` oreo639
` (14 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx`, in this case `win` is NULL because `GHOST_CreateWindow()` fails and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (25 preceding siblings ...)
2024-06-24 7:12 ` oreo639
@ 2024-06-24 7:12 ` oreo639
2024-06-24 7:13 ` oreo639
` (13 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx` (which dereferences win), in this case `win` is NULL because `GHOST_CreateWindow()` fails and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (26 preceding siblings ...)
2024-06-24 7:12 ` oreo639
@ 2024-06-24 7:13 ` oreo639
2024-06-24 7:21 ` oreo639
` (12 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx` (which dereferences win), in this case `win` is NULL because `GHOST_CreateWindow()` failed for whatever reason and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (27 preceding siblings ...)
2024-06-24 7:13 ` oreo639
@ 2024-06-24 7:21 ` oreo639
2024-06-24 7:22 ` oreo639
` (11 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 512 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx` (which dereferences win), in this case `win` is NULL because `GHOST_CreateWindow()` failed for whatever reason and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
I can't reproduce it so there isn't much I can do about it.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (28 preceding siblings ...)
2024-06-24 7:21 ` oreo639
@ 2024-06-24 7:22 ` oreo639
2024-06-24 7:23 ` oreo639
` (10 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 568 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx` (which dereferences win), in this case `win` is NULL because `GHOST_CreateWindow()` failed for whatever reason and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
I can't reproduce it so there isn't much I personally can do about it. (unless some consistent reproducer is found)
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (29 preceding siblings ...)
2024-06-24 7:22 ` oreo639
@ 2024-06-24 7:23 ` oreo639
2024-06-24 7:23 ` oreo639
` (9 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx` (which dereferences win), in this case `win` is NULL because `GHOST_CreateWindow()` failed for whatever reason and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
I can't reproduce it so there isn't much I personally can do about it.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (30 preceding siblings ...)
2024-06-24 7:23 ` oreo639
@ 2024-06-24 7:23 ` oreo639
2024-06-24 7:31 ` fruitiestPunch
` (8 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: oreo639 @ 2024-06-24 7:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185773058
Comment:
`win->gpuctx` is equivalent to `(*win).gpuctx` (which dereferences win), in this case `win` is NULL because `GHOST_CreateWindow()` failed for whatever reason and `wm->windrawable` is NULL.
Either way, assuming this can still be reproduced on the latest official release, this should be reported upstream.
Personally, I can't reproduce it so there isn't much I can do about it.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (31 preceding siblings ...)
2024-06-24 7:23 ` oreo639
@ 2024-06-24 7:31 ` fruitiestPunch
2024-06-24 7:33 ` fruitiestPunch
` (7 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-06-24 7:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185807040
Comment:
I think GHOST_CreateWindow fails in v4, because it uses 'gpuSettings' for the first time. Before it was 'glSettings'.
This would be in line with what @MechDR said about PCs without GPU Passthrough.
Since I have the same issue as @MechDR I can reproduce it and check, if I can still use 'gSettings', if 'gpuSettings' are not available.
Thanks for your help in locating the bug :D
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (32 preceding siblings ...)
2024-06-24 7:31 ` fruitiestPunch
@ 2024-06-24 7:33 ` fruitiestPunch
2024-08-08 15:21 ` MechDR
` (6 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-06-24 7:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 817 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2185807040
Comment:
I think GHOST_CreateWindow fails in v4, because it uses 'gpuSettings' (https://github.com/blender/blender/blob/9be62e85b7270d3d2e5bcc846420b91bab3988f9/source/blender/windowmanager/intern/wm_window.cc#L734C7-L734C18) for the first time. Before it was 'glSettings' (https://github.com/blender/blender/blob/626a6b1c67997ac2432e91e836db5ed0f2dd8c64/source/blender/windowmanager/intern/wm_window.c#L692).
This would be in line with what @MechDR said about PCs without GPU Passthrough.
Since I have the same issue as @MechDR I can reproduce it and check, if I can still use 'gSettings', if 'gpuSettings' are not available.
Thanks for your help in locating the bug :D
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (33 preceding siblings ...)
2024-06-24 7:33 ` fruitiestPunch
@ 2024-08-08 15:21 ` MechDR
2024-08-09 7:27 ` fruitiestPunch
` (5 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-08-08 15:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2276095128
Comment:
@fruitiestPunch has an upstream issue been created?
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (34 preceding siblings ...)
2024-08-08 15:21 ` MechDR
@ 2024-08-09 7:27 ` fruitiestPunch
2024-08-09 12:21 ` MechDR
` (4 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-08-09 7:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2277325012
Comment:
@MechDR Sorry no, I totally forgot about it, because I had other important stuff to attend to and afterwards I simply forgot about it :/
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (35 preceding siblings ...)
2024-08-09 7:27 ` fruitiestPunch
@ 2024-08-09 12:21 ` MechDR
2024-08-09 12:49 ` fruitiestPunch
` (3 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-08-09 12:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 226 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2277823150
Comment:
@fruitiestPunch [Done](https://projects.blender.org/blender/blender/issues/126136).
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (36 preceding siblings ...)
2024-08-09 12:21 ` MechDR
@ 2024-08-09 12:49 ` fruitiestPunch
2024-08-09 12:51 ` [ISSUE] [CLOSED] " MechDR
` (2 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: fruitiestPunch @ 2024-08-09 12:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
New comment by fruitiestPunch on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2277873178
Comment:
@MechDR Added my past learnings to that thread. Thanks for creating the ticket, but sadly it got closed immediately, because PCs without dedicated GPU are not supported anymore :/
But I think, we can close this one now, since it's no longer needed (and not caused by void linux)
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [ISSUE] [CLOSED] Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (37 preceding siblings ...)
2024-08-09 12:49 ` fruitiestPunch
@ 2024-08-09 12:51 ` MechDR
2024-08-09 12:51 ` MechDR
2024-08-09 12:53 ` MechDR
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-08-09 12:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1671 bytes --]
Closed issue by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763
Description:
### Is this a new report?
Yes
### System Info
Void 6.6.25_1 x86_64 GenuineIntel notuptodate rrrmFFFFFFFFF
### Package(s) Affected
blender-4.0.2_2
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
Start up... or at least spit out something regarding the GPU not being compatible, because I have no idea if it is (AMD Radeon HD 4650).
But, I also tested it on 2 other PCs, both with older Intel onboard graphics (one has a 2nd gen i3, the other has a G41 GPU, Dual/Quad core era), it just crashes there as well
### Actual behaviour
Here is what `/tmp/blender.crash.txt` holds.
````
# Blender 4.0.2, Unknown revision
# backtrace
blender(+0xf43dd3) [0x555c3770edd3]
blender(+0x862ea9) [0x555c3702dea9]
/usr/lib/libc.so.6(+0x3f8c0) [0x7fe78a3738c0]
blender(+0xf8a15c) [0x555c3775515c]
blender(+0xf8a1bd) [0x555c377551bd]
blender(+0xf53d04) [0x555c3771ed04]
blender(+0xf6998e) [0x555c3773498e]
blender(+0xf6f124) [0x555c3773a124]
blender(+0x8385e8) [0x555c370035e8]
/usr/lib/libc.so.6(+0x29c4c) [0x7fe78a35dc4c]
/usr/lib/libc.so.6(__libc_start_main+0x85) [0x7fe78a35dd05]
blender(+0x85e8b1) [0x555c370298b1]
# Python backtrace
````
### Steps to reproduce
Try running it on unsupported hardware (in a VM for example, with no GPU passthrough), because I think that is the actual problem, since no one has filed a bug report yet, which means for people with newer hardware and that use it, it works just fine.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (38 preceding siblings ...)
2024-08-09 12:51 ` [ISSUE] [CLOSED] " MechDR
@ 2024-08-09 12:51 ` MechDR
2024-08-09 12:53 ` MechDR
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-08-09 12:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 156 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2277875902
Comment:
Yeah, agreed.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: Blender crashes on startup
2024-04-09 7:32 [ISSUE] Blender crashes on startup MechDR
` (39 preceding siblings ...)
2024-08-09 12:51 ` MechDR
@ 2024-08-09 12:53 ` MechDR
40 siblings, 0 replies; 42+ messages in thread
From: MechDR @ 2024-08-09 12:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
New comment by MechDR on void-packages repository
https://github.com/void-linux/void-packages/issues/49763#issuecomment-2277879751
Comment:
PS: It got reopened :).
^ permalink raw reply [flat|nested] 42+ messages in thread