it seems that assert() in repetitive functions is causing that issue.
i was type checking my parameters and that was my issue.
for real, i tried to fix this for hrs. thanks for the reply anyway.
maybe type checks in render classes (drawing methods) are too much.