Regression: Crash due to high memory usage when compiling Eevee shaders on AMD GPUs #99120

Closed
opened 2022-06-24 02:27:51 +02:00 by Will · 40 comments

System Information

GPU: OS: User:
AMD Radeon RX 6900 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.42, 5.15.41-1-MANJARO) AMD 4.6 (Core Profile) Mesa 22.0.4 Linux-5.15.41-1-MANJARO-x86_64-with-glibc2.35 64 Bits @celticsamurai
Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.0 Core Profile Context 22.8.2.220819 Windows-10-10.0.22000-SP0 64 Bits @mano-wii

Blender Version
Broken: 80859a6cb2 is the first bad commit
Worked: 3.1.2

Short description of error
Whenever I attempt to load a particular file, the memory gets so high that it crashes several programs if not the entire computer. With another file, the memory usage soars to ridiculous heights trying load textures. This happens in Manjaro, Arch, and EndeavorOS. As it turns out, this seems to be exclusive to 3.2, as downgrading to 3.1.2 resolved the issue.

Exact steps for others to reproduce the error

  • Open any of the attached files
  • Go to Material Preview view

Attached is a .blend file with only nodes that seriously affect memory usage (eevee_memory_bug.blend)
And another containing the original file from where the bug was detected (Earth.blend)

eevee_memory_bug.blend
Earth.blend

**System Information** |GPU:|OS:|User: |---|---|---|--- |AMD Radeon RX 6900 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.42, 5.15.41-1-MANJARO) AMD 4.6 (Core Profile) Mesa 22.0.4|Linux-5.15.41-1-MANJARO-x86_64-with-glibc2.35 64 Bits|@celticsamurai |Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.0 Core Profile Context 22.8.2.220819|Windows-10-10.0.22000-SP0 64 Bits|@mano-wii **Blender Version** Broken: 80859a6cb2 is the first bad commit Worked: 3.1.2 **Short description of error** Whenever I attempt to load a particular file, the memory gets so high that it crashes several programs if not the entire computer. With another file, the memory usage soars to ridiculous heights trying load textures. This happens in Manjaro, Arch, and EndeavorOS. As it turns out, this seems to be exclusive to 3.2, as downgrading to 3.1.2 resolved the issue. **Exact steps for others to reproduce the error** - Open any of the attached files - Go to Material Preview view Attached is a .blend file with only nodes that seriously affect memory usage (eevee_memory_bug.blend) And another containing the original file from where the bug was detected (Earth.blend) [eevee_memory_bug.blend](https://archive.blender.org/developer/F13441568/eevee_memory_bug.blend) [Earth.blend](https://archive.blender.org/developer/F13415865/Earth.blend)
Author

Added subscriber: @celticsamurai

Added subscriber: @celticsamurai
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Broken: version: 3.2, branch: makepkg (modified), commit date: 2022-03-31

@celticsamurai hi, can you reproduce this in 3.2 stable version?: https://www.blender.org/download/

> Broken: version: 3.2, branch: makepkg (modified), commit date: 2022-03-31 @celticsamurai hi, can you reproduce this in 3.2 stable version?: https://www.blender.org/download/
Author

In #99120#1379322, @PratikPB2123 wrote:

Broken: version: 3.2, branch: makepkg (modified), commit date: 2022-03-31

@celticsamurai hi, can you reproduce this in 3.2 stable version?: https://www.blender.org/download/

Would 3.2.0-3 be the stable version? If so, the issue seems to persist.

> In #99120#1379322, @PratikPB2123 wrote: >> Broken: version: 3.2, branch: makepkg (modified), commit date: 2022-03-31 > @celticsamurai hi, can you reproduce this in 3.2 stable version?: https://www.blender.org/download/ Would 3.2.0-3 be the stable version? If so, the issue seems to persist.
Member

Could you upload crash logs then?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#linux

With another file, the memory usage soars to ridiculous heights trying load textures

Loading textures you mean at the time of rendering?

Could you upload crash logs then?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#linux > With another file, the memory usage soars to ridiculous heights trying load textures Loading textures you mean at the time of rendering?
Author

In #99120#1379334, @PratikPB2123 wrote:
Could you upload crash logs then?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#linux

With another file, the memory usage soars to ridiculous heights trying load textures

Loading textures you mean at the time of rendering?

When I'm just posing the scene and I want to see it with the textures, it does this. The main problem is that the memory usage is just far too high and texture loading is taking too long. I even booted Blender through the terminal to see if I could get more details on what was causing the holdup. I would upload crash logs if I had them, but they're now lost, and I don't want to know what will happen to my computer if I attempt to replicate the issue.

> In #99120#1379334, @PratikPB2123 wrote: > Could you upload crash logs then?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#linux > >> With another file, the memory usage soars to ridiculous heights trying load textures > Loading textures you mean at the time of rendering? When I'm just posing the scene and I want to see it with the textures, it does this. The main problem is that the memory usage is just far too high and texture loading is taking too long. I even booted Blender through the terminal to see if I could get more details on what was causing the holdup. I would upload crash logs if I had them, but they're now lost, and I don't want to know what will happen to my computer if I attempt to replicate the issue.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

The crashes are most likely Blender getting killed by the OOM Killer, so I guess you may not necessary find a crash log. If this happens again, you can look at the end of the output of sudo dmesg to see if there are any messages about Blender getting killed. Alternatively, if you rebooted, you can look at the end of the output for journalctl -b -1.

Can you monitor the GPU memory as well and describe the mechanism at which the memory increase happens? Does GPU memory keep increasing until it is full, then host memory starts increasing until it is full, then the crash happens?
Or does the memory increase merely concern host memory?

Can you reset to factory settings before opening the file to see if a difference in a preference is causing this? File > Defaults > Load Factory Settings.

I don't want to know what will happen to my computer if I attempt to replicate the issue.

The OS is capable of handing such cases gracefully, that's why it kills Blender in the first place, so I wouldn't worry too much about it.

The crashes are most likely Blender getting killed by the OOM Killer, so I guess you may not necessary find a crash log. If this happens again, you can look at the end of the output of `sudo dmesg` to see if there are any messages about Blender getting killed. Alternatively, if you rebooted, you can look at the end of the output for `journalctl -b -1`. Can you monitor the GPU memory as well and describe the mechanism at which the memory increase happens? Does GPU memory keep increasing until it is full, then host memory starts increasing until it is full, then the crash happens? Or does the memory increase merely concern host memory? Can you reset to factory settings before opening the file to see if a difference in a preference is causing this? File > Defaults > Load Factory Settings. > I don't want to know what will happen to my computer if I attempt to replicate the issue. The OS is capable of handing such cases gracefully, that's why it kills Blender in the first place, so I wouldn't worry too much about it.
Author

The GPU memory seems pretty steady; it's the RAM that seems to gradually increase. I should mention that this only seems to happen when loading a particular set of admittedly complex textures that were made using tons of nodes (but again, Blender didn't used to have a problem loading it swiftly). And yeah the memory just keeps going until it's full, at which point it crashes itself as well as several other programs, and sometimes even the whole computer. Something else worth mentioning is that I have to forcefully shut down Blender when the RAM increase is taking place. Now here's what happened when I tried to CTRL+C the program in the terminal. I invariably have to forcefully terminate the program before it gets worse.

^CTraceback (most recent call last):
  File "/home/wayne/.config/blender/3.2/scripts/addons/blenderkit/timer.py", line 27, in timer
    @bpy.app.handlers.persistent
