TruckSim-Telemetry icon indicating copy to clipboard operation
TruckSim-Telemetry copied to clipboard

Please help me to resolve in electron

Open barroko301 opened this issue 1 year ago • 1 comments

Stacktrace: ptr1=000002160023CF4D ptr2=0000000000000000 ptr3=0000000000000000 ptr4=0000000000000000 ptr5=0000000000000000 ptr6=0000000000000000 failure_message_object=00000033789F4868

==== JS stack trace =========================================

0: ExitFrame [pc: 00007FF7B1297D7A]
1: StubFrame [pc: 00007FF7B13532B0]
2: valueFromBytes [0000021600E74825] [C:\react\react\launcher-crm\node_modules\struct-fu\lib.js:354] [bytecode=00000216010027AD offset=12](this=0x021600e74801 <Object map = 00000216010030B9>,0x02160023cf4d <SharedFunctionInfo percolateDown>,0x021600e74fad <Object map = 000002160380AEAD>)
3: /* anonymous */ [0000021600E74FDD] [C:\react\react\launcher-crm\node_modules\struct-fu\lib.js:149] [bytecode=0000021601002691 offset=48](this=0x021600182169 <JSGlobalProxy>,0x021600e74801 <Object map = 00000216010030B9>)
4: forEach [0000021600188669](this=0x021600e747d9 <JSArray[4]>,0x021600e74fdd <JSFunction (sfi = 0000021601002539)>)
5: valueFromBytes [0000021600E74F25] [C:\react\react\launcher-crm\node_modules\struct-fu\lib.js:146] [bytecode=00000216010025A5 offset=49](this=0x021600e74ef9 <Object map = 000002160380B92D>,0x02160023cf4d <SharedFunctionInfo percolateDown>,0x021600000251 <undefined>)
6: getPluginVersion [0000021603BBF651] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\utils\getPluginVersion.js:15] [bytecode=0000021601002141 offset=131](this=0x021603bbe361 <Object map = 000002160399FF3D>,0x02160023cf4d <SharedFunctionInfo percolateDown>)
7: getData [000002160008290D] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\functions\getData.js:10] [bytecode=0000021601144275 offset=35](this=0x021600082c9d <Object map = 00000216039ACD7D>,0x021600000235 <null>,0x021600e65705 <Object map = 0000021601128979>)
8: watcher [0000021603BB4B11] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\functions\watch.js:~35] [pc=00007FF7E016B560](this=0x021600182169 <JSGlobalProxy>,0x021600e656e5 <JSFunction update (sfi = 000002160114C5D5)>,0x021600e65735 <Object map = 0000021601128F05>,0x021600e66455 <Object map = 0000021601128F2D>)
9: _onTimeout [0000021600E74571] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\functions\watch.js:106] [bytecode=000002160119E001 offset=14](this=0x021600e745cd <Timeout map = 000002160119CB91>)

10: listOnTimeout(aka listOnTimeout) [0000021600661279] [node:internal/timers:~517] [pc=00007FF7E016D1DE](this=0x021600000251 ,0x021600e66a95 <TimersList map = 000002160119D10D>,6040) 11: processTimers [00000216005A2A95] [node:internal/timers:~497] [pc=00007FF7E008857E](this=0x021600442e29 ,6040) 12: InternalFrame [pc: 00007FF7B11FEA9C] 13: EntryFrame [pc: 00007FF7B11FE69B]

==== Details ================================================

[0]: ExitFrame [pc: 00007FF7B1297D7A] [1]: StubFrame [pc: 00007FF7B13532B0] [2]: valueFromBytes [0000021600E74825] [C:\react\react\launcher-crm\node_modules\struct-fu\lib.js:354] [bytecode=00000216010027AD offset=12](this=0x021600e74801 <Object map = 00000216010030B9>,0x02160023cf4d <SharedFunctionInfo percolateDown>,0x021600e74fad <Object map = 000002160380AEAD>) { // expression stack (top to bottom) [03] : 0x021600000251 [02] : 0x021600000251 [01] : 0x021600000251 [00] : 0x021600000251 --------- s o u r c e c o d e --------- function valueFromBytes(buf, off) {\x0a off || (off = {bytes:0});\x0a var val = bufread;\x0a addField(off, this);\x0a return val;\x0a
}

}

[3]: /* anonymous */ [0000021600E74FDD] [C:\react\react\launcher-crm\node_modules\struct-fu\lib.js:149] [bytecode=0000021601002691 offset=48](this=0x021600182169 <JSGlobalProxy>,0x021600e74801 <Object map = 00000216010030B9>) { // expression stack (top to bottom) [07] : 0x021600e74801 <Object map = 00000216010030B9> [06] : 0x02160023cf4d <SharedFunctionInfo percolateDown> [05] : 0x021600e74fad <Object map = 000002160380AEAD> [04] : 0x021600e74fad <Object map = 000002160380AEAD> [03] : 0x02160023cf4d <SharedFunctionInfo percolateDown> [02] : 0x021600000251 [01] : 0x021600e74825 <JSFunction valueFromBytes (sfi = 0000021603808E51)> [00] : 0x021600000251 --------- s o u r c e c o d e --------- function (f) {\x0a if ('_padTo' in f) return addField(off, _padsById[f._id]);\x0a \x0a var value = f.valueFromBytes(buf, off);\x0a if (f.name) obj[f.name] = value;\x0a else if (typeof value === 'object') extend(obj, value);\x0a }

}

[4]: forEach [0000021600188669](this=0x021600e747d9 <JSArray[4]>,0x021600e74fdd <JSFunction (sfi = 0000021601002539)>) { // optimized frame --------- s o u r c e c o d e --------- <No Source>

} [5]: valueFromBytes [0000021600E74F25] [C:\react\react\launcher-crm\node_modules\struct-fu\lib.js:146] [bytecode=00000216010025A5 offset=49](this=0x021600e74ef9 <Object map = 000002160380B92D>,0x02160023cf4d <SharedFunctionInfo percolateDown>,0x021600000251 ) { // heap-allocated locals var off = 0x021600e74fad <Object map = 000002160380AEAD> var buf = 0x02160023cf4d <SharedFunctionInfo percolateDown> var obj = 0x021600e74fc1 <Object map = 0000021600182E5D> // expression stack (top to bottom) [05] : 0x021600e747d9 <JSArray[4]> [04] : 0x021600e74fdd <JSFunction (sfi = 0000021601002539)> [03] : 0x021600e74fdd <JSFunction (sfi = 0000021601002539)> [02] : 0x021600e747d9 <JSArray[4]> [01] : 0x021600188669 <JSFunction forEach (sfi = 000002160017CD19)> [00] : 0x021600e74939 <FunctionContext[5]> --------- s o u r c e c o d e --------- function valueFromBytes(buf, off) {\x0a off || (off = {bytes:0, bits:0});\x0a var obj = new Object();\x0a fields.forEach(function (f) {\x0a if ('_padTo' in f) return addField(off, _padsById[f._id]);\x0a \x0a var value = f.valueFromBytes(buf, off);\x0a ...


}

[6]: getPluginVersion [0000021603BBF651] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\utils\getPluginVersion.js:15] [bytecode=0000021601002141 offset=131](this=0x021603bbe361 <Object map = 000002160399FF3D>,0x02160023cf4d <SharedFunctionInfo percolateDown>) { // expression stack (top to bottom) [15] : 0x021600e74ef9 <Object map = 000002160380B92D> [14] : 0x02160023cf4d <SharedFunctionInfo percolateDown> [13] : 0x021600000251 [12] : 0x0216001af8f1 <String[7]: #version> [11] : 0x0216000823b5 <Object map = 0000021603808479> [10] : 0x0216008e58ed <JSFunction (sfi = 0000021603807F3D)> [09] : 3 [08] : 0x021600e747d9 <JSArray[4]> [07] : 0x0216000823b5 <Object map = 0000021603808479> [06] : 0x021600e74f25 <JSFunction valueFromBytes (sfi = 000002160380AB99)> [05] : 0x021603bbf63d <FunctionContext[3]> [04] : 0x021600000251 [03] : 0x021600000251 [02] : 0x021600000251 [01] : 0x021600e74ef9 <Object map = 000002160380B92D> [00] : -1 --------- s o u r c e c o d e --------- function getPluginVersion(buffer) {\x0d\x0a let pluginVersion = -1\x0d\x0a\x0d\x0a try {\x0d\x0a \x0d\x0a const entries = _.struct([\x0d\x0a _.padTo(8),\x0d\x0a _.uint32le('oldVersion'),\x0d\x0a _.padTo(40),\x0d\x0a _.uint32le("version"),\x0d\x0a ])\x0d\x0a\x0d\x0a const data = entries.unpack(buffer)\x0d\x0a\x0d\x0a pluginVersion = data.version || data.oldVersion\x0d\x0a\x0d\x0a }...


}

[7]: getData [000002160008290D] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\functions\getData.js:10] [bytecode=0000021601144275 offset=35](this=0x021600082c9d <Object map = 00000216039ACD7D>,0x021600000235 ,0x021600e65705 <Object map = 0000021601128979>) { // expression stack (top to bottom) [07] : 0x021603bbe361 <Object map = 000002160399FF3D> [06] : 0x02160023cf4d <SharedFunctionInfo percolateDown> [05] : 0x021601128899 <String[18]: #Local\SCSTelemetry> [04] : 0x021603bbe361 <Object map = 000002160399FF3D> [03] : 0x021603bbf651 <JSFunction getPluginVersion (sfi = 000002160399F921)> [02] : 0x021600000251 [01] : 0x021600000251 [00] : 0x02160023cf4d <SharedFunctionInfo percolateDown> --------- s o u r c e c o d e --------- function getData(key, opts) {\x0d\x0a const buffer = utils.getBuffer(opts.mmfName)\x0d\x0a\x0d\x0a if (!buffer) return null\x0d\x0a\x0d\x0a const version = utils.getPluginVersion(buffer)\x0d\x0a\x0d\x0a if (version <= 0) return null\x0d\x0a\x0d\x0a if (!structures[version])\x0d\x0a throw new Error(SCS-SDK-Plugin version ${version} is not supported)\x0d\x0a \x0d\x0a const da...


}

[8]: watcher [0000021603BB4B11] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\functions\watch.js:~35] [pc=00007FF7E016B560](this=0x021600182169 <JSGlobalProxy>,0x021600e656e5 <JSFunction update (sfi = 000002160114C5D5)>,0x021600e65735 <Object map = 0000021601128F05>,0x021600e66455 <Object map = 0000021601128F2D>) { // heap-allocated locals var opts = 0x021600e66455 <Object map = 0000021601128F2D> var telemetry = 0x021600e65735 <Object map = 0000021601128F05> var update = 0x021600e656e5 <JSFunction update (sfi = 000002160114C5D5)> // expression stack (top to bottom) [14] : 0x021600082c9d <Object map = 00000216039ACD7D> [13] : 0x021600000235 [12] : 0x021600e65705 <Object map = 0000021601128979> [11] : 0x021600000251 [10] : 0x021600000251 [09] : 0x021600e65705 <Object map = 0000021601128979> [08] : 0x021600000235 [07] : 0x021600082c9d <Object map = 00000216039ACD7D> [06] : 0x02160008290d <JSFunction getData (sfi = 00000216037BFA49)> [05] : 0x021603bb4ac9 <FunctionContext[8]> [04] : 0x021600000251 [03] : 0x021600000251 [02] : 0x021600000251 [01] : 0x021600000251 [00] : 0x021600000251 --------- s o u r c e c o d e --------- function watcher(update, telemetry, opts) {\x0d\x0a const currentState = functions.getData(null, telemetry.opts)\x0d\x0a\x0d\x0a if (currentState?.game?.sdkActive && !previousState?.game?.sdkActive)\x0d\x0a telemetry.game.emit('connected')\x0d\x0a\x0d\x0a if (!currentState?.game?.sdkActive && previousState?.game?.sdkActive)\x0d\x0a telemetry.game....


}

[9]: _onTimeout [0000021600E74571] [C:\react\react\launcher-crm\node_modules\trucksim-telemetry\lib\functions\watch.js:106] [bytecode=000002160119E001 offset=14](this=0x021600e745cd <Timeout map = 000002160119CB91>) { // expression stack (top to bottom) [07] : 0x021600182169 <JSGlobalProxy> [06] : 0x021600e656e5 <JSFunction update (sfi = 000002160114C5D5)> [05] : 0x021600e65735 <Object map = 0000021601128F05> [04] : 0x021600e66455 <Object map = 0000021601128F2D> [03] : 0x021600e66455 <Object map = 0000021601128F2D> [02] : 0x021600e65735 <Object map = 0000021601128F05> [01] : 0x021600e656e5 <JSFunction update (sfi = 000002160114C5D5)> [00] : 0x021603bb4b11 <JSFunction watcher (sfi = 00000216039A0819)> --------- s o u r c e c o d e --------- function () => watcher(update, telemetry, opts)

}

[10]: listOnTimeout(aka listOnTimeout) [0000021600661279] [node:internal/timers:~517] [pc=00007FF7E016D1DE](this=0x021600000251 ,0x021600e66a95 <TimersList map = 000002160119D10D>,6040) { // expression stack (top to bottom) [14] : 0x021600e745cd <Timeout map = 000002160119CB91> [13] : 0x021600000251 [12] : 0x021600000251 [11] : 0x021600000251 [10] : 0x021600e74571 <JSFunction (sfi = 0000021601143B89)> [09] : 0x02160065fbe5 <FunctionContext[5]> [08] : 0x021600e74721 <HeapNumber 747.0> [07] : 0x02160060c205 <JSFunction emitBeforeScript (sfi = 000002160022B245)> [06] : 0x021600000251 [05] : 0x021600000251 [04] : 0x021600e74721 <HeapNumber 747.0> [03] : 62 [02] : 0x021600e745cd <Timeout map = 000002160119CB91> [01] : 0x021600000dc5 [00] : 50 --------- s o u r c e c o d e --------- function listOnTimeout(list, now) {\x0a const msecs = list.msecs;\x0a\x0a debug('timeout callback %d', msecs);\x0a\x0a let ranAtLeastOneTimer = false;\x0a let timer;\x0a while ((timer = L.peek(list)) != null) {\x0a const diff = now - timer._idleStart;\x0a\x0a // Check if this loop iteration is too early for the next timer.\x0a ...


}

[11]: processTimers [00000216005A2A95] [node:internal/timers:~497] [pc=00007FF7E008857E](this=0x021600442e29 ,6040) { // expression stack (top to bottom) [06] : 0x021600000251 [05] : 0x021600e66a95 <TimersList map = 000002160119D10D> [04] : 6040 [03] : 0x021600610c59 <PriorityQueue map = 0000021600250AB1> [02] : 0x021600661279 <JSFunction listOnTimeout (sfi = 00000216003A44B5)> [01] : 0x021600000dc5 [00] : 0x021600e66a95 <TimersList map = 000002160119D10D> --------- s o u r c e c o d e --------- function processTimers(now) {\x0a debug('process timer lists %d', now);\x0a nextExpiry = Infinity;\x0a\x0a let list;\x0a let ranAtLeastOneList = false;\x0a while ((list = timerListQueue.peek()) != null) {\x0a if (list.expiry > now) {\x0a nextExpiry = list.expiry;\x0a return timeoutInfo[0] > 0 ? nextExpiry : -nextE...


}

[12]: InternalFrame [pc: 00007FF7B11FEA9C] [13]: EntryFrame [pc: 00007FF7B11FE69B]

[59416:0425/180015.419:ERROR:crashpad_client_win.cc(844)] not connected

barroko301 avatar Apr 25 '24 23:04 barroko301

Hey, sorry for the late reply. This one was a bit tricky to debug, but I think I found a solution 2837fe7 to it. It should be available on npm now in [email protected]

kniffen avatar May 26 '24 17:05 kniffen