GithubHelp home page GithubHelp logo

ynshung / blender-colab Goto Github PK

View Code? Open in Web Editor NEW
186.0 8.0 38.0 58 KB

Render Blender 4.x scenes with Google Colaboratory

Home Page: https://colab.research.google.com/github/ynshung/blender-colab/blob/master/blender_render.ipynb

License: MIT License

Jupyter Notebook 100.00%
blender google-colab google-colaboratory rendering blender-colab

blender-colab's Introduction

blender-colab

Open In Colab

This is a Python script that allows you to render Blender 3.0+ and older version scene using Google Colaboratory. You can upload the blender files using direct upload, Google Drive or URL. Rendered frames can be downloaded directly or through Google Drive. This script provides basic functionality so you may modify the script to your liking to suit your needs.

Usage

Upload type

  • direct: Upload your blender file in the next cell.
  • google_drive: The blender file will be downloaded directly from Google Drive. You need to specify the path to the blender/zip file at drive_path.
  • url: Direct link to the blender file in url_blend.
  • gdrive_relative: The Google Drive folder specified at drive_path will be copied directly (as if it's a zipped file).

Download type

  • direct: Output files will be automatically downloaded in your browser. (Probably does not work with multiple files?)
  • google_drive: The output files will be pasted into the specified drive_output_path once rendering is finished.
  • gdrive_relative: The output frames will be automatically rendered into the specified drive_output_path.

A few notes

  1. You must own a Google account.
  2. One notebook can only run for maximum time of 12 hours (24 hours for Google Colab Pro) but not guaranteed.
  3. EEVEE rendering is not supported in a virtual machine.
  4. This script is not tested fully yet. Expect some errors.
  5. Do note that your access to GPU may be limited or blocked if you render for many hours.
  6. This script is intended for those who have no access to high-end GPU for rendering. Please use them responsibly!

FAQ

An error occured!

Check which section of the code failed and identify the error (such as misspelled files or path). If you don't understand the error, try re-running the code with the play button at the side. If it still fails, go to Runtime > Restart and run all to restart the code or try Runtime > Factory reset runtime. If all else fails, open an issue in GitHub with the error log you encountered attached and the details of your setup.

Common errors:

  • MessageError: TypeError: Failed to fetch while downloading: The tab must be opened so that the frames can be downloaded.

Disclaimer

Google Colab is targeted to researchers and students to run AI/ML tasks, data analysis and education, not rendering 3D scenes. Because the computing power provided are free, the usage limits, idle timeouts and speed of the rendering may varies time by time. Colab Pro and Colab Pro+ are available for those who wanted to have more powerful GPU and longer runtimes for rendering. See the FAQ for more info. In some cases, it might be faster to use an online Blender renderfarm.

blender-colab's People

Contributors

daudix avatar satyr-bravo avatar ynshung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blender-colab's Issues

Need help!!!, I'm creating code for baking textures, there is code but it doesn't work as expected

I made a code that bakes textures in Google colab

import os # Import module os

blender_url_dict = {'4.0.2': "https://ftp.nluug.nl/pub/graphics/blender/release/Blender4.0/blender-4.0.2-linux-x64.tar.xz"}
blender_version = '4.0.2'
blender_url = blender_url_dict[blender_version]
base_url = os.path.basename(blender_url) #Use the module os to access the function basename
!mkdir $blender_version
!wget -nc $blender_url
!tar -xkf $base_url -C ./$blender_version --strip-components=1

import shutil
from google.colab import files, drive
uploaded_filename = ""

!pip install bpy

import bpy

Finding the file path .blend

Folder selection

folder_path = "" #@param {type: 'string'}

Entering a file name

file_name = "" #@param {type: 'string'}

Forming the path to the file.blend

blend_file_path = f"/content/drive/MyDrive/{folder_path}/{file_name}"

Loading an existing .blend file

bpy.ops.wm.open_mainfile(filepath=blend_file_path)

Setting your preferred rendering devices(GPU ΠΈ OptiX)

prefs = bpy.context.preferences
cprefs = prefs.addons['cycles'].preferences

Setting up GPU rendering and activating devices

for compute_device_type in ('CUDA', 'OPTIX'):
try:
cprefs.compute_device_type = compute_device_type
print('Device found:', compute_device_type)
break
except TypeError:
pass

for device in cprefs.devices:
if device.type == 'CUDA' or device.type == 'OPTIX':
print('Activating', device)
device.use = True

Starting the baking process

bpy.ops.object.bake(type='DIFFUSE')

Entering an image title

image_name = "No name" #@param {type: 'string'}

Forming a string to search for an image

image_object = bpy.data.images.get(image_name)

Checking that the image exists

if image_object:
# Saving an image in PNG format
image_object.file_format = 'PNG'

# Entering the name of the baked texture
Baked_image_name = "Baked texture" #@param {type: 'string'}

# Forming a path for saving an image
image_object.save_render(filepath=f"/content/drive/MyDrive/D/{Baked_image_name}.png")

else:
print("Image not found")

but it needs to be completed, if you can help me, leave a comment here

wrong things in coding

I found some horrible issues... I fixed it in my fork. here: https://github.com/AstroNaut244/blender-colab

I show you whats wrong in the original. This is the fixed version:

blender_url_dict = {'2.79b' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.79/blender-2.79b-linux-glibc219-x86_64.tar.bz2",
'2.80rc3' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.80/blender-2.80rc3-linux-glibc217-x86_64.tar.bz2",
'2.81a' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.81/blender-2.81a-linux-glibc217-x86_64.tar.bz2",
'2.82a' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.82/blender-2.82a-linux64.tar.xz",
'2.83.16' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.83/blender-2.83.16-linux-x64.tar.xz",
'2.90.1' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.90/blender-2.90.1-linux64.tar.xz",
'2.91.2' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.91/blender-2.91.2-linux64.tar.xz",
'2.92.0' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.92/blender-2.92.0-linux64.tar.xz",
'2.93.1' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.1-linux-x64.tar.xz",
'2.93.3' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.3-linux-x64.tar.xz",
'3.0.0-alpha' : "https://builder.blender.org/download/daily/blender-3.0.0-alpha+master.7d17f2addf80-linux.x86_64-release.tar.xz",
'3.0.0-alpha-cycles-x' : "https://builder.blender.org/download/experimental/blender-3.0.0-alpha+cycles-x.6ff8b06fe770-linux.x86_64-release.tar.xz"}

And this is the original:

blender_url_dict = {'2.79b' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.79/blender-2.79b-linux-glibc219-x86_64.tar.bz2",
'2.80rc3' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.80/blender-2.80rc3-linux-glibc217-x86_64.tar.bz2",
'2.81a' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.81/blender-2.81a-linux-glibc217-x86_64.tar.bz2",
'2.82a' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.82/blender-2.82a-linux64.tar.xz",
'2.83.16' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.83/blender-2.83.16-linux-x64.tar.xz",
'2.90.1' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.90/blender-2.90.1-linux64.tar.xz",
'2.91.2' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.91/blender-2.91.2-linux64.tar.xz"}
'2.92.0' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.92/blender-2.92.0-linux64.tar.xz"}
'2.93.1' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.1-linux-x64.tar.xz"}

mistakes:
blender_url_dict = {'2.79b' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.79/blender-2.79b-linux-glibc219-x86_64.tar.bz2",
'2.80rc3' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.80/blender-2.80rc3-linux-glibc217-x86_64.tar.bz2",
'2.81a' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.81/blender-2.81a-linux-glibc217-x86_64.tar.bz2",
'2.82a' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.82/blender-2.82a-linux64.tar.xz",
'2.83.16' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.83/blender-2.83.16-linux-x64.tar.xz",
'2.90.1' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.90/blender-2.90.1-linux64.tar.xz",
'2.91.2' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.91/blender-2.91.2-linux64.tar.xz", "}" < you dont need these only in the only in the last one.
'2.92.0' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.92/blender-2.92.0-linux64.tar.xz", "}"< same problem here
'2.93.1' : "https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.93/blender-2.93.1-linux-x64.tar.xz"}

cannot be preloaded (cannot open shared object file): ignored.

After this;

!rm -r render
!mkdir render

if upload_type == 'gdrive_relative':
if not drive_path.endswith('/'):
drive_path += '/'
!cp -r '/drive/My Drive/{drive_path}.' 'render/'
elif uploaded_filename.lower().endswith('.zip'):
!unzip -o $uploaded_filename -d 'render/'
elif uploaded_filename.lower().endswith('.blend'):
shutil.copy(uploaded_filename, 'render/')
blend_file_path = uploaded_filename
else:
raise SystemExit("Invalid file extension, only .blend and .zip can be uploaded.")

I GET THIS FOR A SINGLE CUBE BLEND FILE

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Error

When downloading a file directly from a PC, a bin bash error is generated, which says that the file or directory is missing, this did not happen before, the files are not corrupted, I even changed the blender version to the newest one (was 3.0.1)

Screenshot_2

Screenshot_1

extra attributes

is there an attribute we can use to enable ray tracing, like how we use -s to specify the starting frame, is there any attribute we can use to decide whether ray tracing should be enabled or not?

I cant upload the file, i need some assistance.

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
An exception has occurred, use %tb to see the full traceback.

SystemExit: Invalid file extension, only .blend and .zip can be uploaded.

Feature Request: Add drivers support

Hi! first of all, thank you for your work that helps many people
It would really helpful if you could add option to turn disable/enable auto scripts execution option on blender launch so we can use drivers in scenes :)

Reduce render samples?

Great little tool, thank you!

When rendering it defaults to 510 tiles, when I want to sample only 64. Is that possible?

2.9.x

