03-30-2018 21:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-30-2018 21:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Gondwana Software
Answered! Go to the Best Answer.

Accepted Solutions
04-03-2018 07:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-03-2018 07:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-02-2018 07:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?

04-02-2018 07:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-02-2018 07:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm not able to reproduce on Mac. I have the simulator version 0.5.2.

04-02-2018 13:28 - edited 04-02-2018 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-02-2018 13:28 - edited 04-02-2018 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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!
Gondwana Software

04-02-2018 14:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-02-2018 14:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I just tested the File Transfer Template project on Windows 7 simulator (Ionic and Versa). Same result: simulator disappeared without reporting an error.
Gondwana Software

04-02-2018 23:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-02-2018 23:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
This happens also on Win10, Simu 0.5.2.

04-02-2018 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-02-2018 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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.
Gondwana Software

04-03-2018 07:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-03-2018 07:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

04-03-2018 07:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
04-03-2018 07:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-03-2018 13:20 - edited 04-03-2018 13:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thanks @SunsetRunner. Quick work! There's a Versa app in it for you. 😉
Gondwana Software
