-
Notifications
You must be signed in to change notification settings - Fork 16
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
Website broken on SVG import, VM1343:1797 Uncaught TypeError: Cannot read property 'toFixed' of undefined #40
Comments
Update: tried in incognito mode, I see the default Chillipepr SVG import works fine, as soon as I drag and drop my own SVG (just a small rectangle 20x100) the whole site falls over Attached is a screenshot of the console output and the SVG I drag+dropped over after doing a new incognito mode browser, and logging in via google. Note - github wont let me attach a .svg file so I've zipped it purely for attaching to this issue |
Note - the test Chillipepr SVG works fine, something up with imported SVGs |
I just tried your file and get same results. Why don't you try converting On Fri, May 13, 2016 at 5:48 AM, Leigh [email protected] wrote:
|
Also getting |
Update: It worked on the tinyg workspace, but not on grbl or jpadie |
Hmm. I have not tried opening an SVG in a while. Are there other obvious
errors you're getting? Do other SVG's work?
…On Fri, Nov 2, 2018 at 6:38 AM Joseph Paul ***@***.***> wrote:
Update: It worked on the tinyg workspace, but not on grbl or jpadie
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHidbUWOqpgkWiFsmftivBxyPhWE3yOVks5urEq8gaJpZM4Id-BS>
.
|
@jsphpl my two cents here, be careful your SVG's do not include groupings... could you possibly attach your SVG here for me to look at? |
Yeah, the SVG interpreter is pretty lightweight, so you have to ungroup
everything in inkscape (or other app) first. The thing is, the sample
Chilipeppr SVG definitely was working, so it probably is some other error
that popped up recently.
…On Fri, Nov 2, 2018 at 9:10 AM dgtlmoon ***@***.***> wrote:
@jsphpl <https://github.com/jsphpl> my two cents here, be careful your
SVG's do not include groupings... could you possibly attach your SVG here
for me to look at?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHidba_u5flgkbdXO0LLfir1frFR_sIvks5urG5YgaJpZM4Id-BS>
.
|
So here's everything printed to the console with log level 'error' when reloading on the jpadie workspace after clearing all application data:
Then when selecting the example SVG from the menu, the following error appears:
And again after choosing "mm" as the unit for the import:
Repeating the entire procedure with adblocker disabled yields the same result. |
Loading an SVG file with the following content also results in the <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
<rect width="200" height="200" style="stroke:#000000;stroke-width:1" />
</svg>
|
Yeah, something in that screenshot isn't right. That does indicate a
JavaScript error is happening on load of your page. Have you tried a
different browser? Or, what browser are you using?
…On Fri, Nov 2, 2018 at 2:20 PM Joseph Paul ***@***.***> wrote:
Loading an SVG file with the following content also results in the toFixed
error:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
<rect width="200" height="200" style="stroke:#000000;stroke-width:1" />
</svg>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHidbQEbzJCtdbUvkt1A4dY_USNTyiBZks5urLckgaJpZM4Id-BS>
.
|
The above results stem from elston-chromium. Same symptoms (graphical glitches and toFixed error) happen in Firefox 63. Both on Mac. |
@chilipeppr looks like a script is missing |
Yeah, that script is referenced by some different widgets, but it isn't
needed. That should also not kill any further JavaScript from executing,
which is what that screenshot showed. I do recall in the past when folks
get corrupted localstorage for the chilipeppr.com domain that can kill
further processing, but he's seeing it on multiple browsers and I can't
reproduce it on my side.
…On Sat, Nov 3, 2018 at 1:07 AM dgtlmoon ***@***.***> wrote:
@chilipeppr <https://github.com/chilipeppr> looks like a script is
missing GET
http://chilipeppr.com/js/embed/highlight.pack.js?_=1541192399433 404 (Not
Found)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHidbad0LRb-N-eNcFzfh3szgxPqkudUks5urU6ngaJpZM4Id-BS>
.
|
@chilipeppr aaah yes.. the @jsphpl are you totally sure you cleared |
@jsphpl so what was the outcome after you cleared it then? |
Everything i posted above happened with completely cleared storage. So: Clear storage, refresh page, report results |
Site seems totally broken, I'm unable to use, there is no 3D view.
my localStorage and SessionStorage is empty, I have tried deleting all cookies, logging out and logging in again
The text was updated successfully, but these errors were encountered: