Basically, map in python3 is a generator rather than resulting in a tuple - so it can only be used once. Therefore if you update opacity twice in a row, or immediately after setting the colour, it crashes with the error ValueError: not enough values to unpack (expected 3, got 0)
This code is the problem at https://github.com/los-cocos/cocos/blob/master/cocos/layer/util_layers.py#L142
Basically,
map
in python3 is a generator rather than resulting in a tuple - so it can only be used once. Therefore if you update opacity twice in a row, or immediately after setting the colour, it crashes with the errorValueError: not enough values to unpack (expected 3, got 0)
Minimal repro:
Fix should be to just replace
self._rgb = map(int, rgb)
withself._rgb = tuple(map(int, rgb))
Seen using python 3.8 on windows 10