Page 1 of 1

VariableViewer causes app to crash with memory error.

Posted: Fri Jun 02, 2023 5:37 am
by jassing
Granted - this is a large list() - but still, I would hope the variable viewer(alone) would crash, not the application...
I don't know at what point (list size, or size of values of the list, or what combination; I just know this does it.) Maybe it's a system memory dependant issue? (I started with 1.5 million elements)

Code: Select all

NewList test.s()
DisableDebugger
x$ = ";;ajfj;ask;fkajsd;fjka;sfjka;slkjf;asldjkf;alskdjf;alsjkf;asjkf;askldjf;askdjf;alskdjf;asdjf;alskdjf;asjkdf;alskjdf;alsjkdf;asjkdf;aksjdf;aksjdf;alsjkdf;laskjdf;alsjkdf;lasjkdf;lasjd;fajsd;fajksd;fkj"
For x = 1 To 200000
  AddElement(test())
  If x%2=0
    test()=x$
  EndIf 
Next

EnableDebugger
; Now view the list, and try to view all elements to the list test() and wait....
ShowVariableViewer()
CallDebugger ; Eventually get "Invalid memory access. (write error at address #######)

Re: VariableViewer causes app to crash with memory error.

Posted: Fri Jun 02, 2023 5:39 am
by jacdelad
I don't get an error on Windows, x64. Am I supposed to do something more than just start the code?

Re: VariableViewer causes app to crash with memory error.

Posted: Fri Jun 02, 2023 6:13 am
by jassing
jacdelad wrote: Fri Jun 02, 2023 5:39 am I don't get an error on Windows, x64. Am I supposed to do something more than just start the code?
Try upping the loop count to 1500000 or 2000000
I suspect it's a machine-dependant, system memory issue. Where in the variable viewer is causing the crash because it runs out of memory.

As for what to expect, I thought I said that.. a memory error. Perhaps my English is not so good?

Image

Re: VariableViewer causes app to crash with memory error.

Posted: Fri Jun 02, 2023 6:25 am
by jacdelad
I tried with 2000000. Nothing is displayed, but I still don't get an error. The last message is "Execution stopped. (CallDebugger)".

Edit: Ah, now. Error at line 14. But it takes a while.

Re: VariableViewer causes app to crash with memory error.

Posted: Fri Jun 02, 2023 6:38 am
by jassing
jacdelad wrote: Fri Jun 02, 2023 6:25 am Edit: Ah, now. Error at line 14. But it takes a while.
That's why this was there:

Code: Select all

; Now view the list, and try to view all elements to the list test() and wait....
The key being: Now view the list, and try to view all elements to the list test() and wait....

Sorry that my English is not so clear.