EvothingsWorkbench.exe unknow software exception

Ask, and ye shall receive.
User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: EvothingsWorkbench.exe unknow software exception

Postby micke » 11:21, 07 Feb 2015

Hi maluedo,

I have a fix for you to try out.

Edit file hyper/server/webserver.js

Find the function GetIpAddresses, and edit it to return an empty array. You can comment out the code in the function and add the line: return []

Like this:

Code: Select all

function GetIpAddresses()
{
/*
    var interfaces = OS.networkInterfaces()
    var addresses = []
    for (var interfaceName in interfaces)
    {
        for (var i in interfaces[interfaceName])
        {
            var address = interfaces[interfaceName][i]
            if (address.family == 'IPv4' && !address.internal)
            {
                addresses.push(address.address)
            }
        }
    }
    return addresses
*/
    return []
}


This will prevent OS.networkInterfaces() from being called, and should prevent the crash.

The IP-address displayed will be 127.0.0.1. You can still scan for the Workbench and connect using Evothings Client.

If you need to connect using the IP-address you can find it by opening a command window and enter the command: ipconfig

This will display the IP address of your network adapter.

It is difficult to detect in node.js if the OS is Windows XP. Looked for methods but found no reliable way. Hope this manual code patch can work for you for the time being.

Let me know how it works!

Mikael

maluedo
Posts: 5
Joined: 09:19, 03 Feb 2015

Re: EvothingsWorkbench.exe unknow software exception

Postby maluedo » 10:22, 09 Feb 2015

The workbench now start fine; I'll try the demo.


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 6 guests