Jump to content

Recommended Posts

Posted

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?

20251228_130055.jpg

Posted

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.

Posted
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.

Posted
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.

 

Posted (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 by traison
Posted
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

Posted
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?

Posted
20 minutes ago, traison said:

 

Did you disable your JIT debugger like I said?

I don't know how to do it

Posted
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.

Posted
30 minutes ago, traison said:

I checked, but I don't have either DbgManagedDebugger or Debugger in Registry Editor. 

Posted
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.

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...