in line 554 of hitpoints.cpp (just after Film &film(*scene.camera->film);)
I had something similar to this part already...
Rom1 wrote:and I stop the rendering by adding
in line 608 of sppmrenderer.cpp (just after hitPoints->IncPhotonPass();)
But this is the part i was missing.