Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

image rendering issue #18

Open
elvesdynam opened this issue Aug 3, 2019 · 17 comments
Open

image rendering issue #18

elvesdynam opened this issue Aug 3, 2019 · 17 comments

Comments

@elvesdynam
Copy link

After I run commands for image generation, the program shows some invalid context and broken margin and stuck as below. Could anybody please show me how to resolve? Thanks
environment:OSX10.14.5 blender:2.78c
image_generation chen$ blender --background --python render_images.py -- --num_images 10
found bundled python: /Applications/blender.app/Contents/MacOS/../Resources/2.78/python
read blend: data/base_scene.blend
convertViewVec: called in an invalid context
convertViewVec: called in an invalid context
0.21743071058848407 0.4 left
BROKEN MARGIN!
0.25797991560249245 0.4 right
BROKEN MARGIN!
convertViewVec: called in an invalid context
convertViewVec: called in an invalid context
0.3010987159059719 0.4 right
BROKEN MARGIN!
convertViewVec: called in an invalid context
convertViewVec: called in an invalid context
Fra:1 Mem:13.74M (0.00M, Peak 13.74M) | Time:00:00.00 | Preparing Scene data
Fra:1 Mem:20.39M (0.00M, Peak 20.69M) | Time:00:00.00 | Preparing Scene data
Fra:1 Mem:20.39M (0.00M, Peak 20.69M) | Time:00:00.00 | Creating Shadowbuffers
Fra:1 Mem:20.39M (0.00M, Peak 20.69M) | Time:00:00.00 | Raytree.. preparing
Fra:1 Mem:27.20M (0.00M, Peak 27.20M) | Time:00:00.01 | Raytree.. building
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Raytree finished
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Creating Environment maps
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Caching Point Densities
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Loading voxel datasets
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Volume preprocessing
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1
Fra:1 Mem:26.83M (0.00M, Peak 37.47M) | Time:00:00.09 | Sce: Scene Ve:45732 Fa:49578 La:1

@ShuangLI59
Copy link

same problem

@Cuberick-Orion
Copy link

Same problem, have you identified the reason?

@rivasd
Copy link

rivasd commented Mar 18, 2020

I have the same issue :(

@umang13
Copy link

umang13 commented May 27, 2020

Same issue :(

@akshayk1003
Copy link

Same Issue

@oleksost
Copy link

+1

@ishaanchandratreya
Copy link

Have the same issue- is the solution known?

@beausievers
Copy link

I also have this issue. Has anybody figured this out?

@fYYw
Copy link

fYYw commented Feb 19, 2021

Same issue.

@CarolineGao
Copy link

same here

@CarolineGao
Copy link

So what is the solution to fix this error?

@KelestZ
Copy link

KelestZ commented Jan 14, 2022

Ditto. I was using a mac with an M1 chip where the old Blender is not supported.
Switching to one with an Intel chip works for me.

@Gitsamshi
Copy link

Doesn't matter, the performance of the computer is the problem

@dongzhuoyao
Copy link

same

@pinruiy723
Copy link

Hi Gitsamshi, did you solve it by changing a better computer?

@ikb-a
Copy link

ikb-a commented Oct 12, 2022

I don't have any problems with the image generation getting stuck, but I did put some time into looking at the sources of the error messages; that may be of some help.

The convertViewVec: called in an invalid context error seems to be the same problem as here; I believe I've fixed that by changing how the object translation is done, specifically by replacing the line below with bpy.context.active_object.location += Vector((x, y, scale))

bpy.ops.transform.translate(value=(x, y, scale))

The "BROKEN MARGIN" errors can be safely ignored (just comment out the lines below):

print(margin, args.margin, direction_name)
print('BROKEN MARGIN!')

@shim94kr
Copy link

same

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests