Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy & Paste long text on Edit Data crashes #380

Open
Hexaae opened this issue Oct 6, 2024 · 1 comment
Open

Copy & Paste long text on Edit Data crashes #380

Hexaae opened this issue Oct 6, 2024 · 1 comment
Labels
(╯°□°)╯︵ ┻━┻ avalonia Bug exists in Avalonia, not here bug Something isn't working

Comments

@Hexaae
Copy link

Hexaae commented Oct 6, 2024

Describe the bug
Copy & Paste causes crashes on a .bundle extracted in memory (CAB-xxxxxxxxxxxxxxxxxxxx), if you Edit Data

To Reproduce

  1. Open a .bundle
  2. Click "Info"
  3. Select a Monobheaviour file
  4. Click "Edit Data" button (will warn the file is huge)
  5. Copy & Paste edited text into the Edit Data window (I edit the text with an external editor like 010 Editor or Cudatext...)
  6. Save clicking "Ok"
  7. "Save As..." the .bundle
  8. repeat from point 2 to 5 (paste the changed text again)

At this point, right after paste, UABEA will crash with this error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at TextMateSharp.Model.TMModel.InvalidateLine(Int32 lineIndex) in /_/src/TextMateSharp/Model/TMModel.cs:line 429
   at TextMateSharp.Model.TMModel.TokenizerThread.ThreadWorker(Object state) in /_/src/TextMateSharp/Model/TMModel.cs:line 109
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()

Expected behavior
Nothing. Eeverything should go on as expected... It crashes instead.

Screenshots
image

Additional context

@Hexaae Hexaae added the bug Something isn't working label Oct 6, 2024
@Hexaae Hexaae changed the title Copy & Paste causes with Edit Data for long text Copy & Paste long text on Edit Data crashes Oct 6, 2024
@nesrak1
Copy link
Owner

nesrak1 commented Oct 8, 2024

Bug exists in the latest version of TextMateSharp. I'll report the bug to that repo later.

@nesrak1 nesrak1 added the (╯°□°)╯︵ ┻━┻ avalonia Bug exists in Avalonia, not here label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(╯°□°)╯︵ ┻━┻ avalonia Bug exists in Avalonia, not here bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants