prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
803 stars 134 forks source link

It crash if I use XPU to render #682

Closed BUGProtectionAssociation closed 1 year ago

BUGProtectionAssociation commented 1 year ago
root@DEBUG-PC
OS: Microsoft Windows 11 PRO
Kernel: 10.0.22621
Uptime: 7d 16h 27m 29s
Motherboard: LENOVO LNVNB161216
Shell: PowerShell 5.1.22621.1778
Resolution: 1920 x 1080  1280 x 1024
Window Manager: DWM
Font: Segoe UI
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
GPU NVIDIA GeForce GTX 1050 Ti
RAM: 14551MB / 32660 MB (45%)
Disk C: 117GB / 129GB (91%)

RIS could work as normal. image But it crash if swich to XPU image

image

NVIDIA GeForce GTX 1050 Ti  
PNP  ID PCI\VEN_10DE&DEV_1C8C&SUBSYS_39D017AA&REV_A1\4&2574EA12&0&0008  
    NVIDIA GeForce GTX 1050 Ti, NVIDIA 
    NVIDIA GeForce GTX 1050 Ti  
(1,048,576)     C:\WINDOWS\System32\DriverStore\FileRepository\nvltsig.inf_amd64_171e5fcea163ae57\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nvltsig.inf_amd64_171e5fcea163ae57\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nvltsig.inf_amd64_171e5fcea163ae57\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nvltsig.inf_amd64_171e5fcea163ae57\nvldumdx.dll 
    31.0.15.2698    
INF     oem5.inf 
    0xA3000000-0xA3FFFFFF   
    0x90000000-0x9FFFFFFF   
    0xA0000000-0xA1FFFFFF   
IRQ     IRQ 4294967274  
C:\WINDOWS\SYSTEM32\DRIVERSTORE\FILEREPOSITORY\NVLTSIG.INF_AMD64_171E5FCEA163AE57\NVLDDMKM.SYS (31.0.15.2698, 55.19 MB (57,872,888 字节), 2022/11/26 16:19)   

Intel(R) HD Graphics 630    
PNP  ID PCI\VEN_8086&DEV_591B&SUBSYS_39D117AA&REV_04\3&11583659&0&10    
Intel(R) HD Graphics Family, Intel Corporation 
Intel(R) HD Graphics 630    
1.00 GB C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\igdumdim64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_51f685305808e3a5\igd12umd64.dll   
    31.0.101.2111   
    oem30.inf   
    4294967296  
    1920 x 1080 x 60 
    32  
    0xA2000000-0xA2FFFFFF   
    0xB0000000-0xBFFFFFFF   
I/O     0x00005000-0x0000503F   
IRQ     IRQ 4294967275  
C:\WINDOWS\SYSTEM32\DRIVERSTORE\FILEREPOSITORY\IIGD_DCH.INF_AMD64_51F685305808E3A5\IGDKMD64.SYS (31.0.101.2111, 42.18 MB , 2022/10/13 11:43)    
BUGProtectionAssociation commented 1 year ago

There is the last log before crash

C:\Users\blender\git\blender-v360\blender.git\source\blender\blenlib\BLI_vector.hh:1017 len: 2048 0000022D1F20E0C0
uiBut len: 1032 0000022CF36BAB40
UI_but_operator_ptr_get len: 24 0000022CF54C25F8
IDProperty group len: 136 0000022CF400E198
IDProperty string len: 136 0000022CF400C3D8
id property string 2 len: 28 0000022CF54C1F98
uiBut len: 1032 0000022CF36B9D40
UI_but_operator_ptr_get len: 24 0000022CF54C1158
IDProperty group len: 136 0000022CF400DEF8
IDProperty string len: 136 0000022CF400EF98
id property string 2 len: 24 0000022CF54C1C98
uiBut len: 1032 0000022CF36BB240
UI_but_operator_ptr_get len: 24 0000022CF54C2478
IDProperty group len: 136 0000022CF571BF58
IDProperty string len: 136 0000022CF571BE78
id property string 2 len: 28 0000022CF54C3738
uiBut len: 1032 0000022CF36B9640
UI_but_operator_ptr_get len: 24 0000022CF54C0678
IDProperty group len: 136 0000022CF571BD98
IDProperty string len: 136 0000022CF571BCB8
id property string 2 len: 20 0000022CF54C33D8
uiBut len: 1032 0000022CF36BB940
UI_but_operator_ptr_get len: 24 0000022CF54C2D18
IDProperty group len: 136 0000022CF571BBD8
IDProperty string len: 136 0000022CF571BAF8
id property string 2 len: 20 0000022CF54C2598
uiBut len: 1032 0000022CF36B8840
UI_but_operator_ptr_get len: 24 0000022CF54E9278
IDProperty group len: 136 0000022CF571BA18
strdup len: 28 0000022CF54EBD98
IDProperty string len: 136 0000022CF571B938
id property string 2 len: 36 0000022C9989C1A8
uiBut len: 1032 0000022CF36B8140
UI_but_operator_ptr_get len: 24 0000022CF54E97B8
IDProperty group len: 136 0000022CF571B858
IDProperty string len: 136 0000022CF571B778
id property string 2 len: 24 0000022CF54E9338
uiBut len: 1032 0000022CF54AB940
UI_but_operator_ptr_get len: 24 0000022CF54E8858
IDProperty group len: 136 0000022CF571B698
IDProperty string len: 136 0000022CF571B5B8
id property string 2 len: 24 0000022CF54E98D8
uiBut len: 1032 0000022CF54A9640
UI_but_operator_ptr_get len: 24 0000022CF54EBA38
IDProperty group len: 136 0000022CF571B4D8
IDProperty string len: 136 0000022CF571B3F8
id property string 2 len: 32 0000022CF54EB2B8
WM_msg_subscribe_with_key len: 80 0000022CF3FDD6F8
WM_msg_subscribe_with_key len: 88 0000022CF3FDE918
WM_msg_subscribe_with_key len: 80 0000022CF3FDD5B8
dupli_alloc len: 392 0000022CF34EB238
dupli_alloc len: 24 0000022CF54EA298
dupli_alloc len: 24 0000022CF54EA418
dupli_alloc len: 24 0000022CF54E8A38
dupli_alloc len: 24 0000022CF54EBBB8
external_engine_init len: 16 0000022CF402CF78
GLTexture len: 488 0000022CBFC77138
GLFrameBuffer len: 304 0000022CF175ACB8
RenderEngine len: 704 0000022CF35EC438
RNA_parameter_list_create len: 16 0000022CF402CF28
Memoryblock GLTexture: Freeing memory after the leak detector has run. This can happen when using static variables in C++ that are defined outside of functions. To fix this error, use the 'construct on first use' idiom.
Memoryblock GLTexture: Freeing memory after the leak detector has run. This can happen when using static variables in C++ that are defined outside of functions. To fix this error, use the 'construct on first use' idiom.
An application exception has occurred in blender.exe.
  Error codes: 0x0000000000000000 0xC0000005 0x00000000 (0x00000008) (0x00000000)
Pipe to parent closed
Pipe to parent closed
Pipe to parent closed
Pipe to parent closed
Pipe to parent closed
Pipe to parent closed
Pipe to parent closed
Pipe to parent closed

Blender info

Blender:
====================================

version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb, type: release
build date: 2023-06-27, 08:27:30
platform: 'Windows-10-10.0.22621-SP0'
binary path: 'G:\\blender\\36\\blender.exe'
build cflags: /W3 /w34062 /w34100 /w34115 /w34189 /w35038 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /wd4828 /wd4996 /wd4661 /wd4848 /we4013 /we4133 /we4431 /we4033 /DWIN32 /D_WINDOWS /W3 /nologo /J /Gd /MP /bigobj /Zc:inline -openmp   
build cxxflags: /W3 /w34062 /w34100 /w34115 /w34189 /w35038 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /wd4828 /wd4996 /wd4661 /wd4848 /we4013 /we4133 /we4431 /we4033 /DWIN32 /D_WINDOWS /W3  /EHsc /nologo /J /Gd /MP /EHsc /bigobj /Zc:inline /permissive- /Zc:twoPhase- -openmp /Zc:__cplusplus   
build linkflags: /MACHINE:X64  /SUBSYSTEM:CONSOLE /STACK:2097152 /ignore:4049 /ignore:4217 /ignore:4221
build system: CMake
prman-pixar commented 1 year ago

According to this page on Nvidia's website:

https://www.nvidia.com/en-gb/geforce/graphics-cards/geforce-gtx-1050-ti/specifications/

Your graphics card only has 4GB of VRAM. That's too low to use with XPU. The minimum is 11GB. You can see the technical specifications for XPU in our docs:

https://rmanwiki.pixar.com/display/REN25/XPU+Technical+Specifications

BUGProtectionAssociation commented 1 year ago

According to this page on Nvidia's website:

https://www.nvidia.com/en-gb/geforce/graphics-cards/geforce-gtx-1050-ti/specifications/

Your graphics card only has 4GB of VRAM. That's too low to use with XPU. The minimum is 11GB. You can see the technical specifications for XPU in our docs:

https://rmanwiki.pixar.com/display/REN25/XPU+Technical+Specifications

I think a warning message should be added if users below 10G try to turn on the XPU. Instead of confusing users with crashes

prman-pixar commented 1 year ago

Yes, we are trying to add warnings if we can detect this situation.