- Home /
Question is off-topic or not relevant
Why does my build keep crashing?
Hello Comm-Unity! I have finished creating a project, it is all done, so I build it. It builds fine, so I open the .exe file, and it goes through the splash screen and goes to the main menu. I then click a button to load a new scene, using the new UI system, and the whole thing crashes, giving me the following error reports (I attached them to this post). I can't make heads or tails of this, so any help would be appreciated.link text
So, does your project works fine in the editor? Although I have no idea, I just want to say that I see some marshals and interops. Could it be that you are having data sharing problem between processes? I am also not sure why stack trace is not showing line numbers, maybe it is related to interops. Also, How do you change the scenes? What is your logic? $$anonymous$$aybe more info could be helpful.
Again, I have no idea right now =/
Hi @edcx, Thanks for the quick reply. As for what I use to load the scenes, I have some UI buttons that activate functions like the following:
public void LoadScene()
{
Application.LoadLevel("ThisIsAScene");
}
One thing that might be influencing things is that I am using a .dll file I downloaded: $$anonymous$$icrosoft.Office.Interop.PowerPoint, but everything works in the editor, so.... Thanks for your help!
Since you're using an external library. Will be best to check the .net version of the library and compare it to the version you're building. Just a guess but you can try making a build without the library and see if it still crashes.
Okay, I tried uploading error.log, but apparently the forums won't let you post .log files, so here is the link to the error log:
https://drive.google.com/drive/folders/0B7CRWarXBC-GbENtV0tXRlJrdEk
Once again, thank you for your help.
Please stop posting question about your Powerpoint integration problems. This is not related to Unity but most likely just a version incompatibility between the .NET / $$anonymous$$ono version Unity uses and the version that the Powerpoint wrappers require. It might even simply don't work with $$anonymous$$ono and only .NET. You posted already 4 or 5 questions all revolving around the same issue.
This time you didn't even mentioned that you trying to interop with $$anonymous$$S Powerpoint, yet the stacktrace clearly indicates a problem in the native / CO$$anonymous$$ wrapper. Specifically it crashes inside the $$anonymous$$icrosoft.Office.Interop.PowerPoint.ApplicationClass:get_Presentations method which is the getter of the "Presentations" property.
Dear @Bunny83, I am very sorry for being off-topic with my question, and you have actually helped me solve my issue, as I wasn't aware where the problem was. Because of this, I can now do research into the code of this method, and see what's going wrong with it. Once again, thank you, and sorry about all that. Have a nice day.
Cheers, Tiger27
Answer by DSebJ · Feb 14, 2017 at 01:20 AM
When you made the build, there is an option to select what scenes are included in the build. If your game is crashing when changing scenes, you may not have selected to include that scene in the actual build.
Dear @DSebJ, Thanks for the quick reply, and the helpful suggestion, but unfortunately, that answer does not work, as I had all of my scenes included in the build, and checked for them to be included in the build settings. Thanks for your help, any other suggestions?
Sorry, no other ideas. I'm assu$$anonymous$$g that this all works when you play it in the editor and you have no Errors in the console (Red exclamation marks)?
@DSebJ, nope everything seems to run fine in the editor, no errors that I can see. It all runs smoothly in the editor.
Answer by JamesGameDev · Feb 17, 2017 at 12:17 AM
Alright, I've, through trial and error, narrowed it down to one line of code:
p.Presentation pre = app.Presentations.Add (MsoTriState.msoTrue);
But I can't for the life of me figure out what's wrong with it. It's the same as what I found online, and it works in the editor. Any ideas?
Update: So after analyzing the ouput_log.txt file, I've found that Unity is crashing when this above line of code tries to access Microsoft's symbol server, which apparently it is unable to do. Does anyone know how to fix that?