This would be great if it supported those

Rendering not working

I was able to upload my own video
However, an error message was output from the third code paragraph, "rm: cannot remove 'render': No such file or directory"
But I ignored it and executed the 9th code, and Blender 3.0 was installed well.
I thought it went well because the fifth paragraph didn't print anything out.
The 6th paragraph was filled with error codes below.
What is wrong with this?
first what is the error "rm: cannot remove 'render': No such file or directory"
and what should i do?

Blender 3.0.0 (hash f1cca3055776 built 2021-12-03 00:34:54)
Read blend: /content/render/Nubula.blend
<bpy_struct, CyclesPreferences at 0x7fe99b1a7068>
Device found: CUDA
Activating <bpy_struct, CyclesDeviceSettings("Tesla K80") at 0x7fe9995f5f88>
Failed to create CUDA context (Unknown error)

Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
Invalid context in cuStreamCreate(&cuda_stream_, CU_STREAM_NON_BLOCKING) (intern/cycles/device/cuda/queue.cpp:33)
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Fra:1 Mem:16.37M (Peak 16.42M) | Time:00:00.14 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Synchronizing object | Nebula
Fra:1 Mem:16.37M (Peak 16.42M) | Time:00:00.14 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Synchronizing object | Suzanne
Fra:1 Mem:16.42M (Peak 16.43M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Synchronizing object | Cube
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Initializing
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Waiting for render to start
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Loading render kernels (may take a few minutes the first time)
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Failed to create CUDA context (Unknown error)
Error: Failed to create CUDA context (Unknown error)
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Updating Scene
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Updating Shaders
Fra:1 Mem:16.48M (Peak 16.48M) | Time:00:00.15 | Mem:0.00M, Peak:0.00M | Scene, ViewLayer | Loading denoising kernels (may take a few minutes the first time)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Fra:1 Mem:20.49M (Peak 20.49M) | Time:00:00.18 | Mem:338.00M, Peak:338.00M | Scene, ViewLayer | Failed to create CUDA context (Unknown error)
Invalid value in cuCtxPushCurrent(device->cuContext) (intern/cycles/device/cuda/util.cpp:26)
Invalid context in cuCtxPopCurrent(NULL) (intern/cycles/device/cuda/util.cpp:31)
Invalid value in cuCtxDestroy_v2(cuContext) (intern/cycles/device/cuda/device_impl.cpp:144)

Blender quit

Blender not starting rendering

/content
rm: cannot remove 'output': No such file or directory
/content/3.2.2
Blender 3.2.2 (hash bcfdb14560e7 built 2022-08-02 23:38:01)
Error: File format is not supported in file '/content/render/test.blend'

Blender quit

I am getting this error while running second last cell in google colab.
Please help.

Error: Cannot read file "/content/render/vfx/vfx test.blend": No such file or directory

HI, im trying to render a vfx test that im doing but when i start the runtime i get the following error when it gets to the first "%cd /content:

/content
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/content/3.6.2
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Blender 3.6.2 (hash e53e55951e7a built 2023-08-16 23:31:37)
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Error: Cannot read file "/content/render/vfx/vfx test.blend": No such file or directory

Blender quit

I have set all external data to relative path and zipped all the files and set the unzipped file location correctly and still get this. I haven't really got any idea what im doing apart from following what the guide says. If anyone could help i would really appreciate it

I tried rendering with Cycles and it gave me and error

/content/3.6.0
Blender 3.6.0 (hash c7fc78b81ecb built 2023-06-27 08:23:50)
Read blend: "/content/MarioRender/blend/MarioTutorial.blend"
<bpy_struct, CyclesPreferences at 0x7ba891bab228>
Device found: CUDA
Fra:0 Mem:44.57M (Peak 44.57M) | Time:00:00.12 | Mem:0.00M, Peak:0.00M | Scene | Initializing
Error: Found no Cycles device of the specified type

Blender quit

Any solution?

OpenEXR Support

When i set output type to exr, it crashes.
Log:

# Blender 3.3.1, Commit date: 2022-10-04 18:35, Hash b292cfe5a936

# backtrace
.//blender() [0xbdfc2e0]
.//blender() [0x8de2ed]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef10) [0x7f2e7bfe3f10]
.//blender() [0xbfb1950]
.//blender() [0xbf5c41a]
.//blender() [0xbfe77e6]
.//blender() [0xc28eec0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7f2e7d73d6db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f2e7c0c661f]

# Python backtrace

8 Block error in first line

hi, I wanted to run an animation render with 600 frames, everything went well until the beginning of the 8th block, it gave an error in the first line and I do not know what to do, please help =(

ERR

StopIteration Traceback (most recent call last)
in ()
----> 1 path, dirs, files_folder = next(os.walk("output"))
2 output_folder_name = output_name.replace('#', '') + 'render'
3
4 if download_type == 'gdrive_direct':
5 pass

StopIteration:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.