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

Bug Fix: Random crash doing normal scan operations #32

Open
JeymyAV opened this issue Sep 10, 2023 · 5 comments
Open

Bug Fix: Random crash doing normal scan operations #32

JeymyAV opened this issue Sep 10, 2023 · 5 comments

Comments

@JeymyAV
Copy link

JeymyAV commented Sep 10, 2023

A new bug in the last version.

1º I did a scan of some hex value in the executable and found 2 entries and this is ok, See below:
image

2º I click in the button refresh and after I click the button Next SCAN:
image

As you can see this is wrong because the same 2 entries should be found cause I didn't change anything.

3º I continue click in the buttons Next SCAN and Refresh and after a few interactions:
image

The full log:
System.AggregateException: One or more errors occurred. ---> System.Exception: System.Exception: baseKey must be less than key, baseKey:109241798, key:109239156
at PS4CheaterNeo.BitsDictionary.Add(UInt32 key, Byte[] data)
at PS4CheaterNeo.Query.Comparer(Byte[] buffer, Section section, Int32 scanStep, UInt64 AddrMin, UInt64 AddrMax, BitsDictionary bitsDict, Boolean isCompareFirst, BitsDictionary bitsDictFirst)
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()

System.AggregateException: One or more errors occurred. ---> System.Exception: baseKey must be less than key, baseKey:109241798, key:109239156
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at PS4CheaterNeo.Query.<>c__DisplayClass33_0.<ScanTask>b__0() ---> (Inner Exception #0) System.Exception: baseKey must be less than key, baseKey:109241798, key:109239156 at PS4CheaterNeo.Query.<>c__DisplayClass33_3.<ScanTask>b__5() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

at PS4CheaterNeo.Query.<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PS4CheaterNeo.Query.d__33.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Exception: System.Exception: baseKey must be less than key, baseKey:109241798, key:109239156
at PS4CheaterNeo.BitsDictionary.Add(UInt32 key, Byte[] data)
at PS4CheaterNeo.Query.Comparer(Byte[] buffer, Section section, Int32 scanStep, UInt64 AddrMin, UInt64 AddrMax, BitsDictionary bitsDict, Boolean isCompareFirst, BitsDictionary bitsDictFirst)
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()

System.AggregateException: One or more errors occurred. ---> System.Exception: baseKey must be less than key, baseKey:109241798, key:109239156
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at PS4CheaterNeo.Query.<>c__DisplayClass33_0.<ScanTask>b__0() ---> (Inner Exception #0) System.Exception: baseKey must be less than key, baseKey:109241798, key:109239156 at PS4CheaterNeo.Query.<>c__DisplayClass33_3.<ScanTask>b__5() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

at PS4CheaterNeo.Query.<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PS4CheaterNeo.Query.d__33.MoveNext()<---

@JeymyAV
Copy link
Author

JeymyAV commented Sep 10, 2023

More information about this bug:
I did the same test with the version PS4CheaterNeo-0.9.9.3 and this bug no happen, works correctly, so seems your last changes have broke something...

@avan06
Copy link
Owner

avan06 commented Sep 10, 2023

Hi, JeymyAV

Thank you for reporting the issue. It has been fixed in version 0.9.9.6-beta. Thank you.

@JeymyAV
Copy link
Author

JeymyAV commented Sep 11, 2023

Most better but I have got yet the below crash following these steps:

1º First Scan
2º Refresh
3º Next Scan
4º Refresh + Next Scan + Stop and wait to finish. No results are returned. Correct until now, but then
5º Next Scan button and the system raise error again. Below the crash log (but if you click ok on the button Window-Log, the correct results are returned and the program continue working well):

System.AggregateException: One or more errors occurred. ---> System.Exception: System.Exception: baseKey must be less than key, baseKey:109471542, key:109468900
at PS4CheaterNeo.BitsDictionary.Add(UInt32 key, Byte[] data)
at PS4CheaterNeo.Query.Comparer(Byte[] buffer, Section section, Int32 scanStep, UInt64 AddrMin, UInt64 AddrMax, BitsDictionary bitsDict, Boolean isCompareFirst, BitsDictionary bitsDictFirst)
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()

System.AggregateException: One or more errors occurred. ---> System.Exception: baseKey must be less than key, baseKey:109471542, key:109468900
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at PS4CheaterNeo.Query.<>c__DisplayClass33_0.<ScanTask>b__0() ---> (Inner Exception #0) System.Exception: baseKey must be less than key, baseKey:109471542, key:109468900 at PS4CheaterNeo.Query.<>c__DisplayClass33_3.<ScanTask>b__5() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

at PS4CheaterNeo.Query.<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PS4CheaterNeo.Query.d__33.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Exception: System.Exception: baseKey must be less than key, baseKey:109471542, key:109468900
at PS4CheaterNeo.BitsDictionary.Add(UInt32 key, Byte[] data)
at PS4CheaterNeo.Query.Comparer(Byte[] buffer, Section section, Int32 scanStep, UInt64 AddrMin, UInt64 AddrMax, BitsDictionary bitsDict, Boolean isCompareFirst, BitsDictionary bitsDictFirst)
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()

System.AggregateException: One or more errors occurred. ---> System.Exception: baseKey must be less than key, baseKey:109471542, key:109468900
at PS4CheaterNeo.Query.<>c__DisplayClass33_3.b__5()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at PS4CheaterNeo.Query.<>c__DisplayClass33_0.<ScanTask>b__0() ---> (Inner Exception #0) System.Exception: baseKey must be less than key, baseKey:109471542, key:109468900 at PS4CheaterNeo.Query.<>c__DisplayClass33_3.<ScanTask>b__5() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

at PS4CheaterNeo.Query.<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PS4CheaterNeo.Query.d__33.MoveNext()<---

@avan06
Copy link
Owner

avan06 commented Sep 11, 2023

I remember this error. After clicking the stop button, if you continue with the Next button, it may cause an error. However, if you click the Undo button after stopping, you should be able to continue the Next search. For now, please try this workaround, and I'll look into improving it when I have the time. Thank you.

@JeymyAV
Copy link
Author

JeymyAV commented Sep 11, 2023

Yes, you are right, checked and the workaround works...
Anyway, I understand that this bug can be resolved when you can... I will close this when it has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants