What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Wrote a plugin that crashes ArcheBuddy. How to read logs?

Status
Not open for further replies.

mario6117

New Member
Joined
May 13, 2012
Messages
24
Reaction score
0
I've been working on an alternative gps system that smoothly transitions at corners instead of just facing to the next point.
Together with this, I've also implemented an alternative pathfinding solution.

Testing all of this out on a simple node-map (custom file format), ArcheBuddy just crashes after a few seconds and I get disconnected from ArcheAge.
Does anybody have an idea how I can read the logs that ArcheBuddy generates? I might be able to find what's wrong there.

When I just open it with notepad++ or notepad, it displays some weird symbols. So I guess it isn't a normal text format.

Thanks in advance.
 
Bumping this.

A lot of times it can be a simple exception that crashes your plugin and crashes Archebuddy. If you wrap the suspect code in try-catch you can catch the exception without issue.

However I've reached a point where I just can't figure it out without having an Exception message, because the Exception happens after I close the Window of my plugin, and all threads in my plugin seem to stop without issue. (My plugin opens a window.)

Hoping there is a way to read error logs.
 
Update:

You might be able to write a "catch everything" method that can help you catch exceptions that you can't wrap with try catch.

public void PluginRun() {
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
...
}

void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
Exception ex = (Exception)e.ExceptionObject;
Log(ex.ToString());
Log(ex.Message);
Log(ex.StackTrace);
}
 
Status
Not open for further replies.
Back
Top