GithubHelp home page GithubHelp logo

Comments (7)

wldevries avatar wldevries commented on July 30, 2024

Also not only this happens, but all Exceptions logged this way are bunched into the same crash group.

from hockeysdk-windows.

wldevries avatar wldevries commented on July 30, 2024

Okay I tried the HockeyClient.DescriptionLoader, but it seems to be something different. It should provide the description that the user types.

from hockeysdk-windows.

mihailsm avatar mihailsm commented on July 30, 2024

HockeyClient.SetExceptionDescriptionLoader API is controlling the log tab content, it is not affecting the crash description. @wldevries, could you please clarify what app type are you using (WPF, UWP, WinRT, etc) and provide a code sample that reproes this issue so that we can work on it on our side?

from hockeysdk-windows.

wldevries avatar wldevries commented on July 30, 2024

I'm using the WPF app type. The following is in my App.Startup event handler:

        //configure HockeySDK client
        HockeyClient.Current.Configure("{app id}")
            .RegisterCustomDispatcherUnhandledExceptionLogic(ex => this.Shutdown(-1))
            .RegisterCustomUnhandledExceptionLogic(ex => this.Shutdown(-1));

        // These handlers will also log first chance exceptions such as the cannot connect to BtsServer
        //.RegisterCustomUnobserveredTaskExceptionLogic(ex => HandleUnObservedTaskException(ex))
        //.RegisterDefaultUnobservedTaskExceptionHandler();

        (HockeyClient.Current as HockeyClient).SetContactInfo(Environment.MachineName, null);

        //send stored crashlogs to HockeyApp server
        await HockeyClient.Current.SendCrashesAsync();

And the following is how I log an Exception. Note that this is not how we use it in our application, but it has the same effect. The description of the Crash will be a single '-'.

    private void Crash(object sender, RoutedEventArgs e)
    {
        try
        {
            throw new InvalidOperationException("Something bad happened here");
        }
        catch (Exception ex)
        {
            (HockeyClient.Current as HockeyClient)?.HandleException(ex);
            Environment.Exit(-1);
        }
    }

The reason we do this is because the Prism library swallows any Exceptions that occur in DelegateCommand and the navigation system. Because the Exceptions are handled by Prism they are not picked up by AppDomain.CurrentDomain.UnhandledException nor by Dispatcher.UnhandledException.

from hockeysdk-windows.

mihailsm avatar mihailsm commented on July 30, 2024

Thanks, @wldevries. Acknowledge the issue, we will be working on fixing it.

from hockeysdk-windows.

 avatar commented on July 30, 2024

Please note that reporting non fatal reports like unhandled exceptions is currently not officially supported but we are working on it. One limitation you should be aware of, is the API rate limit of 60 requests per minute. So sending a lot of non fatal errors could cause not getting the fatal errors in time. The SDKs will try to resend pending data later if the server rejected it.

from hockeysdk-windows.

wldevries avatar wldevries commented on July 30, 2024

Actually to us these errors are fatal, we even fatally fail manually on navigation errors in Prism.

from hockeysdk-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.