Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html code point range error #368

Open
kquick opened this issue Jul 17, 2024 · 1 comment
Open

html code point range error #368

kquick opened this issue Jul 17, 2024 · 1 comment

Comments

@kquick
Copy link
Member

kquick commented Jul 17, 2024

My specification contains: offsets = Many 4 UInt32. When I use daedalus run it decodes correctly and I'm seeing:

...
   offsets: [ 4194304[32]
                 , 0[32]
                 , 16384[32]
                 , 0[32]
                 ]
...

but I get a blank window when trying to load HTML generated with the --traced-values --html arguments. The browser console has an error:

Uncaught RangeError: 4194304 is not a valid code point
    renderArray file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:846
    renderValueUntraced file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:1047
    renderValue file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:985
    renderStruct file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:781
    renderValueUntraced file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:1087
    renderValue file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:985
    renderStruct file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:781
    renderValueUntraced file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:1087
    renderValue file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:985
    renderStruct file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:781
    renderValueUntraced file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:1087
    renderValue file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:985
    renderStruct file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:781
    renderValueUntraced file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:1087
    renderValue file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:985
    main file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:553
    onload file:///home/kquick/work/DFAMS/daedalus/p6_cil.html:1

I believe it's trying to convert the value to a string, and a UInt32 might be a UTF-32 code point, but in this case, it's not a valid code point, thus this exception and with no error handling for this, the entire document is not rendered.

@kquick
Copy link
Member Author

kquick commented Jul 17, 2024

Firefox provided a "learn more" button linking to the following regarding the error: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_a_valid_code_point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant