• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

Web Page Script stopped Responding...

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 2.2k Views 1 Watching
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.
  • S Offline
    skywatch
    last edited by 19 Jul 2017, 16:08

    HI,

    Under win10 64bit with firefox ver 54.0.1 (32bit) I get messages after some time saying that a script has stopped responding and a choice to contiune, stop the script or shutdown the page.
    It has happened enoughto notice it now, I'll try and connect the gateway/controller pi to a monitor and see if I get the same issues...

    J 1 Reply Last reply 20 Jul 2017, 15:22 Reply Quote 0
    • J Offline
      jkandasa @skywatch
      last edited by 20 Jul 2017, 15:22

      @skywatch For now I do not have windows 10 setup. Can you post the screenshot? Do you see any error on mycontroller.log?

      1 Reply Last reply Reply Quote 0
      • S Offline
        skywatch
        last edited by skywatch 20 Jul 2017, 16:10

        The following is repeated lots throught the log.......

        2017-07-19 16:39:00,087 ERROR [Thread-7] [org.mycontroller.standalone.message.MessageMonitorThread:119] Throws exception while processing!, [RawMessage(gatewayId=3, data=null, subData=out_rpiagent/rpi-gpio/temperature_ds18b20/C_SET/V_TEMP/0, isTxMessage=false, networkType=MY_CONTROLLER, timestamp=1500478740018)]
        java.lang.NumberFormatException: For input string: "null"
        	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
        	at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
        	at java.lang.Double.parseDouble(Double.java:538)
        	at java.lang.Double.valueOf(Double.java:502)
        	at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:100)
        	at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95)
        	at org.mycontroller.standalone.message.McMessageEngine.updateSensorVariable(McMessageEngine.java:886)
        	at org.mycontroller.standalone.message.McMessageEngine.recordSetTypeData(McMessageEngine.java:970)
        	at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:108)
        	at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:1090)
        	at org.mycontroller.standalone.message.McMessageUtils.sendToMcMessageEngine(McMessageUtils.java:662)
        	at org.mycontroller.standalone.provider.mc.McProviderBridge.executeRawMessage(McProviderBridge.java:59)
        	at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:577)
        	at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:107)
        	at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:182)
        	at java.lang.Thread.run(Thread.java:745)
        

        The error message is as follows......

        Chrome://ublock0/content/js/contentscript.js:1362
        Hope that helps you find the problem (maybe not connected though?)

        J 1 Reply Last reply 20 Jul 2017, 17:42 Reply Quote 0
        • J Offline
          jkandasa @skywatch
          last edited by 20 Jul 2017, 17:42

          @skywatch
          Yes, it is not connected, but this messages from MCAgent, data as null. It supposed should not be.

          RawMessage(gatewayId=3, data=null, subData=out_rpiagent/rpi-gpio/temperature_ds18b20/C_SET/V_TEMP/0, isTxMessage=false, networkType=MY_CONTROLLER, timestamp=1500478740018)
          

          Do you have ds18b20 attached with your RPI? If no please go and disable temperature_ds18b20 on mcagent/conf/devices.yaml.
          You can disable all the devices which are not in use. restart mcagnet.

          When you update this, this issue might get resolved, http://forum.mycontroller.org/topic/173/high-memory-usage-is-this-normal/3

          1 Reply Last reply Reply Quote 0
          • S Offline
            skywatch
            last edited by skywatch 20 Jul 2017, 18:57

            Thanks for the fast reply.

            I have done as you said and set them all to 'false' (except the internal ones which I need)....

            I'll see how it goes and I will surely let you know one way or the other! 😉

            Now another question, is there anything in MYC that might affect the normal functioning of PWM in physical pin 11?

            J 1 Reply Last reply 21 Jul 2017, 05:26 Reply Quote 0
            • J Offline
              jkandasa @skywatch
              last edited by 21 Jul 2017, 05:26

              @skywatch said:

              Now another question, is there anything in MYC that might affect the normal functioning of PWM in physical pin 11?

              I see physical pin 11 is GPIO 0, which is used on default example configuration. So this will affect your PWM on physical number 11.
              For Pin details please refer, http://pi4j.com/pin-numbering-scheme.html

              - id: sample_digital_in_gpio_0
                name: Sample digital input switch
                type: DIGITAL_IN
                enabled: false
                properties:
                  pin: gpio 0
                  pull_resistance: pull_up
                  debounce_interval: 100
              

              To recover back to original function, disable sample_digital_in_gpio_0 on mcagent/conf/devices.yaml and reboot your PI.

              1 Reply Last reply Reply Quote 0
              • S Offline
                skywatch
                last edited by 21 Jul 2017, 07:20

                Physical pin 11 is GPIO17. https://pinout.xyz/#

                I ask because on all my rpi I have added temperature conrtolled fan with PWM control. They all work, except on the one running MYC. So I thought I would ask if there was any conflict somewhere? Hmmm...Just a thought but would McAgent block another python program getting the cpu temperature? That would cause a problem too.....

                J 1 Reply Last reply 21 Jul 2017, 09:11 Reply Quote 0
                • J Offline
                  jkandasa @skywatch
                  last edited by 21 Jul 2017, 09:11

                  @skywatch Yes, MCAgent uses the same pin(Physical pin 11 is GPIO17). When you disable this pin on mcagent/conf/devices.yaml no need to worry.

                  • MCAgent uses pi4j library to access gpio pins.
                  • pi4j follows two type of pin mapping.
                    • WiringPi Pin Numbering Scheme (Default)
                    • Broadcom Pin Numbering Scheme
                  • by default uses WiringPi Pin Numbering Scheme, where physical pin number 11 is gpio 0
                  • kindly read this page for more information: http://pi4j.com/pin-numbering-scheme.html

                  Just a thought but would McAgent block another python program getting the cpu temperature?

                  I believe it won't. Do you face any issue?

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    skywatch
                    last edited by 13 May 2018, 13:04

                    Just setting up again and tried this - No problem at all! - Thank you!

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post

                    0

                    Online

                    619

                    Users

                    531

                    Topics

                    3.4k

                    Posts
                    Copyright © 2015-2025 MyController.org | Contributors | Localization