05-14-2018 09:39
05-14-2018 09:39
I am unable to get the OS 2.0 simulator (v0.5.6, as downloaded through Fitbit Studio) to run on Mac High Sierra (v10.13.4). I am receiving the following in a dialog box when I try to run the simulator:
Simulator failed to start: getaddrinfo ENOTFOUND localhost
localhost:63981, getaddrinfo ENOTFOUND localhost
localhost:63982
The following is showing up in the log file:
[2018-05-10 17:15:51.886] [error] appsim stderr: 2018-05-10 17:15:51.738 app[47281:20185698] ASSERT_Log: Type: 26 func_addr: 0x000bf6f0 lr: 0x00000000, file: ../../fb_private/fb_system/fbsys_notification.c, line: 211, func: _removeNotification, expr: false
[2018-05-10 17:15:51.985] [info] appsim stdout: [D][17:15:51.738][] Scheduler starting dispatch time: 1525986951738
Fb_AlarmMgr_Clean is running[A][17:15:51.970][] [I][17:15:51.970][] Houston, this is Ionic!!Simulator control server starting on 127.0.0.1:63981
[A][17:15:51.970][] Press ? anytime for help
[A][17:15:51.970][] Version: 32.4.19 (Apr 18 2018 15:44:42): Fake for tests
[A][17:15:51.970][] GNU_BUILD_ID:
mfgtst $
[2018-05-10 17:15:51.986] [error] appsim stderr: [2018/05/10 17:15:51:9708] NOTICE: libuv support not compiled in
[2018/05/10 17:15:51:9743] NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 off
[2018/05/10 17:15:51:9758] NOTICE: created client ssl context for default
[2018/05/10 17:15:51:9758] NOTICE: Creating Vhost 'default' port 63981, 1 protocols, IPv6 off
[2018-05-10 17:15:52.001] [error] appsim stderr: 2018-05-10 17:15 app[47281] (FSEvents.framework) FSEventStreamCreate: _FSEventStreamCreate: ERROR: could not allocate 0 bytes for array of path strings
[2018-05-10 17:15:52.002] [error] appsim stderr: 2018-05-10 17:15 app[47281] (FSEvents.framework) FSEventStreamScheduleWithRunLoop(): failed assertion 'streamRef != NULL'
2018-05-10 17:15 app[47281] (FSEvents.framework) FSEventStreamStart(): failed assertion 'streamRef != NULL'
[2018-05-10 17:15:52.609] [warn] 10 retries left: Error: getaddrinfo ENOTFOUND localhost localhost:63981
[2018-05-10 17:15:52.609] [warn] 10 retries left: Error: getaddrinfo ENOTFOUND localhost localhost:63982
... (does this 8 more times for 9, 8, 7, etc)
[2018-05-10 17:16:37.681] [warn] 1 retries left: Error: getaddrinfo ENOTFOUND localhost localhost:63981
[2018-05-10 17:16:37.682] [warn] 1 retries left: Error: getaddrinfo ENOTFOUND localhost localhost:63982
If I try to execute the app via sudo at the command line, I get the following in response (ie, in the terminal shell):
[2018-05-10 17:21:31.845] [error] appsim stderr: 2018-05-10 17:21:31.679 app[47416:20203958] Calling FB_Assert_Fatal:
2018-05-10 17:21:31.680 app[47416:20203958] file: ../../fb_private/fb_system/fbsys_pkg_mgr.c
2018-05-10 17:21:31.680 app[47416:20203958] line: 289
2018-05-10 17:21:31.680 app[47416:20203958] func: (null)
2018-05-10 17:21:31.680 app[47416:20203958] msg : (null)
2018-05-10 17:21:31.680 app[47416:20203958] LR : 0x00000000
[2018-05-10 17:21:31.884] [info] appsim exit code: null (signal SIGABRT)
[2018-05-10 17:21:32.543] [warn] 10 retries left: Error: getaddrinfo ENOTFOUND localhost localhost:63981
... (ie, a bunch more retries before it finally quits retrying)
Any thoughts or suggestions? (Initially, it was also complaining about a non-existent "root/Library/Application Support/Fitbit OS Simulator/user-settings" directory - I created "root/Library/Application Support/Fitbit OS Simulator/", and then it seemed to manage to create "user-settings" on the next invocation - but I'm still getting the above error(s).
Answered! Go to the Best Answer.
Best Answer05-14-2018 11:16
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
05-14-2018 11:16
It sounds like your Mac networking is broken.
Are you able to `ping localhost` from a terminal window?
$ ping localhost PING localhost (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.077 ms
Have you incorrectly edited your /etc/hosts file perhaps?
$ cat /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost
Best Answer05-14-2018 11:16
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
05-14-2018 11:16
It sounds like your Mac networking is broken.
Are you able to `ping localhost` from a terminal window?
$ ping localhost PING localhost (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.077 ms
Have you incorrectly edited your /etc/hosts file perhaps?
$ cat /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost
Best Answer05-14-2018 11:59
05-14-2018 11:59
Shazam!! You're awesome!! (And clairvoyant, too, apparently! 🙂
I've recently moved to a new Mac, and for whatever reason, my hosts file was empty. Once I added the localhost info in, all is now good.
THANK YOU!!
Best Answer