question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ContextSwitchDeadlock when opening 627kb rcnet file

See original GitHub issue

What happened: Added large class “cg_t” (size 0xCE540) Created “refdef” node at offset 0x8C100 Saved project. While still attached to target process, opened different (size 25KB) rcnet project file, file opened perfectly fine. Attempted to reopen the original rcnet project (size 627KB). After attempting to reopen original project file, reclass became unresponsive and required force close via Task Manager.

To Reproduce on ReClass.NET(x86) v1.2: Files needed: project files.zip Os: Windows 10 x64

My investigation while debugging in visual studio yielded the following exception: Managed Debugging Assistant 'ContextSwitchDeadlock' : 'The CLR has been unable to transition from COM context 0x6e4008 to COM context 0x6e3f50 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.'

Placing a breakpoint on openProjectToolStripMenuItem_Click in MainForm.cs, line 235 and stepping through LoadProjectFromPath seemed to show there were no errors within the formatting/parsing of the file, so I don’t think it is corrupted, but I still would consider the possibility.

I hope there is a solution for this, I would really like to open the file I spent so much time working on and extract the c++ class definitions from it at least. If ReClass just won’t open it no matter what, is there a way I can manually extract the info I need from the project file?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
KN4CK3Rcommented, Feb 19, 2020

@Mountain-Programmer: With #148 you can now load your unmodified file without problems. 👍

0reactions
nice-spritecommented, Feb 18, 2020

Thank you so much your time and help. That cleared file worked perfectly, and ill make sure to consolidate large portions of empty space with arrays like you said. Appreciate it! Problem solved so I will go ahead and close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Visual Studio: ContextSwitchDeadlock
It sounds like you are doing this on the main UI thread in the app. The UI thread is responsible for pumping windows...
Read more >
Visual studio vb.net 4.0 Managed Debugging Assistant ...
Visual studio vb.net 4.0 Managed Debugging Assistant 'ContextSwitchDeadlock' ... When running my application in debug mode in VS I get this error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found