Skip to content

meshfill plot broekn with bg=0 #804

@doutriaux1

Description

@doutriaux1

the following script creates two different png depending if we use bg = True or not

bg=True leads to the correct output in bg mode, and incorrect in non bg mode

See attached pngs first is good and second is bad

import cdms2,vcs

bg=True

f=cdms2.open("data_portrait.nc")
s=f("variable_3")       
M=f("variable_115")

x=vcs.init()        
y=vcs.init()
x.scriptrun("mesh_bug.json")
x.setcolormap("bl_rd_12")
m=x.getmeshfill("portrait")
x.plot(s,M,m,bg=bg)
x.png("mesh_%i" % bg)
y.plot(s,M,m,bg=not bg)
y.png("mesh_%i" % (not bg))

now interestingly enough turning the bg to False leads to a core dump following this output:

radeon: Failed to allocate a buffer:
radeon:    size      : 1 bytes
radeon:    alignment : 1 bytes
radeon:    domains   : 2
radeon: Failed to allocate a buffer:
radeon:    size      : 1 bytes
radeon:    alignment : 1 bytes
radeon:    domains   : 2
Segmentation fault (core dumped)

mesh_1
mesh_0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions