Closed Bug 1894720 Opened 1 year ago Closed 1 year ago

Error upon interaction with console error message

Categories

(DevTools :: Console, defect)

Firefox 125
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1888645

People

(Reporter: erithax, Unassigned)

Details

Attachments

(1 file)

Attached image firefoxfault.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

Throwing an error in Blazor Webassembly causes an error message in the console. Left click interact with this message in the console. Right click interactions work.

Actual results:

The original correct Blazor error message changes into

[DEVTOOLS ERROR] We’re sorry, we couldn’t render the message. This shouldn’t have happened - please file a bug at https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Console with the message metadata in the description.

There is a 'copy message metadata to clipboard' button (see attached image) to assist in reporting the fault, but unfortunately it doesn't work.

//// Original message > right click > save as on CHROME ////
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
System.InvalidOperationException: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
at Microsoft.AspNetCore.Components.ComponentFactory.<>c__DisplayClass9_0.<CreatePropertyInjector>g__Initialize|1(IServiceProvider serviceProvider, IComponent component)
at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType, IComponentRenderMode callerSpecifiedRenderMode, Nullable1 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame[] frames, Int32 frameIndex, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange`1 newTree)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
Dt @ blazor.webassembly.js:1
(anonymous) @ invoke-js.ts:176
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
l.javaScriptExports.complete_task @ managed-exports.ts:142
(anonymous) @ marshal-to-cs.ts:335
Promise.then (async)
mo @ marshal-to-cs.ts:329
(anonymous) @ marshal-to-cs.ts:83
(anonymous) @ invoke-js.ts:236
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
l.javaScriptExports.complete_task @ managed-exports.ts:142
(anonymous) @ marshal-to-cs.ts:335
Promise.then (async)
mo @ marshal-to-cs.ts:329
(anonymous) @ marshal-to-cs.ts:83
(anonymous) @ invoke-js.ts:202
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
l.javaScriptExports.complete_task @ managed-exports.ts:142
(anonymous) @ marshal-to-cs.ts:335
Promise.then (async)
mo @ marshal-to-cs.ts:329
(anonymous) @ marshal-to-cs.ts:83
(anonymous) @ invoke-js.ts:177
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
(anonymous) @ invoke-cs.ts:184
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
vn @ blazor.webassembly.js:1
(anonymous) @ invoke-js.ts:233
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
(anonymous) @ invoke-cs.ts:184
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
vn @ blazor.webassembly.js:1
(anonymous) @ invoke-js.ts:233
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
(anonymous) @ invoke-cs.ts:184
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
vn @ blazor.webassembly.js:1
(anonymous) @ invoke-js.ts:233
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
(anonymous) @ invoke-cs.ts:184
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
vn @ blazor.webassembly.js:1
(anonymous) @ invoke-js.ts:233
xl @ invoke-js.ts:276
$func349 @ 00b217ca:0x1fab3
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2503 @ 00b217ca:0xbe2fc
$func1873 @ 00b217ca:0x9a3c2
$func349 @ 00b217ca:0x1fb37
$func245 @ 00b217ca:0x1bf5a
$func238 @ 00b217ca:0xf141
$func272 @ 00b217ca:0x1d178
$func3184 @ 00b217ca:0xe8616
$func2504 @ 00b217ca:0xbe36c
$func2510 @ 00b217ca:0xbeb90
$func2534 @ 00b217ca:0xc11e7
$mono_wasm_invoke_method_bound @ 00b217ca:0xa4f9
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.3.02g1roxema.js:8
kr @ invoke-cs.ts:273
l.javaScriptExports.call_entry_point @ managed-exports.ts:60
Bc @ run.ts:44
callEntryPoint @ blazor.webassembly.js:1
mn @ blazor.webassembly.js:1
await in mn (async)
fn @ blazor.webassembly.js:1
An @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1

//// original message > right click > copy message on FIREFOX ////
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
System.InvalidOperationException: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
at Microsoft.AspNetCore.Components.ComponentFactory.<>c__DisplayClass9_0.<CreatePropertyInjector>g__Initialize|1(IServiceProvider serviceProvider, IComponent component)
at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType, IComponentRenderMode callerSpecifiedRenderMode, Nullable1 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame[] frames, Int32 frameIndex, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange`1 newTree)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue() blazor.webassembly.js:1:46958

//// original message > right click > copy object on FIREFOX ////
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
System.InvalidOperationException: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
at Microsoft.AspNetCore.Components.ComponentFactory.<>c__DisplayClass9_0.<CreatePropertyInjector>g__Initialize|1(IServiceProvider serviceProvider, IComponent component)
at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType, IComponentRenderMode callerSpecifiedRenderMode, Nullable1 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame[] frames, Int32 frameIndex, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange`1 newTree)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

Expected results:

Don't error.

Thanks for the report erithax

This looks similar to Bug 1888645 , which I'm about to fix.
I'm closing this bug as a duplicate

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1888645
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: