This can be reproduced easily with a thin-line version of lorenz.py, with mesag3 3.1-16 on my Debian-potato machine.
The problem appears to be caused either by lines *behind* the camera or by lines far out to the side of the camera (projected near infinity).
Negating points with w<0 (thus ensuring that w>0 always) does not solve the problem.
The crash hasn't been observed with thick lines or other triangle-based primitives.