PureBasic Forum
https://www.purebasic.fr/english/

[IDE-v562]Reverse search crash on 1st ;"find",[x]no Comments
https://www.purebasic.fr/english/viewtopic.php?f=4&t=70161
Page 1 of 2

Author:  skywalk [ Wed Feb 07, 2018 3:43 pm ]
Post subject:  [IDE-v562]Reverse search crash on 1st ;"find",[x]no Comments

I can now reproduce consistently on Windows 10 Pro v1709,b16299.125, PBv562x64.
PB is white listed from antivirus.
Antivirus is OFF.

Steps:
1. Start with empty PB IDE.
2. Paste in some code(with If then else's) in a new window.
3. Search for 'If'
Check:
[x] Don't search in Comments. ;<-- Unchecked = no crash.
4. Repeat.
5. Now Reverse Search for 'If' using [Shift+F3]. (I also tried different HotKeys, [Ctrl+F3], and the gui)
6. Upon reaching the top of file or 1st 'If' in a comment, a messagebox should appear, "No more matches...".
But this is the crash state. Task Manager shows a console window owned by PureBasic, but it is hidden.

TaskManager at crash

Author:  skywalk [ Wed Feb 21, 2018 8:53 pm ]
Post subject:  Re: [IDE-v562] Hard crash while reverse searching in debug m

Same hard IDE crash occurred again on a reverse search.
The loaded file is ~12k lines.
History is disabled. No project use. Just 10 or 13 individual files loaded in IDE.
Any ideas how to avoid or track this?

Author:  skywalk [ Wed Feb 28, 2018 2:17 pm ]
Post subject:  Re: [IDE-v562] Hard crash while reverse searching.

Is this only happening with my setup?
I crashed 3 times yesterday. :cry: :evil:
All 3 times I was reverse searching in a file that was not saved.
Is there any reason this would cause an infinite loop or unstable condition?

Author:  kenmo [ Wed Feb 28, 2018 3:12 pm ]
Post subject:  Re: [IDE-v562] Hard crash while reverse searching.

I haven't had this problem, but I am on Windows 7 / 5.62 x86 so different systems...

Are you using the Find window, or the hotkey?

Author:  skywalk [ Wed Feb 28, 2018 3:31 pm ]
Post subject:  Re: [IDE-v562] Hard crash while reverse searching.

It happens with [Shift+F3].
I will try to duplicate it this morning.

EDIT:
Ok, I was able to reproduce with several files opened and edited but not saved.
Start reverse search for item in 1 file.
Then switch to another open file and hit [Shift+F3] = immediate CRASH!

Author:  kurzer [ Wed Feb 28, 2018 4:09 pm ]
Post subject:  Re: [IDE-v562] Crash on reverse search in 2nd open file.

I tried to reproduce your problem using the described steps, but all went okay here. :shock:
Windows 7 x64, PB 5.62 x64

Author:  skywalk [ Wed Feb 28, 2018 6:02 pm ]
Post subject:  Re: [IDE-v562] Crash on reverse search in 2nd open file.

Thanks, maybe this is Windows 10 only?
I will try reproducing on another pc.
I am super afraid of [Shift+F3] now. :cry:

Author:  Dude [ Wed Feb 28, 2018 10:32 pm ]
Post subject:  Re: [IDE-v562] Crash on reverse search in 2nd open file.

skywalk wrote:
maybe this is Windows 10 only?

Well, I can't reproduce your problem on Win 7, so... yeah. Likely a Win 10 issue. I will test in a Win 10 virtual machine later.

Just to be sure: Have you tested the problem with two NEW sources, instead of existing sources? Just in case something in your source is triggering it (bad character, hidden character, etc).

Author:  davido [ Wed Feb 28, 2018 11:31 pm ]
Post subject:  Re: [IDE-v562] Crash on reverse search in 2nd open file.

skywalk wrote:

EDIT:
Happens most frequently with 2 edited files open.
Start reverse search in 1 file.
Then move to 2nd edited file and try the same reverse search.
Immediate crash.


I tried this on my system. No problem.
Windows 10 Version 1709 build 16299.248
PureBasic 5.62 X64
My files were ~2000 lines

Author:  skywalk [ Thu Mar 01, 2018 1:08 am ]
Post subject:  Re: [IDE-v562]Crash on repeated reverse search in edited fil

Ok,
See the 1st post.

I reinstalled latest PB.
Shutdown my antivirus.
Started with a blank IDE. (not my usual mode)
Pasted in some code to a new file.
Did a simple search for 'If'.
Then did enough reverse searches till I reached the top of the file.
Then crash. The messagebox that states "No more matches found..." is blocked or interrupted?
TaskManager at crash

This is crazy? But at least I know now to not reverse search until this is fixed.

Author:  said [ Thu Mar 01, 2018 5:56 am ]
Post subject:  Re: [IDE-v562]Crash on repeated reverse search in edited fil

No problem here either!
PB 5.62 x64, Win 10 Pro 1709 build 16299.248
Tried the various scenarios ... no crash! Could be the build 16299.125 ?!

Author:  skywalk [ Thu Mar 01, 2018 2:55 pm ]
Post subject:  Re: [IDE-v562]Crash on repeated reverse search in edited fil

Thanks said, I will try updating Windows. Though, it may also be that the message box is not blocked, but off screen? I have 3 monitors and some apps get confused. This is a stretch since the regular search message box appears normally.

Author:  skywalk [ Thu Mar 01, 2018 3:49 pm ]
Post subject:  Re: [IDE-v562]Crash on repeated reverse search in edited fil

Ok,
I deleted my prefs and the crash is gone? :shock:
With the default prefs, the reverse search messagebox(top of file reached) appears in the center of the current window.
How do I find what preference setting is causing this?
WinMerge?
I really don't want to re-enter all my customizations?

Author:  skywalk [ Thu Mar 01, 2018 7:17 pm ]
Post subject:  Re: [IDE-v562]Crash when reverse search reach top of file.

Yay :evil:
Found the setting that triggers a crash.
Do NOT check:
[x] Don't search in Comments.
Unchecked = no crash.
Wow, hard to find.

Author:  kenmo [ Thu Mar 01, 2018 8:32 pm ]
Post subject:  Re: [IDE-v562]Crash when reverse search reach top of file.

CONFIRMED on Windows 7, nice find Skywalk!

I opened 1 file, searched for "if" with "Don't search in comments" checked... and it broke when I hit the top of the code.

Although, for me, I didn't even get the "Continue search" dialog and a crash, the IDE just froze and stopped responding.

Page 1 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/