ContextSwitchDeadlock when opening 627kb rcnet file
See original GitHub issueWhat 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:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
@Mountain-Programmer: With #148 you can now load your unmodified file without problems. 👍
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.