Brouter finds no routes on WebAssembly when one type of the app assembly needs an assembly that isn't loaded
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #14336 của @yasmoradi — đã merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
Start with BrouteScanner.Discover and the Assembly.GetTypes() call mentioned in the stack trace; check the scanner's existing handling of ReflectionTypeLoadException and the WebAssembly failure described here. Reproduce with a type whose base type or interface is in an unloaded lazy loaded assembly. Done means route discovery skips the unresolvable type and the app starts with its routes available.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Brouter reads the app's types with Assembly.GetTypes() and catches ReflectionTypeLoadException, so a type that can't be loaded is skipped. On WebAssembly, Mono throws FileNotFoundException instead when a type's base type or interface lives in an assembly that isn't loaded yet, for example one marked BlazorWebAssemblyLazyLoad. The exception escapes Brouter.OnInitialized, so no route is found and the app breaks at startup.
I hit it in bit Boilerplate while lazy loading SignalR: SignalRInfiniteRetryPolicy implements IRetryPolicy from Microsoft.AspNetCore.SignalR.Client.Core, so that assembly has to stay eagerly loaded.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Client.Core, Version=10.0.14.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies.
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Bit.Brouter.BrouteScanner.aa(Assembly , HashSet`1 , List`1 )
at Bit.Brouter.BrouteScanner.Discover(Assembly , IReadOnlyList`1 )
at Bit.Brouter.Brouter.bS()
at Bit.Brouter.Brouter.OnInitialized()
- Ngôn ngữ chính
- C#
- Star
- 1.4k
- Fork
- 264
- Merge trung bình
- 10 giờ 31 phút
- Pull request đã merge (30 ngày)
- 405
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bitfoundation/bitplatform
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bitfoundation/bitplatform#14428 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
bitfoundation/bitplatform#14070 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add end-to-end tests that the lazy-loadable utility libraries work in a published, trimmed WebAssembly appCó thể đã có người làm @msynk đã nhận 1 ngày trước. Đang mởarea / infra
bitfoundation/bitplatform#14427 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix security issues in bit BrouterCó thể đã có người làm @yasmoradi đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 15/100
bitfoundation/bitplatform#14404 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix security issues in bit BswupCó thể đã có người làm @yasmoradi đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
bitfoundation/bitplatform#14403 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bitfoundation/bitplatform
Issue tương tự
-
possible bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
:1st_place_medal: good first issue :cowboy_hat_face: refactor :roller_coaster: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ApplETS/Backend-Hello#78 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Custom component in Summary2 no longer receives raw formData (regression from app-frontend v4)Đang mởstatus/triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Altinn/altinn-studio#21642 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:S P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nightscout/nocturne#3093 ·
Maintainer thường phản hồi trong vòng 1 ngày