LanceMcCarthy / MvpApi

An application for Microsoft MVPs to easily browse and upload contributions
MIT License
36 stars 10 forks source link

Unexpected Error on first time start up. #124

Closed DavidEPatrick closed 2 years ago

DavidEPatrick commented 3 years ago

MVPComp-StartUpError

Error gives me the chance to send email to

awesome.apps@outlook.com

MVP Companion Error


Source: Date Time: 2/4/2021 1:06:48 PM


Method: Object reference not se

LanceMcCarthy commented 3 years ago

Thanks for opening case. Yes, please send the stacktrace to the email (the button will handle everything for you).

[edit] sorry, my email app didn't show any new messages until I opened that folder :/ I'm reading the message now, I will reply in the email thread so we can share private info.

For any future readers, this was a NullReferenceException.

HalHostetler commented 3 years ago

I have exactly the same issue, happy to help.

LanceMcCarthy commented 3 years ago

I've found some evidence this can also occur with the new merged category GUIDs, I am using Dimitar's profile as a proven repro set of categories (his always crashes), if yours match any of his, let me know which ones and I'll prioritize those contribution category first.

HalHostetler commented 3 years ago

First and foremost, Office365! Others are Azure Compute, Azure Storage, Identity and Access, Microsoft Teams, Service Bus, Azure Security... I'm guessing if his passes, mine will too.

Hal

Hal Hostetler, CPBE Broadcast Engineer/I.T. Pro MS MVP-Outlook - WA7BGX www.rolandschorr.comhttp://www.rolandschorr.com/

