Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stacktrace:
- at <unknown> <0xffffffff>
- at (wrapper managed-to-native) CitizenFX.Core.GameInterface.WalkStackBoundary (string,byte[],byte[],byte[]&) [0x0000a] in <bf55ee21e10b4d7f840db10567715352>:0
- at CitizenFX.Core.InternalManager.WalkStack (byte[],byte[]) [0x00000] in /src/code/client/clrcore/InternalManager.cs:253
- at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager.WalkStack (byte[],byte[]) [0x00034] in <bf55ee21e10b4d7f840db10567715352>:0
- at (wrapper xdomain-dispatch) CitizenFX.Core.InternalManager.WalkStack (object,byte[]&,byte[]&,byte[],byte[]) [0x00054] in <bf55ee21e10b4d7f840db10567715352>:0
- at (wrapper xdomain-invoke) CitizenFX.Core.InternalManager.WalkStack (byte[],byte[]) <0x00151>
- at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager.WalkStack (byte[],byte[]) [0x00028] in <bf55ee21e10b4d7f840db10567715352>:0
- at CitizenFX.Core.MonoScriptRuntime.WalkStack (byte[],int,byte[],int,CitizenFX.Core.IScriptStackWalkVisitor) <0x0005b>
- at (wrapper cominterop) CitizenFX.Core.IScriptStackWalkingRuntime.WalkStack (intptr,byte[],int,byte[],int,CitizenFX.Core.IScriptStackWalkVisitor) <0x0005a>
- at (wrapper native-to-managed) CitizenFX.Core.IScriptStackWalkingRuntime.WalkStack (intptr,intptr,int,intptr,int,intptr) <0x00343>
- at <unknown> <0xffffffff>
- at (wrapper xdomain-dispatch) CitizenFX.Core.MonoScriptRuntime/WrapScriptHost.InvokeNative (object,byte[]&,byte[]&) <0x0025f>
- at (wrapper xdomain-invoke) CitizenFX.Core.MonoScriptRuntime/WrapScriptHost.InvokeNative (intptr) [0x0006b] in <bf55ee21e10b4d7f840db10567715352>:0
- at CitizenFX.Core.ScriptContext.InvokeInternal (CitizenFX.Core.fxScriptContext*,ulong,CitizenFX.Core.IScriptHost) [0x00007] in /src/code/client/clrcore/ScriptContext.cs:343
- at CitizenFX.Core.ScriptContext.InvokeInternal (ulong,CitizenFX.Core.IScriptHost) [0x00014] in /src/code/client/clrcore/ScriptContext.cs:330
- at CitizenFX.Core.ScriptContext.Invoke (ulong,CitizenFX.Core.IScriptHost) [0x00000] in /src/code/client/clrcore/ScriptContext.cs:321
- at CitizenFX.Core.Native.Function.InvokeInternal (CitizenFX.Core.Native.Hash,System.Type,CitizenFX.Core.Native.InputArgument[]) [0x00022] in /src/code/client/clrcore/Native.cs:28
- at CitizenFX.Core.Native.Function.Call (CitizenFX.Core.Native.Hash,CitizenFX.Core.Native.InputArgument[]) [0x00000] in /src/code/client/clrcore/Native.cs:16
- at CitizenFX.Core.BaseScript.TriggerEventInternal (string,byte[],bool) [0x00029] in /src/code/client/clrcore/BaseScript.cs:175
- at CitizenFX.Core.BaseScript.TriggerEvent (string,object[]) [0x00007] in /src/code/client/clrcore/BaseScript.cs:116
- at vRP.MySQL.e_tick () [0x001f3] in <8dfc0861f4df44189d833de5e878b97b>:0
- at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004f] in <4fffd39960df419684f9b9cb5ce46688>:0
- at <unknown> <0xffffffff>
- at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) [0x00016] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00041] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Reflection.MethodBase.Invoke (object,object[]) [0x00006] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Delegate.DynamicInvokeImpl (object[]) [0x000e9] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.MulticastDelegate.DynamicInvokeImpl (object[]) [0x0000a] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Delegate.DynamicInvoke (object[]) [0x00002] in <4fffd39960df419684f9b9cb5ce46688>:0
- at CitizenFX.Core.EventHandlerEntry/<Invoke>d__5.MoveNext () [0x00064] in /src/code/client/clrcore/EventHandlerDictionary.cs:89
- at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<CitizenFX.Core.EventHandlerEntry/<Invoke>d__5> (CitizenFX.Core.EventHandlerEntry/<Invoke>d__5&) [0x00033] in <4fffd39960df419684f9b9cb5ce46688>:0
- at CitizenFX.Core.EventHandlerEntry.Invoke (string,object[]) [0x00037] in <bf55ee21e10b4d7f840db10567715352>:0
- at CitizenFX.Core.EventHandlerDictionary/<Invoke>d__4.MoveNext () [0x00028] in /src/code/client/clrcore/EventHandlerDictionary.cs:51
- at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<CitizenFX.Core.EventHandlerDictionary/<Invoke>d__4> (CitizenFX.Core.EventHandlerDictionary/<Invoke>d__4&) [0x00033] in <4fffd39960df419684f9b9cb5ce46688>:0
- at CitizenFX.Core.EventHandlerDictionary.Invoke (string,string,object[]) [0x0003f] in <bf55ee21e10b4d7f840db10567715352>:0
- at CitizenFX.Core.InternalManager/<>c__DisplayClass33_2.<TriggerEvent>b__0 () [0x00000] in /src/code/client/clrcore/InternalManager.cs:336
- at System.Threading.Tasks.Task`1<TResult_REF>.InnerInvoke () [0x00011] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.Tasks.Task.Execute () [0x00001] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.Tasks.Task.ExecutionContextCallback (object) [0x00006] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00073] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00004] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) [0x00038] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.Tasks.Task.ExecuteEntry (bool) [0x00050] in <4fffd39960df419684f9b9cb5ce46688>:0
- at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task) [0x00016] in <4fffd39960df419684f9b9cb5ce46688>:0
- at CitizenFX.Core.CitizenTaskScheduler.InvokeTryExecuteTask (System.Threading.Tasks.Task) [0x00000] in /src/code/client/clrcore/CitizenTaskScheduler.cs:160
- at CitizenFX.Core.CitizenTaskScheduler.Tick () [0x0006c] in /src/code/client/clrcore/CitizenTaskScheduler.cs:128
- at CitizenFX.Core.InternalManager.TriggerEvent (string,byte[],string) [0x0015f] in /src/code/client/clrcore/InternalManager.cs:348
- at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager.TriggerEvent (string,byte[],string) [0x00035] in <bf55ee21e10b4d7f840db10567715352>:0
- at (wrapper xdomain-dispatch) CitizenFX.Core.InternalManager.TriggerEvent (object,byte[]&,byte[]&,string,byte[],string) [0x00061] in <bf55ee21e10b4d7f840db10567715352>:0
- at (wrapper xdomain-invoke) CitizenFX.Core.InternalManager.TriggerEvent (string,byte[],string) <0x0015e>
- at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager.TriggerEvent (string,byte[],string) [0x00029] in <bf55ee21e10b4d7f840db10567715352>:0
- at CitizenFX.Core.MonoScriptRuntime.TriggerEvent (string,byte[],int,string) <0x0005b>
- at (wrapper cominterop) CitizenFX.Core.IScriptEventRuntime.TriggerEvent (intptr,string,byte[],int,string) <0x00052>
- at (wrapper native-to-managed) CitizenFX.Core.IScriptEventRuntime.TriggerEvent (intptr,intptr,intptr,int,intptr) <0x0014b>
- /proc/self/maps:
- 400c4000-40214000 rwxp 00000000 00:00 0
- 402b1000-40401000 rwxp 00000000 00:00 0
- 40d3c000-40f44000 rwxp 00000000 00:00 0
- 40f44000-40f54000 rwxp 00000000 00:00 0
- 4117b000-4134e000 rwxp 00000000 00:00 0
- 413b9000-41409000 rwxp 00000000 00:00 0
- 41900000-419f0000 rwxp 00000000 00:00 0
- 33261680000-332616af000 rw-p 00000000 00:00 0
- d06ae380000-d06ae400000 rw-p 00000000 00:00 0
- d4fd1e80000-d4fd1f00000 rw-p 00000000 00:00 0
- 1ca5c1280000-1ca5c1283000 rw-p 00000000 00:00 0
- 2073f3180000-2073f3183000 rw-p 00000000 00:00 0
- 2073f3183000-2073f3200000 r--p 00000000 00:00 0
- 27cb892ec000-27cb892f4000 rw-p 00000000 00:00 0
- 3ac676900000-3ac676980000 rw-p 00000000 00:00 0
- 3c33043c7000-3c3304400000 ---p 00000000 00:00 0
- 3c3304400000-3c3304403000 rw-p 00000000 00:00 0
- 3c3304403000-3c3304404000 ---p 00000000 00:00 0
- 3c3304404000-3c330447f000 r-xp 00000000 00:00 0
- 3c330447f000-3c330c3c7000 ---p 00000000 00:00 0
- 7fd5e653b000-7fd5e6c00000 rw-p 00000000 00:00 0
- 7fd5e6cf4000-7fd5e6cf6000 ---p 00000000 00:00 0
- 7fd5e6cf6000-7fd5e6cf7000 rw-p 00000000 00:00 0
- 7fd5e6cf7000-7fd5e6cff000 ---p 00000000 00:00 0
- 7fd5e6cff000-7fd5e6ef8000 rw-p 00000000 00:00 0
- SCRIPT ERROR: @vrp/lib/utils.lua:43: attempt to call a nil value (upvalue 'callback')
- > task (@vrp/lib/utils.lua:47)
- > cb (@vrp/modules/identity.lua:42)
- > handler (- begin MySQL module
- local MySQL = {}
- MySQL.debug = false
- local dpaths = {}
- local tasks = {}
- --[[
- local function tick()
- SetTimeout(1, function() -- protect errors from breaking the loop
- SetTimeout(1000, tick)
- local rmtasks = {}
- for id,cb in pairs(tasks) do
- local r = exports.vrp_mysql:checkTask(id)
- if r.status == 1 then
- cb(r.rows,r.affected) -- rows, affected
- table.insert(rmtasks, id)
- elseif r.status == -1 then
- print("[vRP] task "..id.." failed.")
- table.insert(rmtasks, id)
- end
- end
- -- remove done tasks
- for k,v in pairs(rmtasks) do
- tasks[v] = nil
- end
- end)
- end
- tick()
- --]]
- AddEventHandler("vRP:MySQL_task", function(task_id, data)
- -- print("vRP:MySQL_task "..task_id)
- local cb = tasks[task_id]
- if data.status == 1 then
- if cb then
- if data.mode == 0 then
- cb(data.affected or 0)
- elseif data.mode == 1 then
- cb(data.scalar or 0)
- elseif data.mode == 2 then
- cb(data.rows or {}, data.affected or 0) -- rows, affected
- end
- end
- elseif data.status == -1 then
- print("[vRP] task "..task_id.." failed.")
- end
- tasks[task_id] = nil
- if MySQL.debug and dpaths[task_id] then
- print("[vRP] MySQL end query "..dpaths[task_id].." ("..task_id..")")
- dpaths[task_id] = nil
- end
- end)
- local task_id = -1
- AddEventHandler("vRP:MySQL_taskid", function(_task_id)
- -- print("vRP:MySQL_taskid ".._task_id)
- task_id = _task_id
- end)
- -- host can be "host" or "host:port"
- function MySQL.createConnection(name,host,user,password,db,debug)
- -- print("[vRP] try to create connection "..name)
- -- parse port in host as "ip:port"
- local host_parts = splitString(host,":")
- if #host_parts >= 2 then
- host = host_parts[1]..";port="..host_parts[2]
- end
- local config = "server="..host..";uid="..user..";pwd="..password..";database="..db..";"
- -- TriggerEvent("vRP:MySQL:createConnection", name, config)
- exports.vrp_mysql:createConnection(name, config)
- end
- function MySQL.createCommand(path, query)
- -- print("[vRP] try to create command "..path)
- -- TriggerEvent("vRP:MySQL:createCommand", path, query)
- exports.vrp_mysql:createCommand(path, query)
- end
- -- generic query
- function MySQL._query(path, args, mode, cb)
- -- TriggerEvent("vRP:MySQL:query", path, args)
- if not (type(args) == "table") then
- args = {}
- end
- -- force args to be a C# dictionary
- args._none = " "
- -- exports.vrp_mysql:query(path, args)
- -- print("[vRP] try to query "..path.." id "..task_id)
- TriggerEvent("vRP:MySQL_query", path, args, mode)
- if MySQL.debug then
- print("[vRP] MySQL begin query (m"..mode..") "..path.." ("..task_id..")")
- dpaths[task_id] = path
- end
- tasks[task_id] = cb
- end
- -- do a query (multiple rows)
- --- cb(rows, affected)
- function MySQL.query(path, args, cb)
- MySQL._query(path, args, 2, cb)
- end
- -- do a scalar query (one row, one column)
- --- cb(scalar)
- function MySQL.scalar(path, args, cb)
- MySQL._query(path, args, 1, cb)
- end
- -- do a execute query (no results)
- --- cb(affected)
- function MySQL.execute(path, args, cb)
- MySQL._query(path, args, 0, cb)
- end
- -- return module
- return MySQL
- :45)
- > fn (@vrp_mysql/init.lua:3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement