cgre-aachen/pynoddy

Fix end of event lines

flohorovicic opened this issue · 0 comments

The pointer to end of event lines is wrong in some cases - not sure when exactly. Might have to do with the files read from Virtual Explorer.

Can lead to problems when re-computing the file (actually, to a segmentation fault when calling Noddy):

*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Segmentation fault: 11

The problem is that the event name of the last event is accidentally left out and Noddy seems to get problems when allocating the memory.

Seems to work for most cases, however - need to find out when it doesn't!