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

Crash (exception) when updating firmware #1

Open
JF002 opened this issue Jan 29, 2023 · 2 comments
Open

Crash (exception) when updating firmware #1

JF002 opened this issue Jan 29, 2023 · 2 comments

Comments

@JF002
Copy link

JF002 commented Jan 29, 2023

Hi! And thank you for your job on this companion app for InfiniTime!

I've just tried it on my Windows 10 computer : it connects to the watch and sets the time without any issue, great!

However, it crash (because of an unhandled exception) when I try to update the firmware. Here's the output:

Enter path to firmware zip archive: pinetime-mcuboot-app-dfu-1.11.0.zip
Sending ('Start DFU' (0x01), 'Application' (0x04)) to DFU Control Point
Error accessing service.
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument )
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 , Func`2 , Boolean& )
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 , Func`2 )
   at InfiniWindows.BaseBleService.WriteBytesAsync(String uuid, Byte[] bytes, Nullable`1 option)
   at InfiniWindows.FirmwareUpdateService.RunStepOneAsync()
   at InfiniWindows.FirmwareUpdateService.UpdateAsync()
   at Program.RunUpdateFirmwareAsync(DeviceManager deviceManager)
   at Program.Main(String[] args)
   at Program.<Main>(String[] args)

I tried entering relative and absolute paths, with the same result.

@TailyFair
Copy link
Owner

TailyFair commented Feb 1, 2023

Thanks for testing the app! I really appreciate it.

Did this happened just once, sometimes or every time?

Error seems to be regarding to having some access to BLE services. Current error message is not enough to understand exactly what or why was not available for access.

I will add new release with improved logging this week, maybe it will help to find root cause of this.

@JF002
Copy link
Author

JF002 commented Feb 7, 2023

It happened every time I tried to update the firmware.
I'll try again again when the next release will be available, then :)

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

2 participants