Welcome to Our Community

Some features disabled for guests. Register Today.

CONTROL in MacOS/Linux: Window doesn't open

Discussion in 'Control Software' started by Graham Bamford, Feb 22, 2023.

  1. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    Hi.
    I am trying to install CONTROL onto my Mac computers. neither my iMac nor my MacBook can actually open the program once installed. Is there a known problem with iOS?

    Cheers

    Graham
     
    doublejosh likes this.
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
  3. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    Hi. Running Monterey on both iMac and MacBook. fully updated. The screen shot is as far as I get - just the heading on the top line saying that I am in the program....which I ain't. 58B34EF4-8A93-4FC3-A7CA-C18041640A85.jpeg
     
  4. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    Most recent is ver 1.0.351. I tried ver.1.0.350....same result. Loading the .dmg file, is that right?
     
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Going back one revision is not quite an Older version :) both was released yesterday. Try one from like 3-4 months ago as a test please
     
  6. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    Hi Peter.
    Version 1.0.332, October 2022 installs correctly.

    Cheers

    Graham
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    OK thanks, we will investigate and keep an eye out for other reports. In between then and now quite a bit changed, OpenBuilds-CONTROL/CHANGELOG.txt at master · OpenBuilds/OpenBuilds-CONTROL - so might be hard to pinpoint. If you have one more moment, can you see if 1.0.348/49 thereabouts works for you - just before the Node18 upgrades - lets just see if its something recent or further back
     
  8. Manfredo

    Manfredo New
    Builder

    Joined:
    Jan 11, 2022
    Messages:
    16
    Likes Received:
    8
    Good day, I seem to be having the same issue. I can confirm that version .348 works fine but .351 does not. I'm on MAC OS Big Sur 11.7.4 on a MacBook Pro
     
  9. Manfredo

    Manfredo New
    Builder

    Joined:
    Jan 11, 2022
    Messages:
    16
    Likes Received:
    8
    OK, I couldn't find .349 but with .350 I have the same issue. if I use .348 it works fine
     
    Peter Van Der Walt likes this.
  10. jginvc

    jginvc New
    Builder

    Joined:
    Feb 22, 2023
    Messages:
    12
    Likes Received:
    0
    First I had not used my machine in a log time due to medical issues and when I turned it on for the first time openbuilds control could no longer detect the CNC on the serial port. So I connected to the serial port using a terminal program and no problem. I tried everything and nothing could get it to connect. Openbuilds also did not auto update to the latest version when I checked the website so I manually upgraded to the latest version: 1.0.352. Now it doesn't launch the icon that allows me to open the gui! sigh, so I got fed up and did a complete reinstall of Ubuntu and openbuilds. I even moved my CNC to a different USB port. Same problem. It does not launch the little icon that allows me to open the gui. I can check the processes running and openbuilds is definitely running. I don't know what to try next. Other than load an earlier version? Any help is greatly appreciated.
     
  11. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Possibly related to Cannot load in CONTROL in IOS
    You can try an older version.

    But if you have a moment, run CONTROL from a terminal so we can see what the logs say - if there's any errors. Saves some time not having to spin up an Ubuntu VM to test
     
  12. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    Same as Manfredo. .348 works fine, .349 can't be found, and .350 doesn't load. I am just happy that it wasn't just me
     
    Peter Van Der Walt likes this.
  13. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Update: V1.0.359 or later = FIXED

    [strikethrough]Thanks all, we will investigate. Seems to affect Mac and Linux. Use 348 for now, will post once found and fixed[/strikethrough]
     
    doublejosh likes this.
  14. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    Thanks Peter. Glad to be if assistance in identifying problems, and appreciate the fast and friendly response.
    Cheers mate.
     
  15. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    If you could have a go at running CONTROL from Terminal, so we can see if there are any errors thrown it could help :)
     
  16. Manfredo

    Manfredo New
    Builder

    Joined:
    Jan 11, 2022
    Messages:
    16
    Likes Received:
    8
    I think I did it right, does this help?
    -----------------
    Require stack:

    - /Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/dist/index.js

    - /Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/node_modules/serialport/dist/serialport.js

    - /Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/node_modules/serialport/dist/index.js

    - /Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/index.js

    -

    at Module._resolveFilename (node:internal/modules/cjs/loader:1002:15)

    at n._resolveFilename (node:electron/js2c/browser_init:2:109797)

    at Module._load (node:internal/modules/cjs/loader:848:27)

    at f._load (node:electron/js2c/asar_bundle:2:13330)

    at Module.require (node:internal/modules/cjs/loader:1068:19)

    at require (node:internal/modules/cjs/helpers:103:18)

    at Object.<anonymous> (/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/dist/index.js:22:33)

    at Module._compile (node:internal/modules/cjs/loader:1174:14)

    at Module._extensions..js (node:internal/modules/cjs/loader:1229:10)

    at Module.load (node:internal/modules/cjs/loader:1044:32) {

    code: 'MODULE_NOT_FOUND',

    requireStack: [

    '/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/dist/index.js',

    '/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/node_modules/serialport/dist/serialport.js',

    '/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/node_modules/serialport/dist/index.js',

    '/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/index.js',

    undefined

    ]

    }

    TypeError: Cannot read properties of undefined (reading 'address')

    at Server.<anonymous> (/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/index.js:99:41)

    at Object.onceWrapper (node:events:627:28)

    at Server.emit (node:events:525:35)

    at emitListeningNT (node:net:1519:10)

    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

    TypeError: Cannot read properties of undefined (reading 'address')

    at Server.<anonymous> (/Applications/OpenBuildsCONTROL.app/Contents/Resources/app.asar/index.js:103:41)

    at Object.onceWrapper (node:events:627:28)

    at Server.emit (node:events:525:35)

    at emitListeningNT (node:net:1519:10)

    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
     
  17. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Thank you, yes, that does help us find where to start looking, and always nice when you start digging in to have a couple customer logs to compare to make sure you can replicate the exact issue.
     
    #17 Peter Van Der Walt, Feb 23, 2023
    Last edited: Mar 8, 2023
    doublejosh likes this.
  18. Manfredo

    Manfredo New
    Builder

    Joined:
    Jan 11, 2022
    Messages:
    16
    Likes Received:
    8
    Great, no worries. Please report back if anything else is needed and will try to get that for you. Thanks for all your support! if anyone else wants to try it, these are the steps to run the app in terminal


    • Locate the application in Finder.
    • Right-click the application and select "Show Package Contents."
    • Locate the executable file. Typically, this is in Contents → MacOS, and has the same name as the application.
    • Drag that file onto your blank Terminal command line. Hit Enter to launch that program.
    • Leave your Terminal window open while you use the application. Quit the application to return to regular Terminal operations.
     
  19. jginvc

    jginvc New
    Builder

    Joined:
    Feb 22, 2023
    Messages:
    12
    Likes Received:
    0
    If by 'CONTROL' you meant "openbuildscontrol" in /bin, this is what I get.
    Error: Cannot find module 'debug'
    Require stack:
    - /opt/OpenBuildsCONTROL/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/dist/index.js
    - /opt/OpenBuildsCONTROL/resources/app.asar/node_modules/serialport/dist/serialport.js
    - /opt/OpenBuildsCONTROL/resources/app.asar/node_modules/serialport/dist/index.js
    - /opt/OpenBuildsCONTROL/resources/app.asar/index.js
    -
    at Module._resolveFilename (node:internal/modules/cjs/loader:1002:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:109797)
    at Module._load (node:internal/modules/cjs/loader:848:27)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1068:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/opt/OpenBuildsCONTROL/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/dist/index.js:22:33)
    at Module._compile (node:internal/modules/cjs/loader:1174:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1229:10)
    at Module.load (node:internal/modules/cjs/loader:1044:32) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/opt/OpenBuildsCONTROL/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/dist/index.js',
    '/opt/OpenBuildsCONTROL/resources/app.asar/node_modules/serialport/dist/serialport.js',
    '/opt/OpenBuildsCONTROL/resources/app.asar/node_modules/serialport/dist/index.js',
    '/opt/OpenBuildsCONTROL/resources/app.asar/index.js',
    undefined
    ]
    }
    Error: listen EADDRINUSE: address already in use :::3001
    at Server.setupListenHandle [as _listen2] (node:net:1485:16)
    at listenInCluster (node:net:1533:12)
    at Server.listen (node:net:1621:7)
    at Object.<anonymous> (/opt/OpenBuildsCONTROL/resources/app.asar/index.js:98:59)
    at Module._compile (node:internal/modules/cjs/loader:1174:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1229:10)
    at Module.load (node:internal/modules/cjs/loader:1044:32)
    at Module._load (node:internal/modules/cjs/loader:885:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at node:electron/js2c/browser_init:2:115703 {
    code: 'EADDRINUSE',
    errno: -98,
    syscall: 'listen',
    address: '::',
    port: 3001
    }
    Error: listen EADDRINUSE: address already in use 0.0.0.0:3000
    at Server.setupListenHandle [as _listen2] (node:net:1485:16)
    at listenInCluster (node:net:1533:12)
    at doListen (node:net:1682:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
    code: 'EADDRINUSE',
    errno: -98,
    syscall: 'listen',
    address: '0.0.0.0',
    port: 3000
    }
     
  20. Graham Bamford

    Builder

    Joined:
    Feb 21, 2023
    Messages:
    7
    Likes Received:
    2
    This is somewhat out of my field, but running it with Manfredo's instructions, I got this result for 1.0.354.
     

    Attached Files:

  21. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Yes, as mentioned in the tread linked in the earlier reply - we are looking into it.
    Not something directly under our control - something about latest versions of electron/electron-builder not handling depencies inside the asar package correctly
     
    doublejosh likes this.
  22. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
     
  23. Manfredo

    Manfredo New
    Builder

    Joined:
    Jan 11, 2022
    Messages:
    16
    Likes Received:
    8
    Hi all, just curious if there was anything new on this? No worries if there isn’t, just eagerly waiting for multi-pass on the surfacing wizard :)
     
    doublejosh likes this.
  24. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Not yet. Issue isn't our part of the code (which is usually a quick fix as its under our control), but seems to be a bug in Electron-builder (tool we make use of to build CONTROL as a cross-platform application)
    Github issue ASAR doesn't contain Serialport's dependency modules on Linux/Mac (works fine on Windows) · Issue #7451 · electron-userland/electron-builder and several commits worth of testing ways around it (Commits · OpenBuilds/OpenBuilds-CONTROL - commits with the word Test in it - at this point in time almost all relate to this issue)

    Sadly when dealing with issues with upstream dependencies it takes a while to convince the developers there is a problem, then to disect exactly where the problem is - to get them to fix it.

    You could try virtualbox+WindowsVM for now, or CONTROL v1.0.348 (not ideal I know, but Electron-builder 24 fixed the Windows compile issue we had (larger proportion of user base), but broke Linux/Mac - rock and a hard place :) )
     
    David the swarfer likes this.
  25. doublejosh

    Builder

    Joined:
    Jan 16, 2023
    Messages:
    1
    Likes Received:
    1
    This thread really needs this link...
    v1.0.348

    Releases · OpenBuilds/OpenBuilds-CONTROL

    NOTE: the web client will not allow using this version.
    Eventually, I realized you can save the gcode to a file and load it through the old client.
    I hope that's helpful to someone.
     
    #25 doublejosh, Mar 6, 2023
    Last edited: Mar 7, 2023
    Graham Bamford likes this.
  26. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Good to have it here too, but we did update software.openbuilds.com to show 1.0.348 on the Mac and Linux tabs.

    Sure we could modify CAM to do the same

    As for saving vs transferring, read the text on the window - it does advise you to use the Save button :) and adds a second nice big green save button for you right there.
     
  27. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    Great news you all, root cause of the bug has (finally!) been found, and main bug fixed! To accomodate the fix we have to apply and test a couple changes to other sections of the codebase, but good chance that V1.0.359 will be available later today or tomorrow - and brings back support for Linux and MacOS !
     
    doublejosh and sharmstr like this.
  28. Manfredo

    Manfredo New
    Builder

    Joined:
    Jan 11, 2022
    Messages:
    16
    Likes Received:
    8
    That's FANTASTIC news!! Thanks a ton for working on this.
     
    Peter Van Der Walt likes this.
  29. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,834
    Likes Received:
    4,275
    doublejosh and sharmstr like this.
  30. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Hey Peter - Trying to get .360 to run on debian 11 bullseye. The ui wont open. What can I do to debug this? I'm not a linux user but saw a report on FB group that .360 wasnt working so I thought I'd test it out.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice