exceptions are not shown in the console #581

Closed
opened 2026-01-29 16:43:25 +00:00 by claunia · 3 comments
Owner

Originally created by @FadyQJ on GitHub (Oct 26, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

I am not sure if this is a bug but under Ubuntu I am using:
app.UseDeveloperExceptionPage(); even outside if (env.IsDevelopment())

I am not seeing any exceptions thrown in the console. I only get:
Got disconnect! Reason: transport close

When I'm using windows it works correctly

Originally created by @FadyQJ on GitHub (Oct 26, 2020). Originally assigned to: @GregorBiswanger on GitHub. I am not sure if this is a bug but under Ubuntu I am using: `app.UseDeveloperExceptionPage();` even outside if (env.IsDevelopment()) I am not seeing any exceptions thrown in the console. I only get: Got disconnect! Reason: transport close When I'm using windows it works correctly
claunia added the bug label 2026-01-29 16:43:25 +00:00
Author
Owner

@FadyQJ commented on GitHub (Oct 31, 2020):

I noticed that what is causing this is the throw is being called in the async Task.Run(async () => { }) function
So there is some detachment going on once a new thread is created.

If I throw e.g. throw new System.ArgumentException("A", "B"); outside the Task.Run I get the error.
This is my first project using linux for C# as well as ASP.Net so this may be normal behavior for ASP

@FadyQJ commented on GitHub (Oct 31, 2020): I noticed that what is causing this is the throw is being called in the async Task.Run(async () => { }) function So there is some detachment going on once a new thread is created. If I throw e.g. `throw new System.ArgumentException("A", "B");` outside the Task.Run I get the error. This is my first project using linux for C# as well as ASP.Net so this may be normal behavior for ASP
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Author
Owner

@Yuvix25 commented on GitHub (Aug 24, 2023):

@GregorBiswanger I still have this issue. If I throw an error from the main thread (Configure), it shows up. But if it's thrown from an async task, (for example, Electron.App.Ready), it does not. Tried both with and without app.UseDeveloperExceptionPage(). Any idea how to fix this?

@Yuvix25 commented on GitHub (Aug 24, 2023): @GregorBiswanger I still have this issue. If I throw an error from the main thread (`Configure`), it shows up. But if it's thrown from an async task, (for example, `Electron.App.Ready`), it does not. Tried both with and without `app.UseDeveloperExceptionPage()`. Any idea how to fix this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#581