3F / vsSolutionBuildEvent

🎛 Event-Catcher with variety of advanced Actions to service projects, libraries, build processes, runtime environment of the Visual Studio, MSBuild Tools, and …
Other
79 stars 22 forks source link

Crash on 0.8.0 (unloaded projects) #20

Closed 3F closed 8 years ago

3F commented 10 years ago

Originally reported by: Rafael Cossovan (Bitbucket: navossoc, GitHub: navossoc)


Hey, me again...

I update to your new version yesterday, now every time I try to open the "Events solution" window it crash's.

Seems the problem occur only when you have unloaded projects on your solution. Otherwise, works fine.

Environment: Visual Studio 2013 Update 3 Windows 8.1 Update 1 x64

I'm attaching my crash log for you analyze.

PS: I forgot to mention, but I already see before a strange behavior when you unload projects, some path on environment variables changes.


3F commented 10 years ago

Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):


v0.8.1 contains current fixes and here's the changelog entry:

FIXED: Crashes, if solution contains the unloaded projects

changelog

3F commented 10 years ago

Original comment by Rafael Cossovan (Bitbucket: navossoc, GitHub: navossoc):


Built and tested on commit 2f0468e

This problem is fixed.

3F commented 10 years ago

Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):


Found, problem exist for all {67294A52-A4F0-11D2-AA88-00C04F688DDE} kind of projects

fixed with 5e072fe

debug release for testing: 2014.09.27_5e072fe.vsix

3F commented 10 years ago

Original comment by Rafael Cossovan (Bitbucket: navossoc, GitHub: navossoc):


Steps to reproduce the problem:

  1. Create a project "Win32 Console".
  2. Inside that solution, create a new project "Win32 Console".
  3. Unload some project.
  4. Now, try Builds -> Event Solution

IMG_27092014_103754.png

About testing, I have no idea how you can proceed. (maybe a virtual machine?) If you like, you can send me some test builds.

3F commented 10 years ago

Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):


Thanks for report

I found place where is crashed from your log:

#!log

SP       IP       Function
    00000000 00000001 UNKNOWN!EnvDTE.Project.get_FullName()+0x2
    0071E524 06598FDF UNKNOWN!net.r_eg.vsSBE.Environment+<get_DTEProjects>d__0.MoveNext()+0x9f
    0071E550 06598E2B UNKNOWN!net.r_eg.vsSBE.Environment.get_DTEProjectsList()+0x7b
    0071E57C 06598074 UNKNOWN!net.r_eg.vsSBE.UI.EventsFrm._executionOrder(Boolean)+0x4c
    0071E60C 065973A4 UNKNOWN!net.r_eg.vsSBE.UI.EventsFrm.EventsFrm_Load(System.Object, System.EventArgs)+0x2e4
    0071E640 67910AE9 System_Windows_Forms_ni!System.Windows.Forms.Form.OnLoad(System.EventArgs)+0x1a5

we work with upper layer DTEProjectsList <- DTEProjects in all UI components, and I missed catching for this layer (that's why I like the throws operator in Java!) so, you lucky again :) I'll fix soon

About problem: problem can be with EnvDTE.Project But I can't reproduce this. Please more detail what you do, step by step.

please note: currently I can't test this on VS2013 - see #10

stay in touch for quickly resolve this problem