Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with undefined: unsafe.Slice in oref0-setup.sh script #1440

Open
Maciej190004 opened this issue Dec 11, 2022 · 7 comments
Open

problem with undefined: unsafe.Slice in oref0-setup.sh script #1440

Maciej190004 opened this issue Dec 11, 2022 · 7 comments

Comments

@Maciej190004
Copy link

Maciej190004 commented Dec 11, 2022

Describe the bug
During instalation (or reconfiguration) of OpenAPS (thru oref0-setup.sh script) I was facing issue with "undefined: unsafe.Slice" it happen right after "golang.org/x/sys/unix" processing.
Few lines after "undefined: unsafe.Slice" scripts ends throwing out below text: "Couldn't go get medtronic"

Unfortunately I do not have exact screen because I manage with this problem

To Reproduce
run master version of oref0-setup.sh script

Expected behavior
Normally script should process and install OpenAPS

Screenshots
Unfortunately I do not have screens

Smartphone (please complete the following information):
This is not related to smartphone

Setup Information (please complete the following information):

  • Pump type ( Medtronic 722, v. 2.4A firmware
  • CGM type (Dexcom G6 via xDrip+)
  • Rig type ( This problem appear on Edison/Explorer Board and on Raspberry Pi with ADAFruit
  • oref0 version (0.7.1 [master])

Additional context
In my case I was able to solve this problem by upgrading "go" version to from 1.12.5 to 1.17 (in line 1194 in oref0-setup.sh)

@scottleibrand
Copy link
Contributor

I assume you were using master? I think we fixed this in dev. If you can confirm, we should probably try to get dev ready for another release.

@Maciej190004
Copy link
Author

Maciej190004 commented Dec 12, 2022 via email

@inventor96
Copy link

inventor96 commented Jan 3, 2023

I had this issue yesterday trying to do the upgrade from 0.7.0 to 0.7.1 on the master branch. Switching to the dev branch fixed it for me. I initially had some issue with some missing go packages, but after running rm -rf /usr/local/go/* and trying again, it worked just fine.

Here's my setup info:

  • Pump: Medtronic 722, firmware 2.4A
  • CGM: Dexcom G6 via xDrip+ on Android, plus Logger on the rig
  • Rig: Edison + Explorer board

For the record, this missing packages issue could easily be a one-off thing with my setup; my rig kept dying in the middle of the setup process, both on the master and dev branches. I think it was either due to watchdog and some other things I have running on my rig, or some intermittent issues with my network or internet connections that affected SSH. After I connected directly to the UART port, and stopped the cron and watchdog services, the setup finished without issues. As I took the unscientific approach and introduced multiple variables, it's hard to tell what the real issue was.

@melaniejellis
Copy link

Hi @inventor96 I ran into this same issue, used the DEV as suggested above and worked. Im running the same set up as you mentioned above except "logger on the rig"
Are you sending your data collected in xdrip to Nightscout via Railway instead of Herokuapp? and are you looping with OpenAPS?

@inventor96
Copy link

inventor96 commented Jan 14, 2023

Are you sending your data collected in xdrip to Nightscout via Railway instead of Herokuapp?

I use Nightscout hosted on Google Cloud Platform. Both xDrip+ and my rig are configured to sync with Nightscout.

are you looping with OpenAPS?

Yep. As far as I know, the only project that uses this oref0 is OpenAPS.

@scottleibrand
Copy link
Contributor

@inventor96 I believe FreeAPSX also uses oref0 directly, and AndroidAPS uses a port of it.

@mountrcg
Copy link
Contributor

@inventor96 I believe FreeAPSX also uses oref0 directly

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants