I hit the same problem today, and after spending some time, I found that it’s due to wrong format specifiers in $fscanf.
r = $fscanf(file, “%d %s”, i, s);
SV expects a decimal and a string in the file, but it must have found something else.
If you assert this statement, you’ll find that the simulation will crash.