dotnet / MobileBlazorBindings

Experimental Mobile Blazor Bindings - Build native and hybrid mobile apps with Blazor
MIT License
1.2k stars 168 forks source link

Error in Web UI on startup (Win + Android). #389

Open Kukks opened 3 years ago

Kukks commented 3 years ago

I tried searching, I promise @Eilon :D I'm unsure what causes this error, I tried allowing all exceptions to suspend but nothing seems to get caught. Any thoughts? I'm also building the common UI for WASM and Blazor Server with no issues. I am testing on Windows WPF and Android (probably similar errors on Apple stuff but can't test them)

image image

Eilon commented 3 years ago

Very weird. I feel like I've seen it before but I can't find any previous bug. Do you have a repro for this project? Or any info on the project structure that might be related to this?

Kukks commented 3 years ago

Very weird. I feel like I've seen it before but I can't find any previous bug. Do you have a repro for this project? Or any info on the project structure that might be related to this?

https://github.com/Kukks/BlazingPay on master should be able to repro on run. Debugging a bit and it seems to be on Main.razor, which is a simplified version of the hybrid template

Kukks commented 2 years ago

So it seems the culprit is LiveSharp (which enables hot reload for Blazor + Xamarin even on .net core 3). Once I removed the package, it deployed with no issues. cc @ionoy perhaps you know what went wrong?

Eilon commented 2 years ago

Oh that's interesting. If there's something we need to take into account in MBB to make this work I'd love to know.

Kukks commented 2 years ago

It was actually working quite well for me when I was last using MBB around 6-7months ago so it must be some general updates

On Fri, Jul 16, 2021, 18:33 Eilon Lipton @.***> wrote:

Oh that's interesting. If there's something we need to take into account in MBB to make this work I'd love to know.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/MobileBlazorBindings/issues/389#issuecomment-881573825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN357RAZCWNH53EJ3WBF53TYBNMZANCNFSM5AJLAYPQ .