symforce icon indicating copy to clipboard operation
symforce copied to clipboard

Rot3 hangs indefinitely if made from DataBuffers

Open bradley-solliday-skydio opened this issue 3 years ago • 0 comments

The following hangs indefinitely

from symforce import sympy as sm
from symforce import geo
 
D = sm.DataBuffer("D")
geo.Rot3.from_storage([D, D, D, D])

Something else that hangs:

from symforce import sympy as sm
from symforce import codegen
from symforce.values import Values

D = sm.DataBuffer("D")
codegen.Codegen(
    inputs=Values(d=D),
    outputs=Values(out=Values(buffer=D)),
    config=codegen.CppConfig(),
    name="test",
)

While these are not valid uses of databuffers (at least in the first case), we would still rather have it raise an error than hang silently.

bradley-solliday-skydio avatar May 16 '22 22:05 bradley-solliday-skydio