Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Javascript error after auto bed compensation

    Scheduled Pinned Locked Moved
    General Discussion
    5
    16
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ajcraig99undefined
      ajcraig99
      last edited by

      I am able to probe 5 points using the bed compensation tool but as soon as the window appears to show results, it closes and displays the following error:

      I was using 2.01 beta firmware so tried downgrading to 1.21 which hasn't solved the problem.

      JavaScript Error
      
      A JavaScript error has occurred so the web interface has closed the connection to your board. It is recommended to 
      reload the web interface now. If this happens again, please contact the author and share this error message:
      
      Version: 1.21-RC4
      Message: Uncaught TypeError: Cannot read property 'getExtension' of null
      URL: http://192.168.1.11/js/dwc.js
      Line: 14:286325
      Error object: {}
      

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • ajcraig99undefined
        ajcraig99
        last edited by

        I have just run G29 to generate a a height map and it gave the same error when trying to display the results.
        Now any time I try to "Show Mesh Grid Heightmap" it crashes with the above error.

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          Which version of Duet Web Control are you running? With 2.01 firmware you should use either 1.21.2-dc42 or 1.22.

          Firmware 1.21-RC4 is not the same as firmware 1.21 release.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • ajcraig99undefined
            ajcraig99
            last edited by

            Just updated to 1.21.2-dc42 and still get the error

            JavaScript Error
            
            A JavaScript error has occurred so the web interface has closed the connection to your board. It is recommended to 
            reload the web interface now. If this happens again, please contact the author and share this error message:
            
            Version: 1.21.2-dc42
            Message: Uncaught TypeError: Cannot read property 'getExtension' of null
            URL: http://192.168.1.11/js/dwc.js
            Line: 15:296307
            Error object: {}
            

            General Info:

            Firmware Name:	RepRapFirmware for Duet 2 WiFi/Ethernet
            Firmware Electronics:	Duet WiFi 1.02 or later
            Firmware Version:	1.21 (2018-03-21)
            WiFi Server Version:	1.21RC4(08b3)
            Web Interface Version:	1.21.2-dc42
            
            1 Reply Last reply Reply Quote 0
            • ajcraig99undefined
              ajcraig99
              last edited by

              Have also updated the WIFI server to 1.21 to no avail.

              1 Reply Last reply Reply Quote 0
              • ajcraig99undefined
                ajcraig99
                last edited by

                Any suggestions?

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by

                  I don't know if this will help, but you could try pressing "Load factory defaults" followed by "Apply settings" on the Settings/User Interface page of DWC.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • ajcraig99undefined
                    ajcraig99
                    last edited by

                    Thanks, I will give that a shot when I get home tonight. I found it works no problem on my phone this morning so I updated java on my PC but that didn't work. Will report back

                    1 Reply Last reply Reply Quote 0
                    • ajcraig99undefined
                      ajcraig99
                      last edited by

                      Still no luck. It works fine on Edge browser though

                      dc42undefined 1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @ajcraig99
                        last edited by

                        @ajcraig99 said in Javascript error after auto bed compensation:

                        Still no luck. It works fine on Edge browser though

                        Have you tried DWC 1.22, available at https://github.com/chrishamm/DuetWebControl/blob/master/DuetWebControl-1.22.zip (follow that link, then press Download)?

                        Duet WiFi hardware designer and firmware engineer
                        Please do not ask me for Duet support via PM or email, use the forum
                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                        ajcraig99undefined 1 Reply Last reply Reply Quote 0
                        • ajcraig99undefined
                          ajcraig99 @dc42
                          last edited by

                          @dc42

                          Just installed 1.22, no luck.

                           × JavaScript Error
                          
                          A JavaScript error has occurred so the web interface has closed the connection to your board. It is recommended to reload the web interface now. If this happens again, please contact the author and share this error message:
                          
                          Version: 1.22
                          Message: Uncaught TypeError: Cannot read property 'getExtension' of null
                          URL: http://192.168.1.11/js/dwc.js
                          Line: 15:296307
                          Error object: {}
                          
                          JoergS5undefined 1 Reply Last reply Reply Quote 0
                          • JoergS5undefined
                            JoergS5 @ajcraig99
                            last edited by

                            @ajcraig99 There was a thread here:
                            https://github.com/mrdoob/three.js/issues/4927

                            with different possibilities, one of them chrome having problems with WebGL. And one quick check was to call
                            https://get.webgl.org/
                            whether this page works.

                            arefin86 created this issue in mrdoob/three.js

                            closed Error creating WebGL context #4927

                            ajcraig99undefined 1 Reply Last reply Reply Quote 1
                            • ajcraig99undefined
                              ajcraig99 @JoergS5
                              last edited by

                              @joergs5

                              Thankyou, although my graphics drivers were up to date, I reinstalled chrome which solved the issue.

                              JoergS5undefined 1 Reply Last reply Reply Quote 1
                              • JoergS5undefined
                                JoergS5 @ajcraig99
                                last edited by

                                @ajcraig99 That's fine. Sometimes reinstall or reboots solves a problem.

                                1 Reply Last reply Reply Quote 0
                                • gnatmanundefined
                                  gnatman
                                  last edited by

                                  Im getting a similar issue. Though my error reads;
                                  A JavaScript error has occurred so the web interface has closed the connection to your board. It is recommended to reload the web interface now. If this happens again, please contact the author and share this error message:

                                  Version 1.22
                                  Message: Uncaught TypeError:rememberedGCodes.indexOf is not a function
                                  url:http://ipaddressofprinter/js/dwc.jc
                                  Line: 1175:69
                                  Error object: {}

                                  it makes it hard to type in a gcode command to move the head. it does it after bed leveling too. I thought it might have been from my filament sensors but it wasn't from that.

                                  T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                                  • T3P3Tonyundefined
                                    T3P3Tony administrators @gnatman
                                    last edited by

                                    @gnatman your DWC is out of sync with the firmware i think. I would grade to the latest stable firmware and DWC:
                                    https://github.com/dc42/RepRapFirmware/releases/tag/2.01

                                    make sure you read the Whats New file for all releases in between your current one and 2.01:
                                    https://github.com/dc42/RepRapFirmware/blob/dev/WHATS_NEW.md

                                    www.duet3d.com

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Unless otherwise noted, all forum content is licensed under CC-BY-SA