question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Items with >20 lines of text crash on mouse-over

See original GitHub issue

Description

When you reforge an item, and give it >20 lines of text, the game crashes when you mouseover that item. This happens, specifically (but only because it’s the item i have with the most lines of text), with Cheeze’s Chaos Theory when you get it to have the mythical prefix.

I confirmed in Discord #support room, and jopojelly told me to file here.

Steps to Reproduce

  1. Have Cheeze’s Chaos Theory item.
  2. Enchant it with mythical
  3. Mouseover the item, and game should crash

Expected behavior

I expect the game should not crash. Although one might reasonably say 20 lines is enough text…

Actual behavior

The game crashes with an IndexOutOfBounds Exception.

Reproduction frequency

100% reliable if you put mythical on this item.

Versions

tModLoader v0.10.1.5

Mods

capture Particularly Cheeze’s Content Pack v1.1.2.4. I don’t think the mod matters though. I suspect any item with >20 lines of text would crash.

Additional Information

Game does not crash if I reforge the item to be masterful, giving it exactly 20 lines of text.

m_chaos_theory_works

Here’s the stack trace:

Silently Caught Exception: Index was outside the bounds of the array.   at Terraria.Main.MouseText_DrawItemTooltip(Int32 rare, Byte diff, Int32 X, Int32 Y)   at Terraria.ModLoader.ModCompile.<>c.<ActivateExceptionReporting>b__15_0(Object sender, FirstChanceExceptionEventArgs exceptionArgs)
   at Terraria.Main.MouseText_DrawItemTooltip(Int32 rare, Byte diff, Int32 X, Int32 Y)
   at Terraria.Main.MouseText(String cursorText, Int32 rare, Byte diff, Int32 hackedMouseX, Int32 hackedMouseY, Int32 hackedScreenWidth, Int32 hackedScreenHeight)
   at Terraria.Main.DrawInterface_33_MouseText()
   at Terraria.Main.<SetupDrawInterfaceLayers>b__1623_29()
   at Terraria.UI.LegacyGameInterfaceLayer.DrawSelf()
   at Terraria.UI.GameInterfaceLayer.Draw()
   at Terraria.Main.DrawInterface(GameTime gameTime)
   at Terraria.Main.do_Draw(GameTime gameTime)
   at Terraria.Main.DoDraw(GameTime gameTime)
   at Terraria.Main.Draw(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.DrawFrame()
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
   at Terraria.WindowsLaunch.Main(String[] args)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adverescommented, Nov 8, 2018

Interesting. Thank you for getting back to me. I can try and reproduce with a tiny subset of mods to see if it’s just Joost or something.

Closing issue. Thanks again!

0reactions
adverescommented, Nov 8, 2018

Cool! Thanks folks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 AMAZING NAV LINK HOVER ANIMATIONS - YouTube
In this video, you will learn how to create smooth hover ... 0: 20 - Text color change on hover 1:42 - Underline...
Read more >
line-break - CSS: Cascading Style Sheets - MDN Web Docs
The line-break CSS property sets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.
Read more >
text-decoration - CSS: Cascading Style Sheets - MDN Web Docs
The text-decoration shorthand CSS property sets the appearance of decorative lines on text. It is a shorthand for text-decoration-line, ...
Read more >
Mouse Tooltip Translator
Overview. Mouse Tooltip Translator translate mouseover text using google translate. When mouse hover on text, it shows translated tooltip in any language.
Read more >
Chapter 20 | Virtual CRASH 4
Next, hover your mouse over the animation path at the position you wish to input a new orientation. Left-click and hold on either...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found