Can't bake textures with GPU on Macbook Pro (AMD Card) #48225

Closed
opened 2016-04-21 15:27:55 +02:00 by Zhengxi Zhang · 17 comments

System Information
OSX EI Capitan 10.11.4 (15E65), AMD Radeon R9 M370X 2048 MB

Blender Version
Broken: 2.77a abf6f08

Short description of error

When using 'GPU Compute' (in Cycles Render), the 'Render' and 'Preview' worked correctly, but when I bake the combined texture, the progress bar always stay 0% and the whole compute gets totally frozen. (Then I can only force restart it)

I also have tried baking some other kinds of texture:

Diffuse: same problem
Shadow: same problem
AO: No problem, worked correctly.

Exact steps for others to reproduce the error

Just create a simple test scene in Blender (with Cycles Render):

  1. create a ground (plane), a light ( a plane with Emission material) and a cube in the scene. Make the cube locates on the ground.
  2. Give the cube a diffuse material, (whatever color you like)
  3. Open an 'Image Editor', and create a new image (1024x1024), whatever name you like.
  4. Open a Node Editor for the cube material, create a new 'Image Texture' node, and make it choose the image we just created.
  5. With the node selected (and also the cube selected in the scene), choose 'Combined' in the 'Bake' section of the 'Render' Tab, when click the 'Bake' button, the problem will happen.
**System Information** OSX EI Capitan 10.11.4 (15E65), AMD Radeon R9 M370X 2048 MB **Blender Version** Broken: 2.77a abf6f08 **Short description of error** When using 'GPU Compute' (in Cycles Render), the 'Render' and 'Preview' worked correctly, but when I bake the combined texture, the progress bar always stay 0% and the whole compute gets totally frozen. (Then I can only force restart it) I also have tried baking some other kinds of texture: Diffuse: same problem Shadow: same problem AO: No problem, worked correctly. **Exact steps for others to reproduce the error** Just create a simple test scene in Blender (with Cycles Render): 1. create a ground (plane), a light ( a plane with Emission material) and a cube in the scene. Make the cube locates on the ground. 2. Give the cube a diffuse material, (whatever color you like) 3. Open an 'Image Editor', and create a new image (1024x1024), whatever name you like. 4. Open a Node Editor for the cube material, create a new 'Image Texture' node, and make it choose the image we just created. 5. With the node selected (and also the cube selected in the scene), choose 'Combined' in the 'Bake' section of the 'Render' Tab, when click the 'Bake' button, the problem will happen.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Zhengxi

Added subscriber: @Zhengxi

#49779 was marked as duplicate of this issue

#49779 was marked as duplicate of this issue

Added subscribers: @Sergey, @ThomasDinges, @mont29

Added subscribers: @Sergey, @ThomasDinges, @mont29
Sergey Sharybin was assigned by Bastien Montagne 2016-04-21 16:54:22 +02:00

@Sergey or @ThomasDinges should know whether this is expected to work or not…

@Sergey or @ThomasDinges should know whether this is expected to work or not…

Does this still happen with latest builds from https://builder.blender.org/download/ ?

If so, are there any messages printed to the console? It also worth running Blender with --debug-cycles command line argument to make prints much more verbose to see where exactly things stuck.

Does this still happen with latest builds from https://builder.blender.org/download/ ? If so, are there any messages printed to the console? It also worth running Blender with `--debug-cycles` command line argument to make prints much more verbose to see where exactly things stuck.
Author

Hi Sergey,
I have tested the latest build you mentioned (Hash: d852715), but the problem is still there.

Here are the console messages:

[Part 1/2]:

zhangzhengxis-MacBook-Pro:blender-2.77.0-git20160601.d852715-x86_64 zhangzhengxi$ /Applications/blender-2.77.0-git20160601.d852715-x86_64/blender.app/Contents/MacOS/blender --debug-cycles
Read new prefs: /Users/zhangzhengxi/Library/Application Support/Blender/2.77/config/userpref.blend
found bundled python: /Applications/blender-2.77.0-git20160601.d852715-x86_64/blender.app/Contents/MacOS/../Resources/2.77/python
I0601 15:43:53.642555 1973223424 blender_python.cpp:185] Debug flags initialized to:
CPU flags:

AVX2   : True
AVX    : True
SSE4.1 : True
SSE3   : True
SSE2   : True

CUDA flags:
Adaptive Compile: False
OpenCL flags:

Device type : ALL
Kernel type : DEFAULT
Debug       : False

read blend: /Users/zhangzhengxi/Work/Models/scene1/scene1-cycle.blend
I0601 15:43:58.288323 1973223424 device_cuda.cpp:1308] CUEW initialization failed: Error opening the library
I0601 15:43:58.289254 1973223424 device_opencl.cpp:3272] CLEW initialization succeeded.
I0601 15:43:58.289528 1973223424 device_opencl.cpp:278] Enumerating devices for platform Apple.
I0601 15:43:58.289624 1973223424 device_opencl.cpp:346] Ignoring device Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz, not officially supported yet.
I0601 15:43:58.289633 1973223424 device_opencl.cpp:338] Adding new device Iris Pro.
I0601 15:43:58.289639 1973223424 device_opencl.cpp:338] Adding new device AMD Radeon R9 M370X Compute Engine.

