[RELEASE] Hubitat Package Manager (HPM) -- HubitatCommunity

Mostly, yes I have an odd use case in which HPM corrupts font files that I discussed with csteele a while back I saw some updates were made in 1.94 and 1.95 that looked like it could have resolved this issue, but it didn't. I may have considered the zip bundle back then but I've slept since I initially reported the issue and may have forgotten it wasn't a good fit.

I haven't pushed this issue cause think it just effects my app due to local use of font files and I want to be considerate of other peoples time. If y'all have the time I'd be happy to retest and repost my findings.

Was that corruption happening when the file was downloaded using the method i mentioned above?

Edit I went back and found your previous posts so it looks like you have everything already as i was suggesting. My guess is that as you stated you are in a unique situation since it is a font file instead of text/json file.

My guess would be the header values used to download the file are incompabile. It has worked before though right?

I have a feeling messing with that could break allot of other things thogh

you could posslby try adjusting the Header values in lines 3079 -3081 to see if that makes a difference.

This is a link to my repo. all my code, manifest and assets are there.

When I download the fonts from github to my computer then upload the fonts to the hub via file manager the files are an expected size


This is after doing a repair of the the app using HPM 1.99, IDK why the files size have changed, but I do know they don't load properly in some browsers when they are the larger size. I am assuming this is file corruption, but I don't know fonts well enough to understand what has been added. Just that the file size is different, and it stops working in some browsers.

Regardless of what the browsers are doing when running my app, the file size should not change because I used HPM vs file manager.

Some or all? some would be strange if the files were corrupted.

I think it is all about binary vs asci vs formated text in like UTF-8 code.

What i think is happening is the raw binary of the font file is being read as UTF-8 json/text and that is why when it is saved it is different and failing to work. If that is the case though it wouldn't work in any browser, not just some.

I may have added this as you were replying and I have not tested all browsers, I have tested some. I double checked and it works in Safari, but not in Edge... on a Mac.

If this is the case, how easy is this to fix?

Without digging into that code, hard to say. Basically we are talking about those header values being assigned at run time to the right type for what you are trying to download. Right now they are hard coded, and allot of processes us it. Caution would need to be taking to not break other stuff.

Need to test if that can actually fix it first before we get to much into how hard it would be to implement. My gut tells me it wouldn't be insignificant.

1 Like

Can you send me a DM I figure it will be better to pull this into a private conversation then to keep it going here. I have something for you to try that may help get a resolution to this.

I just tried to upgrade HPM from 1.9.8 to 1.9.9 - it crashed out doing the update:

I went back to the Apps list then back into HPM and did a "repair" on HPM. That finished.

Should that fix everything--or do I need to rip it out completely and start all over again (I just did that the other day on one of my systems when HPM failed to upgrade to 1.9.8).

Thanks.

Yes, you are fine.

2 Likes

Released: v1.9.10 -- Courtesy @mavrrick58

  • Enhanced file processing to allow for a binary file download when new tag is specified and 'binary' is used.
6 Likes

FYI: I upgraded to 1.9.10 from 1.9.9 on both of my hubs. One went fine, the other crashed out with:

I did a "repair" and it seemed to have been upgraded (kinda like the last upgrade). I feel you on bugs that you can't test--it's frustrating for ya! :slight_smile:

1 Like

Updated from 1.9.9 to 1.9.10. During the update, the version number changed in the upper right, but the screen continued staying on the updating message. Of course, giving it some time and then going back to Apps and opening HPM worked fine.

On my hub, looks like the recent move of the update function to the top had mixed results.

3 Likes

Same result here on all three of my hubs.

Well.. darn.

Back to the drawing board it seems.

2 Likes

Mine hung on the "Updating..." screen, but simply closing that out after a minute or so and going back in worked fine... The update did actually happen, and a Repair check confirmed no additional repairs were necessary.

1 Like

I updated mine without issue.

My versions were all at 1.9.7 on C5, C7, C8, and C8-Pro. No updates available via the updates button, but using HPM Repair, I completed the upgrade on all hubs to 1.9.10.

I had to interrupt the HPM repair after 30 seconds, and no new success screen message. With a simple browser refresh, it's all good.

Mine worked perfectly

Not sure if this is relevant at all (long thread) but just did an update on a C7.
It worked, but not seamlessly.

1.9.3 to 1.9.10

Select Hubitat Package Manager - Update - HPM 1.9.10
"Current Version" number updates, display freezes. Log time 1

Current Version

Wait a couple minutes, click on Apps:

Apps

apps

Select Hubitat Package Manager, check for updates. Log time 2
No longer any HPM updates showing.

Logs