From: Lance McCarthy @.> Sent: Tuesday, March 16, 2021 3:16 PM To: LanceMcCarthy/MvpApi @.> Cc: Hal Hostetler @.>; Comment @.> Subject: Re: [LanceMcCarthy/MvpApi] Unexpected Error on first time start up. (#124)

I've found some evidence this can also occur with the new merged category GUIDs, I am using Dimitar's profilehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmvp.microsoft.com%2Fen-us%2FPublicProfile%2F5002880&data=04%7C01%7C%7C4cedaa44a94b407d2b0608d8e8c907f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637515297405103190%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=zXXM4OGIDeXEKErf6vQ6%2F6LLqRq4V9GTCdE5feAmrMQ%3D&reserved=0 as a proven repro set of categories (his always crashes), if yours match any of his, let me know which ones and I'll prioritize those contribution category first.

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLanceMcCarthy%2FMvpApi%2Fissues%2F124%23issuecomment-800649118&data=04%7C01%7C%7C4cedaa44a94b407d2b0608d8e8c907f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637515297405103190%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5ibr7E5DXR1Av2yAieU4ItzY4AsrSLaQCQH8wePA%2Bm8%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACEO46UPVLHNT3RH5MNX773TD7KAVANCNFSM4XDJRKQQ&data=04%7C01%7C%7C4cedaa44a94b407d2b0608d8e8c907f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637515297405113183%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vmktbMVpoeEby1nVclQ1UIftQ6dOTxZHcDjBfGbWgeM%3D&reserved=0.

LanceMcCarthy commented 3 years ago

UPDATE I have been testing these categories and have not yet seen a locally reproducible exception form them. However, I did some improvements to parsing that reduces the opportunity for an exception to happen.

I'll be pushing a custom build, Are you all willing to try a beta?

Super easy to install, just click a "get the app" button and it will automatically install. Once you install it, it will automatically check for updates every 6 hours, you don't have to do anything,

As an example of what the install page works like, take a look at my Media File Manager app. https://dvlup.blob.core.windows.net/general-app-files/Installers/MediaFileManager/index.html

HalHostetler commented 3 years ago

Absolutely willing!! As soon as I get a link, I'll install the update!!

Hal

Hal Hostetler, CPBE Broadcast Engineer/I.T. Pro MS MVP-Outlook - WA7BGX www.rolandschorr.comhttp://www.rolandschorr.com/

From: Lance McCarthy @.> Sent: Monday, March 22, 2021 3:16 PM To: LanceMcCarthy/MvpApi @.> Cc: Hal Hostetler @.>; Comment @.> Subject: Re: [LanceMcCarthy/MvpApi] Unexpected Error on first time start up. (#124)

UPDATE I have been testing these categories and have not yet seen a locally reproducible exception form them. However, I did some improvements to parsing that reduces the opportunity for an exception to happen.

I'll be pushing a custom build, Are you all willing to try a beta?

Super easy to install, just click a "get the app" button and it will automatically install. Once you install it, it will automatically check for updates every 6 hours, you don't have to do anything,

As an example of what the install page works like, take a look at my Media File Manager app. https://dvlup.blob.core.windows.net/general-app-files/Installers/MediaFileManager/index.htmlhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdvlup.blob.core.windows.net%2Fgeneral-app-files%2FInstallers%2FMediaFileManager%2Findex.html&data=04%7C01%7C%7Cf7a0cab1d8a748fbba0408d8ed801c64%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520481784996654%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NNvqxX%2Bn21ZRzlsaX1zmZUzufSyYQFTI6frxHcAgDI4%3D&reserved=0

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLanceMcCarthy%2FMvpApi%2Fissues%2F124%23issuecomment-804431788&data=04%7C01%7C%7Cf7a0cab1d8a748fbba0408d8ed801c64%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520481784996654%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=USkaUxuDIOMefZRz4DD22KGHfZbdpEjz%2FFgpFbnXIJc%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACEO46W5JG5DFSUGBN27JM3TE66S7ANCNFSM4XDJRKQQ&data=04%7C01%7C%7Cf7a0cab1d8a748fbba0408d8ed801c64%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520481785006647%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8wbA6Kq%2BJyr1fzQvAEvmzOChdUslc6jy5v9bGWca0Zg%3D&reserved=0.

LanceMcCarthy commented 3 years ago

Ready. This version will be a little slower loading the initial profile info, but that is intentional. It will be faster in the final verison.

Install

  1. Uninstall the Microsoft Store version of the app
  2. Go to this link MVP Companion Side-load Page
  3. Click "Get the app"
  4. It will download an appinstaller file that will begin the install (once you approve it).

Notes

Test

When you run it and sign in, pay attention to when it initially loads everything. I need to know if it crashes during the "signing in...", "getting profile info...", "downloading profile photo.." or "loading contributions".

I'll be working on a new update tomorrow that will actually gather better details (the complete exception) and create a log file that will attach to the crash report email automatically for you. I want it to be as effortless as possible for you.

Thanks!

LanceMcCarthy commented 3 years ago

Sorry for the double reply, it looks like something went wrong with the relative URL in the appinstaller. Just expand the little down arrow and download and the appx instead

1 Click here image

2 Open the downloaded file to install

HalHostetler commented 3 years ago

Per the store version, no issues signing in or loading profile, it crashes Loading Contributions.

Hal

Hal Hostetler, CPBE Broadcast Engineer/I.T. Pro MS MVP-Outlook - WA7BGX www.rolandschorr.comhttp://www.rolandschorr.com/

From: Lance McCarthy @.> Sent: Monday, March 22, 2021 5:17 PM To: LanceMcCarthy/MvpApi @.> Cc: Hal Hostetler @.>; Comment @.> Subject: Re: [LanceMcCarthy/MvpApi] Unexpected Error on first time start up. (#124)

Sorry for the double reply, it looks like something went wrong with the relative URL in the appinstaller. Just expand the little down arrow and download and the appx instead

1 Click here [image]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3520532%2F112073938-7106a100-8b4b-11eb-8e1e-4f6ed3ec0bd7.png&data=04%7C01%7C%7Ca144743e024d40bda8a708d8ed90ff47%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520554295995537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=v%2FE%2ByglVfsEnWa0cKgghSSuv3uuk5Ulyj9V57Vs21b4%3D&reserved=0

2 Open the downloaded file to install

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLanceMcCarthy%2FMvpApi%2Fissues%2F124%23issuecomment-804487385&data=04%7C01%7C%7Ca144743e024d40bda8a708d8ed90ff47%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520554296005537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MEojo%2B9UexpTIALksCj89VzH0cT8JfHD0eqC%2F5LCaqQ%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACEO46WSDYBE4RMZYTD7IBDTE7MYJANCNFSM4XDJRKQQ&data=04%7C01%7C%7Ca144743e024d40bda8a708d8ed90ff47%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520554296005537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wxCnTqf5Yj3cPb2Fyajo6T7rOIh9uvV963yzVPKPJxY%3D&reserved=0.

HalHostetler commented 3 years ago

[Graphical user interface, text Description automatically generated]

Hal

Hal Hostetler, CPBE Broadcast Engineer/I.T. Pro MS MVP-Outlook - WA7BGX www.rolandschorr.comhttp://www.rolandschorr.com/

From: Lance McCarthy @.> Sent: Monday, March 22, 2021 5:17 PM To: LanceMcCarthy/MvpApi @.> Cc: Hal Hostetler @.>; Comment @.> Subject: Re: [LanceMcCarthy/MvpApi] Unexpected Error on first time start up. (#124)

Sorry for the double reply, it looks like something went wrong with the relative URL in the appinstaller. Just expand the little down arrow and download and the appx instead

1 Click here [image]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F3520532%2F112073938-7106a100-8b4b-11eb-8e1e-4f6ed3ec0bd7.png&data=04%7C01%7C%7Ca144743e024d40bda8a708d8ed90ff47%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520554295995537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=v%2FE%2ByglVfsEnWa0cKgghSSuv3uuk5Ulyj9V57Vs21b4%3D&reserved=0

2 Open the downloaded file to install

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLanceMcCarthy%2FMvpApi%2Fissues%2F124%23issuecomment-804487385&data=04%7C01%7C%7Ca144743e024d40bda8a708d8ed90ff47%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520554296005537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MEojo%2B9UexpTIALksCj89VzH0cT8JfHD0eqC%2F5LCaqQ%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACEO46WSDYBE4RMZYTD7IBDTE7MYJANCNFSM4XDJRKQQ&data=04%7C01%7C%7Ca144743e024d40bda8a708d8ed90ff47%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637520554296005537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wxCnTqf5Yj3cPb2Fyajo6T7rOIh9uvV963yzVPKPJxY%3D&reserved=0.

LanceMcCarthy commented 3 years ago

@HalHostetler @DavidEPatrick

There should be a crash log file stored, even though the 256 character limit clipped the email message. Can you please send it to me at awesome.apps@outlook.com

  1. Open the following folder on your PC C:\Users\[your-user-name]\AppData\Local\Packages\61469LanceLotSoftware.MVPCompanion_m6f3850p49bnt\LocalState
  2. Grab the latest file with named MVPCompanion_ErrorLog_yyyyMMdd.log

Note: there may be device info in there, so I recommend you do not post it here.

HalHostetler commented 3 years ago

Lance, I do not have that exact path, here it is:

C:\Users(me)\AppData\Local\Packages\61469LanceLotSoftware.MVPCompanion_4tcmghg6akv1r

I found the log file "MVPCompanion_ErrorLog_20210322.log" in the "Localstate" folder and I've attached it. Hope it has what you need. Thanks!!!

Hal

Hal Hostetler, CPBE Broadcast Engineer/I.T. Pro MS MVP-Outlook - WA7BGX www.rolandschorr.comhttp://www.rolandschorr.com/

From: Lance McCarthy @.> Sent: Tuesday, March 23, 2021 9:54 AM To: LanceMcCarthy/MvpApi @.> Cc: Hal Hostetler @.>; Mention @.> Subject: Re: [LanceMcCarthy/MvpApi] Unexpected Error on first time start up. (#124)

@HalHostetlerhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FHalHostetler&data=04%7C01%7C%7Cdbebcc62b5e140c6d5b708d8ee1c5207%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521152694145641%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=b2f6LuGLxlZNz6wTp6A%2Fed27F%2B6k7pRhiHMPWHZZGgY%3D&reserved=0 @DavidEPatrickhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDavidEPatrick&data=04%7C01%7C%7Cdbebcc62b5e140c6d5b708d8ee1c5207%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521152694155628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1x06lFn%2B33cCoHwOnNmISzlppGO6fOSHJ8XpHuSrVaU%3D&reserved=0

There should be a crash log file stored, even though the 256 character limit clipped the email message. Can you please send it to me at @.**@.>

  1. Open the following folder on your PC C:\Users[your-user-name]\AppData\Local\Packages\61469LanceLotSoftware.MVPCompanion_m6f3850p49bnt\LocalState
  2. Grab the latest file with named MVPCompanion_ErrorLog_yyyyMMdd.log

Note: there may be device info in there, so I recommend you do not post it here.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLanceMcCarthy%2FMvpApi%2Fissues%2F124%23issuecomment-805064263&data=04%7C01%7C%7Cdbebcc62b5e140c6d5b708d8ee1c5207%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521152694165629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1S0RzakSZtvBXf5VYIr4P%2FwTrFSLULQJJ%2FDfjB7XQlQ%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACEO46SPAL7KLK7IIFYZJMDTFDBUFANCNFSM4XDJRKQQ&data=04%7C01%7C%7Cdbebcc62b5e140c6d5b708d8ee1c5207%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521152694165629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HnNREcu8uGicwTlxnOTrW5FVq9cNDRfroy1U5jAwGds%3D&reserved=0.

LanceMcCarthy commented 3 years ago

@HalHostetler You've replied to the public GitHub thread notification email. The attachment doesnt get posted to the GitHub thread.

Can you please send it to me directly at awesome.apps@outlook.com ? Thanks!

HalHostetler commented 3 years ago

Sent.

Hal

Hal Hostetler, CPBE Broadcast Engineer/I.T. Pro MS MVP-Outlook - WA7BGX www.rolandschorr.comhttp://www.rolandschorr.com/

From: Lance McCarthy @.> Sent: Tuesday, March 23, 2021 11:29 AM To: LanceMcCarthy/MvpApi @.> Cc: Hal Hostetler @.>; Mention @.> Subject: Re: [LanceMcCarthy/MvpApi] Unexpected Error on first time start up. (#124)

@HalHostetlerhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FHalHostetler&data=04%7C01%7C%7Cb29fd15b0cb64bcbee9108d8ee29961f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521209661193452%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0UJ47rbV1y8EtnLEu5S9F8kuGlIVcf4hCiHnt8WRSrk%3D&reserved=0 You've replied to the public GitHub thread notification email. The attachment doesnt get posted to the GitHub thread.

Can you please send it to me directly at @.**@.> ? Thanks!

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FLanceMcCarthy%2FMvpApi%2Fissues%2F124%23issuecomment-805132448&data=04%7C01%7C%7Cb29fd15b0cb64bcbee9108d8ee29961f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521209661193452%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=qVwPkuTM9KwUtK1c6GBji3tnKD8sKCVQvmvwlzloSjM%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACEO46XHO2FQGNEJ3EWCYRTTFDMYJANCNFSM4XDJRKQQ&data=04%7C01%7C%7Cb29fd15b0cb64bcbee9108d8ee29961f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637521209661203447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TLntzPQUhSMKdvvUiKVzQas1TkLHqhlEH0hYI9BhTj0%3D&reserved=0.

LanceMcCarthy commented 2 years ago

Good news folks, I have fixed this issue. It can happen when you have more contributions than can fit in a single HTTP response.

This was fixed by reverting to batching. I have rewritten the algorithm for batching position and tracking. I have also completely revamped the HomePage experience. You can edit, clone and delete while on the home page, as well as pause API fetch updates to retain scroll position.

[edit] removed beta testing instructions

LanceMcCarthy commented 2 years ago

Confirmation of fix by multiple testers, closing this issue.

The new version 2022.214 is in certification right now with Microsoft and should be published in about 3 days assuming they don't fail me again for not being able to log into the app (the MSFT testers are not Microsoft MVPs, so they dont have authorization).

If you would like to 'side-load' the new version right now, download and open this appinstaller file 2022.214.1 MVP Companion.zip (installs fully code-signed, Microsoft-trusted packages).