NegiAg Posted January 8 Posted January 8 Hello everyone. Lately, I've been getting this error that causes Skyrim to crash, and I've noticed that it happens when my followers or an NPC tries to sexually assault another NPC or follower during combat. Can anyone help me?
traison Posted January 8 Posted January 8 The error came from invalid values being passed to the constructor of uniform_real_distribution defined in uniform_real_distribution.hpp:158. This is a programming error. The min value is not supposed to be higher than the max value, thus the assertion fails. Update or remove the mod currently providing SexLabUtil.dll. If that's not an option, we need the source code of that dll. A workaround could be deviced in Papyrus if we can work out (without the source code presumably) which Papyrus-bound function is instantiating a uniform_real_distribution, and passing its constructor invalid values - do the sanity check in Papyrus, instead of where it should be done, to workaround the bug.
NegiAg Posted January 9 Author Posted January 9 On 1/8/2026 at 6:13 PM, traison said: The error came from invalid values being passed to the constructor of uniform_real_distribution defined in uniform_real_distribution.hpp:158. This is a programming error. The min value is not supposed to be higher than the max value, thus the assertion fails. Update or remove the mod currently providing SexLabUtil.dll. If that's not an option, we need the source code of that dll. A workaround could be deviced in Papyrus if we can work out (without the source code presumably) which Papyrus-bound function is instantiating a uniform_real_distribution, and passing its constructor invalid values - do the sanity check in Papyrus, instead of where it should be done, to workaround the bug. The only mod that works with that DLL is Sex Animation Framework v1.66b, which is compatible with the Skyrim version.
NegiAg Posted January 9 Author Posted January 9 On 1/8/2026 at 6:14 PM, Sandra Fabiana said: Update the libraries Visual C I have already reinstalled it, but it still happens. 1
traison Posted January 10 Posted January 10 (edited) 1 hour ago, NegiAg said: ...Sex Animation Framework v1.66b, which is compatible with the Skyrim version. I assume you mean SexLabFrameworkAE_v166b. This error has nothing to do with whether it's compatible with Skyrim or not. This is a programming error in the dll. Your only option is most likely going to be to debug the Papyrus script(s) that handle that SL scene and create a workaround. Perhaps Ashal is available to fix this properly. Before you contact Ashal about this, disable your JIT debugger and install a crash logger. I have a feeling the callstack from the crash log is going to be essential. Edit: I *may* be able to pinpoint the Papyrus function this is coming from if you get me that crash log. Would make making that workaround easier. Edited January 10 by traison 1
NegiAg Posted January 10 Author Posted January 10 8 hours ago, traison said: I assume you mean SexLabFrameworkAE_v166b. This error has nothing to do with whether it's compatible with Skyrim or not. This is a programming error in the dll. Your only option is most likely going to be to debug the Papyrus script(s) that handle that SL scene and create a workaround. Perhaps Ashal is available to fix this properly. Before you contact Ashal about this, disable your JIT debugger and install a crash logger. I have a feeling the callstack from the crash log is going to be essential. Edit: I *may* be able to pinpoint the Papyrus function this is coming from if you get me that crash log. Would make making that workaround easier. I would like to give you the crash log, but the problem is that the internal file only gives me this: CRASH TIME: 2026-01-10 10:16:45 Skyrim SSE v1.6.1170 CrashLoggerSSE v1-16-0-0 Oct 7 2025 06:54:42
traison Posted January 10 Posted January 10 1 hour ago, NegiAg said: ...the problem is that the internal file only gives me this... Did you disable your JIT debugger like I said?
NegiAg Posted January 10 Author Posted January 10 20 minutes ago, traison said: Did you disable your JIT debugger like I said? I don't know how to do it
traison Posted January 10 Posted January 10 56 minutes ago, NegiAg said: I don't know how to do it Googling never hurt anyone. https://learn.microsoft.com/en-us/visualstudio/debugger/debug-using-the-just-in-time-debugger?view=vs-2022#disable-just-in-time-debugging-from-the-windows-registry https://stackoverflow.com/questions/21028761/how-do-i-disable-the-just-in-time-debugger Export the values you change or delete, so that you can put them back when needed.
NegiAg Posted January 10 Author Posted January 10 30 minutes ago, traison said: Googling never hurt anyone. https://learn.microsoft.com/en-us/visualstudio/debugger/debug-using-the-just-in-time-debugger?view=vs-2022#disable-just-in-time-debugging-from-the-windows-registry https://stackoverflow.com/questions/21028761/how-do-i-disable-the-just-in-time-debugger Export the values you change or delete, so that you can put them back when needed. I checked, but I don't have either DbgManagedDebugger or Debugger in Registry Editor.
traison Posted January 10 Posted January 10 1 hour ago, NegiAg said: I don't have either... In that case find the process that the error message window belongs to, then find where it's coming from. It's probably assigned as a debugger somewhere.
NegiAg Posted January 10 Author Posted January 10 28 minutes ago, traison said: In that case find the process that the error message window belongs to, then find where it's coming from. It's probably assigned as a debugger somewhere. I may have found the cause of that error. I believe the mod that caused that error was Wait Your Turn Redux v0.7.0-beta, because after uninstalling it and repeating one of the actions that led to that error, it no longer occurred. but I need to do more thorough testing
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now