Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.43k stars 382 forks source link

TShock crashes on Termux (Proot Debian 11) #2634

Closed PTALTS-LK closed 1 year ago

PTALTS-LK commented 2 years ago

Reproduction steps (if applicable)?

  1. Use Debian 11 with Screenshot_20220630145641 on Termux Proot
  2. Run mono TerrariaServer.exe -lang 7
  3. Select the map and start the server and wait for it to load
  4. Type "djdj" (actually, any character) and press backspace key (soft keyboard)
  5. See the Crash

Any stack traces or error messages (if known)?

[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Value must be positive and below the buffer height.
Parameter name: top
  at System.TermInfoDriver.SetCursorPosition (System.Int32 left, System.Int32 top) [0x0004d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.TermInfoDriver.WriteSpecialKey (System.ConsoleKeyInfo key) [0x0006e] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.TermInfoDriver.Echo (System.ConsoleKeyInfo key) [0x00020] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.TermInfoDriver.ReadUntilConditionInternal (System.Boolean haltOnNewLine) [0x000de] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.TermInfoDriver.ReadLine () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.ConsoleDriver.ReadLine () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.Console.ReadLine () [0x00019] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at Terraria.Main.startDedInputCallBack () [0x0000f] in <dff31e9b1ce9459785293368a701a09d>:0
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <12b418a7818c4ca0893feeaaf67f1e7f>:0                                                     at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <12b418a7818c4ca0893feeaaf67f1e7f>:0                             at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

Any screenshots?

Screenshot_20220630_142033_com termux Screenshot_20220630_141957_com termux

Any log messages from files that end in .log or .txt? What are the last 100 log messages from the server console?

crash_133010435864107960.zip 2022-06-30_14-18-07.log

What plugins and what versions of those plugins are you running?

{ "Name": "Crossplay", "Author": "Moneylover3246", "Version": "1.10.2" }, { "Name": "TShock", "Author": "The TShock Team", "Version": "4.5.17.0" }, { "Name": "DamageStatistic-伤害统计", "Author": "Megghy", "Version": "1.0" }, { "Name": "AutoBroadcast", "Author": "Maintained by Zaicon", "Version": "2.0.1.0" }

If I didn't provide any logs this issue, please close my issue immediately. I'm sorry for the inconvenience.

viralhat commented 2 years ago

Seems not one me has that problem on Debian. Try load not on Debian?

PTALTS-LK commented 1 year ago

The latest version of TShock doesn't seem to have this problem anymore