Closed ksuprynowicz closed 5 days ago
The issue in the code is that if weakRef is not valid, std::shared_ptr constructor throws an exception instead of making a null shared pointer like our code expects. Using lock() method instead will fix this. We should audit code and find all such occurences.
It happens when script loads after script engine has already been deleted:
Backtrace:
Source code: