Pottus / Texture-Studio

83 stars 90 forks source link

Second player on server cannot /goto, crashes server. #77

Closed iamlarss closed 5 years ago

iamlarss commented 6 years ago

I and my girlfriend use Texture Studio to map for a server we play on, and /goto crashes the server only when she uses it, and just flat out doesn't work for me. Other commands such as /skin don't work either. On the 1.8 version of Texture Studio as well, maps don't save new objects, only edits to existing ones.

wtfrazr commented 6 years ago

This depends on the host tbh. I could load a server and still mapped with one person at my map, but after a while, the server randomly crashed. But you are playing on computers steps away from each other right? It shouldn't be a network issue there.

Crayder commented 6 years ago

Those commands are not TS commands. They are fsdebug commands, so absolutely nothing to do with TS. They would be working fine but the TS you are using is compiled in debug mode, which as I have set up other FS's commands don't work. I'm going to add all the main fsdebug administrative commands to TS.

Sunehildeep commented 6 years ago

I've the same issue, and it's not with FSdebug cmds, I used /sel and it crashed, the crash was from formatex, happens only when second player is on server

Crayder commented 6 years ago

How do you know the crash is from formatex? Show me whatever would be useful. This doesn't happen to me when I test on my two computers...

Sunehildeep commented 6 years ago
[10:20:45] [debug] AMX backtrace:
[10:20:45] [debug] #0 native format () from samp03svr
[10:20:45] [debug] #1 0000b34c in formatex (szOutput[]=@01531b18 "", iLength=128, szFormatString[]=@0154ada0 "%s", ... <1 argument>) at E:\Texture-Studio-master\New folder\pawno\include\formatex.inc:272
[10:20:45] [debug] #2 000442e0 in ?? (... <2 arguments>) at tstudio\cmdbuffer.pwn:33
[10:20:45] [debug] #3 00027a20 in public OnPlayerCommandText (playerid=1, cmdtext[]=@02df78f4 "/sel") at E:\Texture-Studio-master\New folder\pawno\include\YSI\y_hooks/impl.inc:929
[10:20:45] [debug] Native backtrace:
[10:20:45] [debug] #0 f6cfee8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[10:20:45] [debug] #1 f6cf7bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[10:20:45] [debug] #2 f6cf8dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[10:20:45] [debug] #3 f6cf9226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[10:20:45] [debug] #4 f6cfeadc in ?? () from plugins/crashdetect.so
[10:20:45] [debug] #5 f76dcbd0 in ?? ()
[10:20:45] [debug] #6 080a4262 in ?? () from ./samp03svr
[10:20:45] [debug] #7 080a4cbf in ?? () from ./samp03svr
[10:20:45] [debug] #8 080d63a9 in ?? () from ./samp03svr
[10:20:45] [debug] #9 080dce50 in ?? () from ./samp03svr
[10:20:45] [debug] #10 080950e4 in ?? () from ./samp03svr
[10:20:45] [debug] #11 f6cfa94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[10:20:45] [debug] #12 f6cfd8f8 in ?? () from plugins/crashdetect.so
[10:20:45] [debug] #13 f6d01916 in amx_Exec () from plugins/crashdetect.so
[10:20:45] [debug] #14 f6cf9be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[10:20:45] [debug] #15 f6cfd659 in ?? () from plugins/crashdetect.so
[10:20:45] [debug] #16 080a1cb1 in ?? () from ./samp03svr
[10:20:45] [debug] #17 080b172a in ?? () from ./samp03svr
[10:20:45] [debug] #18 08071d38 in ?? () from ./samp03svr
[10:20:45] [debug] #19 08071e32 in ?? () from ./samp03svr
[10:20:45] [debug] #20 0807bc50 in ?? () from ./samp03svr
[10:20:45] [debug] #21 080aed3d in ?? () from ./samp03svr
[10:20:45] [debug] #22 080aef02 in ?? () from ./samp03svr
[10:20:45] [debug] #23 080aa13a in ?? () from ./samp03svr
[10:20:45] [debug] #24 f7326637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
Crayder commented 6 years ago

Can you try just simply recompiling TS with the pawno included in the package? 🤔

Sunehildeep commented 6 years ago

I'm already using the one provided with the package

Crayder commented 6 years ago

Again, "try just simply recompiling TS".

SmithyVids commented 6 years ago

Same issue here for me when trying to have two players using it at once, using 0.3D. Server log attached:

`[09:15:53] Number of vehicle models: 0 [09:16:04] [connection] incoming connection: 81.141.187.148:54632 id: 0 [09:16:05] [join] Steveo_Test has joined the server (0:81.141.187.148) [09:16:05] /thelp missing command: mtsearch [09:16:05] Warning: There's something missing or extra in /thelp for player 0. (Report to Crayder on SA-MP Discord if this message ever shows) [09:16:05] [connection] incoming connection: 82.68.5.142:59888 id: 1 [09:16:06] [join] Smithy_Test has joined the server (1:82.68.5.142) [09:16:06] /thelp missing command: mtsearch [09:16:06] Warning: There's something missing or extra in /thelp for player 0. (Report to Crayder on SA-MP Discord if this message ever shows) [09:17:13] [debug] Server crashed while executing tstudio.amx [09:17:13] [debug] AMX backtrace: [09:17:13] [debug] #0 native format () from samp-server.exe [09:17:13] [debug] #1 00008cc4 in ?? (22217208, 128, 22320256, 1716716020) from tstudio.amx [09:17:13] [debug] #2 00037be0 in ?? (1, 46107484) from tstudio.amx [09:17:13] [debug] #3 000203e8 in public OnPlayerCommandText (1, 46107484) from tstudio.amx [09:17:13] [debug] Native backtrace: [09:17:13] [debug] #0 0046d2d0 in ?? () from samp-server.exe [09:17:13] [debug] #1 0046fd42 in ?? () from samp-server.exe [09:17:13] [debug] #2 73c3d60a in ?? () from plugins\crashdetect.DLL [09:17:13] [debug] #3 73c44078 in ?? () from plugins\crashdetect.DLL [09:17:13] [debug] #4 73c3a767 in ?? () from plugins\crashdetect.DLL [09:17:13] [debug] #5 73c3d65a in ?? () from plugins\crashdetect.DLL [09:17:13] [debug] #6 0046b338 in ?? () from samp-server.exe [09:17:13] [debug] #7 00499021 in ?? () from samp-server.exe [09:17:13] [debug] #8 02bf8b5c in ?? () [09:17:13] [debug] #9 4fc438a1 in ?? () from samp-server.exe [09:17:13] [debug] Registers: [09:17:13] [debug] EAX: 00000000 EBX: 0018f658 ECX: 004fb400 EDX: ffffffff [09:17:13] [debug] ESI: 69cb2b48 EDI: 00000004 EBP: 3075c085 ESP: 00499029 [09:17:13] [debug] EIP: 4fc438a1 EFLAGS: 00010286 [09:17:13] [debug] Stack: [09:17:13] [debug] ESP+00000000: 85088b00 8d2574c9 52182454 4f25e853 [09:17:13] [debug] ESP+00000020: 5056ff6a ffca8ee8 10c483ff 18248c8d [09:17:13] [debug] ESP+00000040: 8bfffb49 0234248c 5e5f0000 000d8964 [09:17:13] [debug] ESP+00000060: cccccccc 6acccccc 1c6b68ff a164004b [09:17:13] [debug] ESP+00000080: 848b0000 00013c24 56555300 5708c083 [09:17:13] [debug] ESP+000000a0: e81c245c fffb47cf c4380d8b 718b004f [09:17:13] [debug] ESP+000000c0: 4c2484c7 00000001 66000000 ff045889 [09:17:13] [debug] ESP+000000e0: 00016484 a28de800 8166ffff 8b03e8fb [09:17:13] [debug] ESP+00000100: 0fc08500 00014084 ce8b5300 fccfe6e8 [09:17:13] [debug] ESP+00000120: c82bcd8b 07d0f981 8c0f0000 00000119 [09:17:13] [debug] ESP+00000140: 244489c0 a98c0f14 33000000 8d08ebff [09:17:13] [debug] ESP+00000160: 8c8b0000 024de4be 74c98500 6a016a7b [09:17:13] [debug] ESP+00000180: 8bfffb4d 1394be84 016a0000 4c8d206a [09:17:13] [debug] ESP+000001a0: c18c0d8b 198b0051 24548d57 93ff5226 [09:17:13] [debug] ESP+000001c0: 41896611 8c0d8b04 ff0051c1 016a4c53 [09:17:13] [debug] ESP+000001e0: fffb4d33 1424448b fdb70f45 8e0ff83b [09:17:13] [debug] ESP+00000200: 24448d10 4c8d501c 54893424 04e82024 [09:17:13] [debug] ESP+00000220: 83006a00 c48b08ec 3089006a 24748b66 [09:17:13] [debug] ESP+00000240: ff004c00 00008092 244c8d00 2484c728 [09:17:13] [debug] ESP+00000260: 0000013c 645d5e5f 00000d89 815b0000 [09:17:13] [debug] ESP+00000280: 68ff6a04 004b1c6b 25896450 00000000 [09:17:13] [debug] ESP+000002a0: d1840f57 85000000 c9840fc0 99000000 [09:17:13] [debug] ESP+000002c0: 40006a03 4c8d5650 38e82024 6afffb46 [09:17:13] [debug] ESP+000002e0: 00000001 e8000000 fffb475b c4380d8b [09:17:13] [debug] ESP+00000300: 3889c48b 04588966 00e492ff 3d660000 [09:17:13] [debug] ESP+00000320: 38a14274 8b004fc4 8bc98508 b48b0468 [09:17:13] [debug] ESP+00000340: 30308689 08740000 e8575053 fffd4f77 [09:17:13] [debug] ESP+00000360: fffd2263 14244c8d 302484c7 ff000001 [09:17:13] [debug] ESP+00000380: 89645d5e 0000000d c4815b00 00000124 [09:17:13] [debug] ESP+000003a0: 68ff6a04 004b1c16 25896450 00000000 [09:17:13] [debug] ESP+000003c0: 00fc840f c0850000 00f4840f 83990000 [09:17:13] [debug] ESP+000003e0: 5040006a 244c8d55 4519e820 8c8dfffb [09:17:13] [debug] Loaded modules: [09:17:13] [debug] 00400000 - 0051f000 samp-server.exe [09:17:13] [debug] 77380000 - 774ef000 ntdll.dll [09:17:13] [debug] 75260000 - 753a0000 KERNEL32.DLL [09:17:13] [debug] 76f50000 - 77027000 KERNELBASE.dll [09:17:13] [debug] 75c90000 - 76f4b000 SHELL32.dll [09:17:13] [debug] 77070000 - 771c3000 USER32.dll [09:17:13] [debug] 73c70000 - 73c78000 WSOCK32.dll [09:17:13] [debug] 747d0000 - 747f3000 WINMM.dll [09:17:13] [debug] 758b0000 - 75973000 msvcrt.dll [09:17:13] [debug] 74d30000 - 74ead000 combase.dll [09:17:13] [debug] 75c40000 - 75c85000 SHLWAPI.dll [09:17:13] [debug] 74eb0000 - 74fbc000 GDI32.dll [09:17:13] [debug] 77260000 - 772af000 WS2_32.dll [09:17:13] [debug] 747a0000 - 747c3000 WINMMBASE.dll [09:17:13] [debug] 75000000 - 750ba000 RPCRT4.dll [09:17:13] [debug] 77060000 - 77067000 NSI.dll [09:17:13] [debug] 75c00000 - 75c3c000 cfgmgr32.dll [09:17:13] [debug] 74770000 - 74791000 DEVOBJ.dll [09:17:13] [debug] 75560000 - 7557e000 SspiCli.dll [09:17:13] [debug] 74b60000 - 74b6a000 CRYPTBASE.dll [09:17:13] [debug] 75bb0000 - 75bf1000 sechost.dll [09:17:13] [debug] 74b00000 - 74b54000 bcryptPrimitives.dll [09:17:13] [debug] 753a0000 - 753c7000 IMM32.DLL [09:17:13] [debug] 75580000 - 75692000 MSCTF.dll [09:17:13] [debug] 73c20000 - 73c70000 crashdetect.DLL [09:17:13] [debug] 73bb0000 - 73c19000 MSVCP100.dll [09:17:13] [debug] 71e30000 - 71eef000 MSVCR100.dll [09:17:13] [debug] 10000000 - 1000d000 sscanf.DLL [09:17:13] [debug] 73b70000 - 73baf000 streamer.DLL [09:17:13] [debug] 00310000 - 0033c000 filemanager.DLL [09:17:13] [debug] 71d90000 - 71e2c000 MSVCP100D.dll [09:17:13] [debug] 71c10000 - 71d82000 MSVCR100D.dll [09:17:13] [debug] 74a30000 - 74a7b000 mswsock.dll [09:17:13] [debug] 74440000 - 74451000 napinsp.dll [09:17:13] [debug] 74420000 - 74434000 NLAapi.dll [09:17:13] [debug] 743a0000 - 7441e000 DNSAPI.dll [09:17:13] [debug] 74390000 - 7439a000 winrnr.dll [09:17:13] [debug] 74ad0000 - 74af0000 IPHLPAPI.DLL [09:17:13] [debug] 74ac0000 - 74ac8000 WINNSI.DLL [09:17:13] [debug] 74340000 - 74386000 fwpuclnt.dll [09:17:13] [debug] 74330000 - 74338000 rasadhlp.dll

----------`

Crayder commented 6 years ago

Sir, the solution was posted here. Once I get my PC set up in my new place I will fix the release, but for now all you have to do is recompile. That's literally the only problem.

SmithyVids commented 6 years ago

I've recompiled and it still crashes with the pawno provided in the download, it's more than just a compiling issue^

Crayder commented 6 years ago

No, it's not "more than just a compiling issue"... It compiled perfectly fine for everyone except you.

erfanasbari commented 4 years ago

Hello, I Have The Same Problem I Test It On two Different VPS And The Server Crashes When OnPlayerCommandText Called In tstudo.amx. The Crash Happens often With /editobject Command. The Reason Why It's Not Reported By Many People Is That Many People Use TS Alone Not With Friends. Personally I Used It For 4 Month Alone And When I Decided To Team Work I Found This Problem. Please Fix This Issue If You Can Because It's Too Good To Team Work In TS. Thank You Very Much For Creating This FS It's Very Great ;D

Please Fix This Issue Or Help Us If There Is A Problem From Our Side.

And Sorry For My Bad English.