Coder Social home page Coder Social logo

Comments (2)

Stokstaart avatar Stokstaart commented on July 17, 2024

Whoops! There was an uncaught exception...
TypeError: Cannot read property 'devices' of undefined
at Class.findDeviceByMacAddress (/home/pi/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:114:40)
at ChildProcess. (/home/pi/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:74:39)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

from mmm-networkscanner.

coatmaker618 avatar coatmaker618 commented on July 17, 2024

Sorry to bump this, but I'm seeing (very nearly) this exact issue! This happens whether the list of MAC/IP are populated or not.

My exact error message is below, and very similar:

MMM-NetworkScanner received SCAN_NETWORK
MMM-NetworkScanner is performing arp-scan
Whoops! There was an uncaught exception...
TypeError: Cannot read property 'network' of undefined
at Class.scanNetworkMAC (/home/server/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:36)
at Class.socketNotificationReceived (/home/server/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
at Socket. (/home/server/MagicMirror/modules/node_modules/node_helper/index.js:113:11)
at Socket.emit (events.js:198:13)
at ~/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
at process._tickCallback (internal/process/next_tick.js:61:11)
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

Notes:

  1. My code has fix d014539 yet still does this (on that line). This happens 100% of the time for me.
  2. I added "sudo chmod u+s /usr/sbin/arp-scan" making arp-scan able to be run without the user having root (the way ping is), this eventually causes a core dump! Unclear if related, will happily open another bug report if it is not.

from mmm-networkscanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.