[Restored Jun 1, 2016, 4:10:07 PM]

Last login: Wed Jun 1 16:10:05 on console

Please notice that since the computer got totally frozen when this problem happened, I can't directly copy and paste the console messages at that moment.
The above [Part 1/2] are what restored in the Terminal after the computer restart.
The Part 2/2 is the moment about 20 minutes after I clicking the 'Bake' button. You can see the time on the photo shows 3:44pm, but the real time I took this photo was about 4:09pm. (Because the compute got frozen after i clicking the 'Bake' )

Hi Sergey, I have tested the latest build you mentioned (Hash: d852715), but the problem is still there. Here are the console messages: [Part 1/2]: zhangzhengxis-MacBook-Pro:blender-2.77.0-git20160601.d852715-x86_64 zhangzhengxi$ /Applications/blender-2.77.0-git20160601.d852715-x86_64/blender.app/Contents/MacOS/blender --debug-cycles Read new prefs: /Users/zhangzhengxi/Library/Application Support/Blender/2.77/config/userpref.blend found bundled python: /Applications/blender-2.77.0-git20160601.d852715-x86_64/blender.app/Contents/MacOS/../Resources/2.77/python I0601 15:43:53.642555 1973223424 blender_python.cpp:185] Debug flags initialized to: CPU flags: ``` AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True ``` CUDA flags: Adaptive Compile: False OpenCL flags: ``` Device type : ALL Kernel type : DEFAULT Debug : False ``` read blend: /Users/zhangzhengxi/Work/Models/scene1/scene1-cycle.blend I0601 15:43:58.288323 1973223424 device_cuda.cpp:1308] CUEW initialization failed: Error opening the library I0601 15:43:58.289254 1973223424 device_opencl.cpp:3272] CLEW initialization succeeded. I0601 15:43:58.289528 1973223424 device_opencl.cpp:278] Enumerating devices for platform Apple. I0601 15:43:58.289624 1973223424 device_opencl.cpp:346] Ignoring device Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz, not officially supported yet. I0601 15:43:58.289633 1973223424 device_opencl.cpp:338] Adding new device Iris Pro. I0601 15:43:58.289639 1973223424 device_opencl.cpp:338] Adding new device AMD Radeon R9 M370X Compute Engine. ``` [Restored Jun 1, 2016, 4:10:07 PM] ``` Last login: Wed Jun 1 16:10:05 on console -------------------------------------------------------------- [Part 2/2]: http://i.imgur.com/Fl1UIri.jpg Please notice that since the computer got totally frozen when this problem happened, I can't directly copy and paste the console messages at that moment. The above [Part 1/2] are what restored in the Terminal after the computer restart. The [Part 2/2] is the moment about 20 minutes after I clicking the 'Bake' button. You can see the time on the photo shows 3:44pm, but the real time I took this photo was about 4:09pm. (Because the compute got frozen after i clicking the 'Bake' )

Ok, so it still happens. Will try to reproduce here on mac in the studio. At the meantime, worth sharing .blend which you used. Even if it's trivial, so to be 100% sure we're configuring everything in same exact way.

Ok, so it still happens. Will try to reproduce here on mac in the studio. At the meantime, worth sharing .blend which you used. Even if it's trivial, so to be 100% sure we're configuring everything in same exact way.
Author
Sure. See my .blend file here: https://www.dropbox.com/s/mmem6gghpxvnccx/baking-crash-test.blend.zip?dl=0

Added subscriber: @Symen

Added subscriber: @Symen

There is no solution yet? Am i the only one waiting?

There is no solution yet? Am i the only one waiting?

Added subscriber: @Nnubes256

Added subscriber: @Nnubes256

I have the same Mac model and the same freeze, apparently baking causes the GPU to hang. In my case, after ~30 seconds OSX detects the freeze and then proceeds to restart the GPU and kill Blender.

Not sure if it helps, but here's the GPU crash file generated by OSX:
Kernel_2016-11-12-171733_MacBook-Pro-de-Nacho.gpuRestart

And the application crash:
blender_2016-11-12-171734_MacBook-Pro-de-Nacho.crash

I have the same Mac model and the same freeze, apparently baking causes the GPU to hang. In my case, after ~30 seconds OSX detects the freeze and then proceeds to restart the GPU and kill Blender. Not sure if it helps, but here's the GPU crash file generated by OSX: [Kernel_2016-11-12-171733_MacBook-Pro-de-Nacho.gpuRestart](https://archive.blender.org/developer/F398023/Kernel_2016-11-12-171733_MacBook-Pro-de-Nacho.gpuRestart) And the application crash: [blender_2016-11-12-171734_MacBook-Pro-de-Nacho.crash](https://archive.blender.org/developer/F398024/blender_2016-11-12-171734_MacBook-Pro-de-Nacho.crash)
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

please try a build from builder.blender.org/download

please try a build from builder.blender.org/download
Member

Since last asking for information it has been 7 or more days, due to the policy of our bug tracker
we will have to archive the report until the requested information is given.

Since last asking for information it has been 7 or more days, due to the policy of our bug tracker we will have to archive the report until the requested information is given.
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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#48225
No description provided.