Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.51k stars 173 forks source link

Perform replace from Find in Files with multiple instances open causes program to crash/disappear #5680

Open LouieTian0209 opened 1 month ago

LouieTian0209 commented 1 month ago

Version: Linux gtk2

Steps to reproduce:

  1. Open 2 instances of CudaText
  2. On 2nd instance, perform some search in Find in Files dialog
  3. Open Replace dialog from menu button
  4. Enter some replacement text, and click Replace

Current Behavior: 2nd instance crashed/disappeared, 1st instance is in tact

Expected Behavior: Replacement should be completed on 2nd instance and both instances should stay open after the replacement.

Alexey-T commented 1 month ago
  1. FIF4 crashes? then show me the COnsole panel log with error. or Cud crashes? how? run Cud from terminal, show terminal text.
  2. I cannot repro this yet. I dont get idea - how 2nd running Cud instance can affect another instance? it cannot. your steps are not exact, seems. tell me what you do in BOTH Cud instances.
Alexey-T commented 1 month ago

1b. if Cud crashes and terminal text is very poor, take the new beta (linux-qt5) with .dbg file. it will show more extended text in terminal. https://github.com/Alexey-T/CudaText/discussions/5633#discussioncomment-10549277

LouieTian0209 commented 1 month ago

1b. if Cud crashes and terminal text is very poor, take the new beta (linux-qt5) with .dbg file. it will show more extended text in terminal. #5633 (comment)

Hmm... interesting. Tried with this qt5 version and didn't encounter this issue.

The original issue was that when performing Replace on 2nd instance, the entire 2nd instance just crashes/disappears, while the 1st instance is not being affected at all.

I'll try again later with the gtk2 version and try to capture any log info from terminal.

Alexey-T commented 1 month ago

So it is FIF4 who crashes, not Cud crashes. ok. I cannot repro it on gtk2 version too. maybe I need some fixed actions with fixed files.

waiting for the Console crash log.

LouieTian0209 commented 1 month ago

This is interesting... tried the qt5 version with dbg and cannot trigger this issue. Tried again a few times with my installed gtk2 version and cannot trigger the issue either.

But judging from the behavior I suspect it's the same root cause as #5688