KVP crash with cl2 flag

IF YOU DO NOT FILL THIS OUT, YOUR TOPIC WILL BE UNLISTED AND CLOSED

To receive support, please fill out the following template, and remove this top text.

GTA V version? 1.0.1868.0
Up to date? yes
Legit or Pirate copy? legit
Steam/CD/Social Club? steam
Windows version? 10
Did you try to delete caches.xml and try again? yes
Error screenshot (if any) see log
System specifications
What did you do to get this issue? Starting a second client with FiveM -cl2 flag and calling GetResourceKvpInt
What server did you get this issue on? My development server
CitizenFX crash zip file No crash file produced / Not a real crash, the game just freeze and windows ask to close or wait
CitizenFX.log file:

Summary

`[ 72250] [ GTAProcess] MainThrd/ Log #157: 0 ops saved to Table #158 O
[ 72265] [ GTAProcess] MainThrd/ Archiving fxd:/kvs//000157.log: IO error: Renaming failed.
[ 72265] [ GTAProcess] MainThrd/ Table #106: 96 entries O
[ 72265] [ GTAProcess] MainThrd/ Archiving fxd:/kvs//MANIFEST-000001: OK
[ 72265] [ GTAProcess] MainThrd/ Archiving fxd:/kvs//MANIFEST-000156: IO error: Renaming failed.
[ 72281] [ GTAProcess] MainThrd/ **** Repaired leveldb fxd:/kvs/; recovered 1 files; 4746 bytes. Some data may have been lost. ***
[ 72281] [ GTAProcess] MainThrd/ GlobalError: Assertion failure: status.ok() (C:\gl\builds\edf06b9b\0\cfx\fivem\code\components\citizen-resources-client\src\KVScriptFunctions.cpp:51)
[ 72281] [ GTAProcess] MainThrd/ Error executing native 00000000dd379006 at address 0x7ffdd583a118.
[ 72297] [ GTAProcess] MainThrd/ Error invoking callback for event initiateSession: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> Newtonsoft.Json.JsonSerializationException: Error setting value to ‘Id’ on ‘FCRPG.User’. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Exception: Native invocation failed.

[ 72312] [ GTAProcess] MainThrd/ at CitizenFX.Core.Native.API.InternalStartFindKvp (System.String prefix) [0x0006b] in C:\gl\builds\edf06b9b\0\cfx\fivem\code\client\clrcore\NativesFive.cs:260843

[ 72343] [ GTAProcess] MainThrd/ at CitizenFX.Core.Native.API.StartFindKvp (System.String prefix) [0x00000] in C:\gl\builds\edf06b9b\0\cfx\fivem\code\client\clrcore\NativesFive.cs:260819

[ 72359] [ GTAProcess] MainThrd/ at FCRPG.PhoneSettings…ctor (System.Int32 id) [0x0002f] in C:\FXServer\src\FCRPG\user-manager\UserManagerClient\User.cs:4444

[ 72375] [ GTAProcess] MainThrd/ at FCRPG.User.set_Id (System.Int32 value) [0x0000f] in C:\FXServer\src\FCRPG\user-manager\UserManagerClient\User.cs:3833

[ 72406] [ GTAProcess] MainThrd/ at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)

[ 72422] [ GTAProcess] MainThrd/ at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72437] [ GTAProcess] MainThrd/ — End of inner exception stack trace —

[ 72468] [ GTAProcess] MainThrd/ at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72484] [ GTAProcess] MainThrd/ at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x0005d] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72500] [ GTAProcess] MainThrd/ at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72515] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Utilities.ReflectionUtils.SetMemberValue (System.Reflection.MemberInfo member, System.Object target, System.Object value) [0x00036] in :0

[ 72547] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.ReflectionValueProvider.SetValue (System.Object target, System.Object value) [0x00000] in :0

[ 72562] [ GTAProcess] MainThrd/ — End of inner exception stack trace —

[ 72578] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.ReflectionValueProvider.SetValue (System.Object target, System.Object value) [0x00036] in :0

[ 72609] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00096] in :0

[ 72625] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00266] in :0

[ 72640] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00154] in :0

[ 72656] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in :0

[ 72687] [ GTAProcess] MainThrd/ at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in :0

[ 72703] [ GTAProcess] MainThrd/ at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in :0

[ 72734] [ GTAProcess] MainThrd/ at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in :0

[ 72750] [ GTAProcess] MainThrd/ at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in :0

[ 72765] [ GTAProcess] MainThrd/ at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in :0

[ 72781] [ GTAProcess] MainThrd/ at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in :0

[ 72812] [ GTAProcess] MainThrd/ at Client.UserManagerClient.InitiateSession (System.String userjson, System.Boolean autologin) [0x00041] in C:\FXServer\src\FCRPG\user-manager\UserManagerClient\UserManagerClient.cs:21514

[ 72812] [ GTAProcess] MainThrd/ at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)

[ 72828] [ GTAProcess] MainThrd/ at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72859] [ GTAProcess] MainThrd/ — End of inner exception stack trace —

[ 72875] [ GTAProcess] MainThrd/ at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72890] [ GTAProcess] MainThrd/ at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72922] [ GTAProcess] MainThrd/ at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72937] [ GTAProcess] MainThrd/ at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72953] [ GTAProcess] MainThrd/ at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <74fbbe963b7e417b8d715b858c5c584f>:0

[ 72984] [ GTAProcess] MainThrd/ at CitizenFX.Core.EventHandlerEntry+d__5.MoveNext () [0x00064] in C:\gl\builds\edf06b9b\0\cfx\fivem\code\client\clrcore\EventHandlerDictionary.cs:89 `

.dmp files/report IDs

I think it is because FiveM access to the same file, which is already in use. The solution could be using a different file/directory for the second client

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Right - this should probably be a separate dir just like cache/priv/ is.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.