03-30-2018 21:34
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
03-30-2018 21:34
I think I've found another situation in which the simulator behaves differently to hardware. When I try to do a File Transfer of an image, the simulator windows both disappear. No error messages are reported in studio.
After two days trying to work out what I was doing wrong (even though my code works fine on hardware), I tried to run the sample code in the File Transfer Guide. Same result. *phew*
I can provide a project that demonstrates this behaviour, although it's simply the code previously linked.
I couldn't work out exactly which line of code causes the problem, nor even whether it's the app or the companion. I suspect the app, and it may be a race condition or something to do with deferred processing since the visible code seems to execute completely before the crash.
I was about to try wrapping the image ArrayBuffer in CBOR until I noticed that the guide code doesn't do so.
Windows 7 x64, Firefox 56.0.2.
Answered! Go to the Best Answer.
Best Answer04-03-2018 07:06
04-03-2018 07:06
The issue is fixed, thanks for reporting: we'll release a new version of the simulator by the end of the week.
04-02-2018 07:51
04-02-2018 07:51
Thanks for reporting this issue. I'm testing it right now. The default File Transfer project from Fitbit Studio doesn't make the simulator, but I'll try with the code from the documentation to see how it goes.
Are you on Windows ou Mac?
Best Answer04-02-2018 07:53
04-02-2018 07:53
I'm not able to reproduce on Mac. I have the simulator version 0.5.2.
Best Answer04-02-2018 13:28 - edited 04-02-2018 13:31
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
04-02-2018 13:28 - edited 04-02-2018 13:31
@SunsetRunnerI think you just answered your previous question. 😉 I'm on Windows 7.
I'll investigate the File Transfer project and see if I can spot the difference.
Thanks for looking into this!
Best Answer04-02-2018 14:07
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
04-02-2018 14:07
I just tested the File Transfer Template project on Windows 7 simulator (Ionic and Versa). Same result: simulator disappeared without reporting an error.
Best Answer04-02-2018 23:41
04-02-2018 23:41
This happens also on Win10, Simu 0.5.2.
Best Answer04-02-2018 23:53
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
04-02-2018 23:53
@qooAppsThanks for confirming. I'm relieved that I wasn't doing something dense, although there was always a chance that my firewall/antivirus was interfering.
Best Answer04-03-2018 07:02
04-03-2018 07:02
I was able to reproduce the problem on my Windows 10 VM just by using the file transfer project template. I'll check with the product team.
Best Answer04-03-2018 07:06
04-03-2018 07:06
The issue is fixed, thanks for reporting: we'll release a new version of the simulator by the end of the week.
04-03-2018 13:20 - edited 04-03-2018 13:20
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
04-03-2018 13:20 - edited 04-03-2018 13:20
Thanks @SunsetRunner. Quick work! There's a Versa app in it for you. 😉