Skip to content

Error: Undefined symbol x #1172

@Evan-CTL

Description

@Evan-CTL

Now that sentry is connected to 3Demos it’s throwing errors that used to be overlooked. In this case there is a mathJS error caught in Function.svelte. The example before uses the parameters from this link: https://comic.ctl.columbia.edu/?Y3VycmVudENoYXB0ZXI9SG93K1RvJnNjYWxlPTAuMzQmc2hvd1BhbmVsPWZhbHNlJm9iajBfa2luZD1ncmFwaCZvYmowX2NvbG9yPSUyMzBkMDg4NyZvYmowX3BhcmFtc19hPS0yJm9iajBfcGFyYW1zX2I9MiZvYmowX3BhcmFtc19jPS1zcXJ0JTI4NCstK3glNUUyJTI5Jm9iajBfcGFyYW1zX2Q9c3FydCUyODQrLSt4JTVFMiUyOSZvYmowX3BhcmFtc196PXNxcnQlMjh4JTVFMislMkIreSU1RTIlMjkmb2JqMF9wYXJhbXNfdDA9MCZvYmowX3BhcmFtc190MT0xJm9iajFfa2luZD12ZWN0b3Imb2JqMV9jb2xvcj0lMjMwZDA4ODcmb2JqMV9hbmltYXRpb249dHJ1ZSZvYmoxX3BhcmFtc19hPWNvcyUyOHQlMjkmb2JqMV9wYXJhbXNfYj1zaW4lMjh0JTI5Jm9iajFfcGFyYW1zX2M9MSZvYmoxX3BhcmFtc194PTAmb2JqMV9wYXJhbXNfeT0wJm9iajFfcGFyYW1zX3o9MCZvYmoxX3BhcmFtc190MD0wJm9iajFfcGFyYW1zX3QxPTIrcGk=

It’s not easy to trace the cause in production due to the bundling, but running locally I managed to pin it down to the following:

media/src/objects/Function.svelteupdateBoxes()math.evaluate(c)

The x variable in the formula string is not recognized. This error might be triggered by other objects, but this is the source of the error in the URL above.
Notably: This bug does not seem to hinder the loading or use of the web page.

A Jira ticket has been opened for this issue
https://columbiactl.atlassian.net/browse/YCV-157

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions