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

Access Violation in debugging when attempting to read a very long string #192

Open
dmcdonoughwick opened this issue Aug 10, 2022 · 3 comments

Comments

@dmcdonoughwick
Copy link

Describe the bug
Attempting to step through reading a very long string and setting to a variable causes an "Access Violation" and the debugging stops. This currently does not happen in VLIDE.

To Reproduce
Steps to reproduce the behavior:

  1. Point the "Crash.lsp" to where the "ReallyBigFile.txt" is located
  2. Start debugging "Crash.lsp" with a breakpoint on the "(setq ReallyLongString (read-line OpenFile))"
  3. Issue the command "CrashFunc" and AutoCAD will instantly generate an access violation error and quit debugging.

Expected behavior
In VLIDE the process takes approximately 3 minutes to complete (on my system) but does not cause an access violation and continues debugging. If that's not possible a more descriptive error would be desirable as it was very difficult to narrow down.

Screenshots
Snag_274c2f3

Desktop (please complete the following information):

  • OS: Windows 10 64-Bit
  • Version 21H2

Additional context

(defun c:CrashFunc ( / )
  (progn
    (setq FileName "C:\\Projects\\ReallyBigFile.txt")
    (setq OpenFile (open FileName "r"))
    (setq ReallyLongString (read-line OpenFile))    
    (close OpenFile)
    (princ "Test Complete")
  )
)

ReallyBigFile.zip

@dmcdonoughwick
Copy link
Author

This may be related to JDSComm's comment in ticket #182

@dmcdonoughwick
Copy link
Author

This is only one way to trigger this error. It happens so often that the debug is essentially useless to me and I still rely on VLIDE. I'd be happy to run any tests or send any log files that might be useful for this.

@JDSComm
Copy link

JDSComm commented Nov 16, 2022

See the attached file.
First to get VSCode working again perform the steps in "SOLUTION 2".
Then, If this ever happens again, all you have to do is "SOLUTION 3" or "SOLUTION 3 Update".

Hope this works for you as well.
I was about to give up on VSCode because of this but now I'm not having any issues with it.

VSCode - Unwind skipped on exception error if breakpoint in code.txt

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

No branches or pull requests

2 participants