KeyboardInterrupt
Starting daemon server on port 10753
Daemon server started on address http://127.0.0.1:10753, PID: 9493, log file located at: /home/wayne/blenderkit_data/blenderkit-daemon-10753.log
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9935f45570>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=10753): Max retries exceeded with url: /report (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9935f45570>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/wayne/.config/blender/3.2/scripts/addons/blenderkit/timer.py", line 49, in timer
    results = daemon_lib.get_reports(app_id)
  File "/home/wayne/.config/blender/3.2/scripts/addons/blenderkit/daemon_lib.py", line 53, in get_reports
    resp = session.get(url, json=data)
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=10753): Max retries exceeded with url: /report (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9935f45570>: Failed to establish a new connection: [Errno 111] Connection refused'))
Terminated

image.png

The GPU memory seems pretty steady; it's the RAM that seems to gradually increase. I should mention that this only seems to happen when loading a particular set of admittedly complex textures that were made using tons of nodes (but again, Blender didn't used to have a problem loading it swiftly). And yeah the memory just keeps going until it's full, at which point it crashes itself as well as several other programs, and sometimes even the whole computer. Something else worth mentioning is that I have to forcefully shut down Blender when the RAM increase is taking place. Now here's what happened when I tried to CTRL+C the program in the terminal. I invariably have to forcefully terminate the program before it gets worse. ``` ^CTraceback (most recent call last): File "/home/wayne/.config/blender/3.2/scripts/addons/blenderkit/timer.py", line 27, in timer @bpy.app.handlers.persistent KeyboardInterrupt Starting daemon server on port 10753 Daemon server started on address http://127.0.0.1:10753, PID: 9493, log file located at: /home/wayne/blenderkit_data/blenderkit-daemon-10753.log Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output self.send(msg) File "/usr/lib/python3.10/http/client.py", line 975, in send self.connect() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9935f45570>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 440, in send resp = conn.urlopen( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 785, in urlopen retries = retries.increment( File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=10753): Max retries exceeded with url: /report (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9935f45570>: Failed to establish a new connection: [Errno 111] Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/wayne/.config/blender/3.2/scripts/addons/blenderkit/timer.py", line 49, in timer results = daemon_lib.get_reports(app_id) File "/home/wayne/.config/blender/3.2/scripts/addons/blenderkit/daemon_lib.py", line 53, in get_reports resp = session.get(url, json=data) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in get return self.request('GET', url, **kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=10753): Max retries exceeded with url: /report (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9935f45570>: Failed to establish a new connection: [Errno 111] Connection refused')) Terminated ``` ![image.png](https://archive.blender.org/developer/F13227096/image.png)

Added subscriber: @rjg

Added subscriber: @rjg

@celticsamurai Could you please check if the issue still occurs when you disable the BlenderKit add-on?

@celticsamurai Could you please check if the issue still occurs when you disable the BlenderKit add-on?
Author

In #99120#1380198, @rjg wrote:
@celticsamurai Could you please check if the issue still occurs when you disable the BlenderKit add-on?

While these textures did come from the media library, disabling it didn't seem to help.

> In #99120#1380198, @rjg wrote: > @celticsamurai Could you please check if the issue still occurs when you disable the BlenderKit add-on? While these textures did come from the media library, disabling it didn't seem to help.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Not sure if this will help, but does opening blender with blender --debug-memory yield any useful messages?

Not sure if this will help, but does opening blender with `blender --debug-memory` yield any useful messages?
Author

In #99120#1384769, @OmarEmaraDev wrote:
Not sure if this will help, but does opening blender with blender --debug-memory yield any useful messages?

Nothing that I can see, but maybe there's something there that you can see?

Switching to fully guarded memory allocator.
Read prefs: /home/wayne/.config/blender/3.2/config/userpref.blend
xps_tools updater verbose is enabled
xps_tools Updater: Read in JSON settings from file
Traceback (most recent call last):
  File "/usr/share/blender/3.2/scripts/modules/addon_utils.py", line 335, in enable
    mod = __import__(module_name)
  File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/__init__.py", line 39, in <module>
    from .engine.engine import Engine
  File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/engine/__init__.py", line 54, in <module>
    pyrpr.init(rpr_lib_dir, logging.Log(tag='core'), config.pyrpr_log_calls)
  File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/pyrpr.py", line 110, in init
    import __rpr
  File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/__rpr.py", line 2, in <module>
    import _cffi_backend
ModuleNotFoundError: No module named '_cffi_backend'
Error: LZ4 module didn't load. Unsupported Python version!

    - Loading Rokoko Studio Live for Blender...
    - Loaded Rokoko Studio Live for Blender successfully!

register_class(...):
Warning: 'BonePhys_UL_BoxList' doesn't have upper case alpha-numeric prefix
register_class(...):
Warning: 'EditPanel' does not contain '_PT_' with prefix and suffix
blenderkit addon: Verbose is enabled
blenderkit addon: Read in JSON settings from file
Starting daemon server on port 10753
Daemon server started on address http://127.0.0.1:10753, PID: 7571, log file located at: /home/wayne/blenderkit_data/blenderkit-daemon-10753.log
mmd_tools registed 132 classes
Warning: property 'need_active' not found in item 'FILE_OT_execute'
blenderkit updater: Running background check for update
blenderkit addon: Starting background checking thread
blenderkit addon: Checking for update now in background
blenderkit addon: Checking for update function
blenderkit addon: Read in JSON settings from file
blenderkit addon: Determined it's not yet time to check for updates
blenderkit addon: Aborting check for updated, check interval not reached
blenderkit addon: Finished check update, doing callback
blenderkit addon: Running background update callback
blenderkit addon: BG thread: Finished check update, no callback

> In #99120#1384769, @OmarEmaraDev wrote: > Not sure if this will help, but does opening blender with `blender --debug-memory` yield any useful messages? Nothing that I can see, but maybe there's something there that you can see? ``` Switching to fully guarded memory allocator. Read prefs: /home/wayne/.config/blender/3.2/config/userpref.blend xps_tools updater verbose is enabled xps_tools Updater: Read in JSON settings from file Traceback (most recent call last): File "/usr/share/blender/3.2/scripts/modules/addon_utils.py", line 335, in enable mod = __import__(module_name) File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/__init__.py", line 39, in <module> from .engine.engine import Engine File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/engine/__init__.py", line 54, in <module> pyrpr.init(rpr_lib_dir, logging.Log(tag='core'), config.pyrpr_log_calls) File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/pyrpr.py", line 110, in init import __rpr File "/home/wayne/.config/blender/3.2/scripts/addons/rprblender/__rpr.py", line 2, in <module> import _cffi_backend ModuleNotFoundError: No module named '_cffi_backend' Error: LZ4 module didn't load. Unsupported Python version! - Loading Rokoko Studio Live for Blender... - Loaded Rokoko Studio Live for Blender successfully! register_class(...): Warning: 'BonePhys_UL_BoxList' doesn't have upper case alpha-numeric prefix register_class(...): Warning: 'EditPanel' does not contain '_PT_' with prefix and suffix blenderkit addon: Verbose is enabled blenderkit addon: Read in JSON settings from file Starting daemon server on port 10753 Daemon server started on address http://127.0.0.1:10753, PID: 7571, log file located at: /home/wayne/blenderkit_data/blenderkit-daemon-10753.log mmd_tools registed 132 classes Warning: property 'need_active' not found in item 'FILE_OT_execute' blenderkit updater: Running background check for update blenderkit addon: Starting background checking thread blenderkit addon: Checking for update now in background blenderkit addon: Checking for update function blenderkit addon: Read in JSON settings from file blenderkit addon: Determined it's not yet time to check for updates blenderkit addon: Aborting check for updated, check interval not reached blenderkit addon: Finished check update, doing callback blenderkit addon: Running background update callback blenderkit addon: BG thread: Finished check update, no callback ```
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

There are no useful messages unfortunately as far as I can see either.

There are no useful messages unfortunately as far as I can see either.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Loading any file reproduces this, at least in my Linux distros.

I should mention that this only seems to happen when loading a particular set of admittedly complex textures

So any file? Or just the complex ones? Could you share one .blend of the complex ones?

The logs also still show Addons in action, does this also happen when starting blender with the following?

blender --factory-startup
> Loading any file reproduces this, at least in my Linux distros. > I should mention that this only seems to happen when loading a particular set of admittedly complex textures So any file? Or just the complex ones? Could you share one .blend of the complex ones? The logs also still show Addons in action, does this also happen when starting blender with the following? ``` blender --factory-startup ```
Author

In #99120#1385651, @lichtwerk wrote:

Loading any file reproduces this, at least in my Linux distros.

I should mention that this only seems to happen when loading a particular set of admittedly complex textures

So any file? Or just the complex ones? Could you share one .blend of the complex ones?

The logs also still show Addons in action, does this also happen when starting blender with the following?

blender --factory-startup

From the media library, the Procedural Earth texture is one that Blender does not seem to like.

> In #99120#1385651, @lichtwerk wrote: >> Loading any file reproduces this, at least in my Linux distros. > >> I should mention that this only seems to happen when loading a particular set of admittedly complex textures > > So any file? Or just the complex ones? Could you share one .blend of the complex ones? > > The logs also still show Addons in action, does this also happen when starting blender with the following? > > ``` > blender --factory-startup > ``` From the media library, the Procedural Earth texture is one that Blender does not seem to like.
Author

Okay. Slightly new development. When running this in Windows, the RAM usage spikes to 40GB, then crashes.

Okay. Slightly new development. When running this in Windows, the RAM usage spikes to 40GB, then crashes.
Author

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Might be related #97591 (Cycles HIP error with image textures on Linux and RDNA1)

Might be related #97591 (Cycles HIP error with image textures on Linux and RDNA1)
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Is this the Procedural Earth texture file you are talking about? https://www.blenderkit.com/get-blenderkit/7cf8399d-d8b6-42c1-a41f-7390c6f35117/
If permitted, can you attach it here?

Is this the Procedural Earth texture file you are talking about? https://www.blenderkit.com/get-blenderkit/7cf8399d-d8b6-42c1-a41f-7390c6f35117/ If permitted, can you attach it here?

@celticsamurai Could you please provide the file / project you were referring to?

@celticsamurai Could you please provide the file / project you were referring to?
Author

In #99120#1408001, @rjg wrote:
@celticsamurai Could you please provide the file / project you were referring to?

All righty. Here it is.Earth.blend

> In #99120#1408001, @rjg wrote: > @celticsamurai Could you please provide the file / project you were referring to? All righty. Here it is.[Earth.blend](https://archive.blender.org/developer/F13415865/Earth.blend)

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Can confirm the Procedural Earth shader is really heavy on my machine as well (viweport navigation is really laggy).
But not getting crashes or extraordinary memory usage (also not on the GPU)

Can confirm the `Procedural Earth` shader is really heavy on my machine as well (viweport navigation is really laggy). But not getting crashes or extraordinary memory usage (also not on the GPU)

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I can confirm excessive RAM consumption by the AMD driver by using the provided file and viewing it in Material Preview mode.

The symbols are not available and the shader is very complex so it is still a little difficult to identify the cause:

 	[External Code]	
>	blender.exe!GHOST_ContextWGL::activateDrawingContext() Line 109	C++

 	blender.exe!wm_window_set_drawable(wmWindowManager * wm, wmWindow * win, bool activate) Line 1013	C
 	blender.exe!wm_window_reset_drawable() Line 1057	C
 	blender.exe!DRW_opengl_context_disable_ex(bool restore) Line 3181	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 945	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1114	C
 	blender.exe!wm_draw_update(bContext * C) Line 1372	C
 	blender.exe!WM_main(bContext * C) Line 647	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 551	C
 	[External Code]	

The problem doesn't occur in 3.1, so it's a regression.
I'll look for the causing commit and try to simplify the file before confirming.


System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.0 Core Profile Context 22.8.2.220819

I can confirm excessive RAM consumption by the AMD driver by using the provided file and viewing it in Material Preview mode. The symbols are not available and the shader is very complex so it is still a little difficult to identify the cause: ``` [External Code] > blender.exe!GHOST_ContextWGL::activateDrawingContext() Line 109 C++ blender.exe!wm_window_set_drawable(wmWindowManager * wm, wmWindow * win, bool activate) Line 1013 C blender.exe!wm_window_reset_drawable() Line 1057 C blender.exe!DRW_opengl_context_disable_ex(bool restore) Line 3181 C blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 945 C blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1114 C blender.exe!wm_draw_update(bContext * C) Line 1372 C blender.exe!WM_main(bContext * C) Line 647 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 551 C [External Code] ``` The problem doesn't occur in 3.1, so it's a regression. I'll look for the causing commit and try to simplify the file before confirming. --- **System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.0 Core Profile Context 22.8.2.220819
Germano Cavalcante changed title from Crashing in 3.2 to Regression: Crash due to high memory usage when compiling Eevee shaders on AMD GPUs 2022-08-31 18:16:13 +02:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

On NVIDIA this doesn't happen, but on AMD it does. this is related to the new way how bump shaders are generated.
The AMD compiler does extensive unrolling which make the compiler use much more memory in the new method.

The change is required in order to develop Eevee-next, but leads to issues when using bump.
This ticket has different symptoms, but same root cause as #98989 (Regression: Eevee bad performance when using procedural bump map.). Close it as duplicate for now.

On NVIDIA this doesn't happen, but on AMD it does. this is related to the new way how bump shaders are generated. The AMD compiler does extensive unrolling which make the compiler use much more memory in the new method. The change is required in order to develop Eevee-next, but leads to issues when using bump. This ticket has different symptoms, but same root cause as #98989 (Regression: Eevee bad performance when using procedural bump map.). Close it as duplicate for now.
Member

Closed as duplicate of #98989

Closed as duplicate of #98989
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#99120
No description provided.