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

[BUG]: Icons on Fluent Button and Details Grid not being reflected correctly in play mode of a Canvas app in Google Chrome #497

Open
Darina1010 opened this issue Sep 18, 2024 · 39 comments
Assignees
Labels
bug Something isn't working

Comments

@Darina1010
Copy link

Darina1010 commented Sep 18, 2024

When we open a Canvas app in Edit mode and then press Play and open the Play mode, the icons on Fluent Details list and Fluent Button seem to be working fine (Screenshot 1).
Screenshot 1

However, if we skip the Edit mode and proceed to Play straight away from the solution, the same icons don't seem to be showing up correctly (Screenshot 2).
Screenshot 2

We are using Google Chrome and the same behavior replicated for several users.

@Darina1010 Darina1010 added bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet. labels Sep 18, 2024
@Alecarfersa
Copy link

Alecarfersa commented Sep 18, 2024

I have the same error! Do you have a solution?

@angmz
Copy link

angmz commented Sep 18, 2024

I have the same error. I have tested it on both Edge and Chrome and I am using authoring version 3.24091.13. Do you have an answer?

@endub-22
Copy link

Same issue for me too. seeing it on Edge Version 128.0.2739.79

@Masael
Copy link

Masael commented Sep 18, 2024

Same error here, customers are complaining. Editing the app shows all icons OK but at published version fails. Is there any workaround?
capture20240918-01
The issue is present even at the details list sorting arrows
image

@alan-reyes
Copy link

I am also encountering the same issue where the Fluent Button and Details List components are not being rendered correctly.

@angmz
Copy link

angmz commented Sep 18, 2024

In the code, specifically in the js CreatorKitCore/SolutionPackage/src/Controls/cat_PowerCAT.CommandBar/platformlibs/fluent_8_29_0.js, there is a reference to https://spoprod-a.akamaihd.net/files/fabric/assets/icons/, and that page is not available.

image

@MaheshSripada MaheshSripada self-assigned this Sep 19, 2024
@MaheshSripada
Copy link
Collaborator

Thank you for reporting this issue. Our team is currently reviewing the issue and will provide updates as soon as possible.

@angmz
Copy link

angmz commented Sep 19, 2024

Thank you for reporting this issue. Our team is currently reviewing the issue and will provide updates as soon as possible.

In the code, specifically in the js CreatorKitCore/SolutionPackage/src/Controls/cat_PowerCAT.CommandBar/platformlibs/fluent_8_29_0.js, there is a reference to https://spoprod-a.akamaihd.net/files/fabric/assets/icons/, and that page is not available.

@MaheshSripada
Copy link
Collaborator

Hi @Darina1010,

Can you please check if this is happening

  1. By connecting to any other network if it is allowed and possible, sometimes firewall settings might be causing these kind of issues.
  2. Also pls check if any errors in the Network tab / console of the browser when loading this screen.

@MaheshSripada MaheshSripada removed the ⚠️ needs triage Has not been triaged by the team yet. label Sep 20, 2024
@Masael
Copy link

Masael commented Sep 20, 2024

Hello @MaheshSripada.

These are the errors shown in the network panel and console.
image
image

For these tests I disabled the firewall locally and connected to another network.

@MaheshSripada
Copy link
Collaborator

Unfortunately, we are unable to reproduce this issue in our environments.

To troubleshoot further, can you please check if

  1. If you are able to access and download the file.
    https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-0-467ee27f.woff.

  2. If the endpoint https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-0-467ee27f.woff is whitelisted.

@endub-22
Copy link

endub-22 commented Sep 25, 2024

@jean-goyat
Copy link

Unfortunately, we are unable to reproduce this issue in our environments.

To troubleshoot further, can you please check if

  1. If you are able to access and download the file.
    https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-0-467ee27f.woff.
  2. If the endpoint https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-0-467ee27f.woff is whitelisted.

I can download the file as well but still get the same CORS issue when playing the app in apps.powerapps.com.

Weirdly enough, some of my apps are showing some icons but not all when playing the app in apps.powerapps.com (everything still shows fine in make.powerapps.com). I can't exactly pinpoint what the difference between an icon showing up or not though:

  • this one shows up: <i data-icon-name="ScheduleEventAction" aria-hidden="true" class="ms-Icon root-32 css-140 css-139" style="font-family: FabricMDL2Icons-9;"></i>
  • this one doesn't: <i data-icon-name="Warning" aria-hidden="true" class="ms-Icon root-32 css-136 css-135" style="font-family: FabricMDL2Icons-1;"></i> (and I do see that CORS issue for https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-1-4d521695.woff)

image

Is the team currently working on a solution and that's why there are now some icons showing up?

@denise-msft
Copy link
Member

Hello, we are currently investigating the issue internally with the engineering team.

It would really help the investigation if anyone experiencing this issue could submit a response to this form with:

  • session ID in the player where they're seeing this, and
  • Organization ID of the Power Apps environment Dataverse instance (can be found in maker portal > Settings > Session details)

Form link: https://forms.microsoft.com/r/XErgLKUZrY

@angmz
Copy link

angmz commented Oct 2, 2024

Sent the requested information.

image

@denise-msft
Copy link
Member

Thank you for those of you who helped provide session details.

Unfortunately, this issue does not have a clear diagnosis without a repro. Please try some of the following steps to address this issue:

  1. Review endpoint restrictions: It appears that due to the larger audience that can use the Player team’s services, your environments/tenants may have locked down endpoints more strictly. Please ensure that your tenant or environment is following the advice provided in required services. If you have other endpoints blocked, this could be causing the issue.

  2. Short-term mitigation: As a potential short-term solution, you can try allowing the akamihd endpoint. This may help alleviate the blocking issue temporarily.

  3. Future plans: Microsoft is currently working on creating a new platform library that will not use the akamihd endpoint. However, please note that this update will take a few months to roll out and will require a control update on the Creator Kit to be consumed.

We hope these suggestions help resolve the issue. If you are able to try both mitigation steps above and continue to experience the issue, please validate which steps you took and the endpoints you chose to whitelist and let us know what you're still seeing.

@jean-goyat
Copy link

jean-goyat commented Oct 7, 2024

Thank you for those of you who helped provide session details.

Unfortunately, this issue does not have a clear diagnosis without a repro. Please try some of the following steps to address this issue:

  1. Review endpoint restrictions: It appears that due to the larger audience that can use the Player team’s services, your environments/tenants may have locked down endpoints more strictly. Please ensure that your tenant or environment is following the advice provided in required services. If you have other endpoints blocked, this could be causing the issue.
  2. Short-term mitigation: As a potential short-term solution, you can try allowing the akamihd endpoint. This may help alleviate the blocking issue temporarily.
  3. Future plans: Microsoft is currently working on creating a new platform library that will not use the akamihd endpoint. However, please note that this update will take a few months to roll out and will require a control update on the Creator Kit to be consumed.

We hope these suggestions help resolve the issue. If you are able to try both mitigation steps above and continue to experience the issue, please validate which steps you took and the endpoints you chose to whitelist and let us know what you're still seeing.

It seems this might have been an issue with akamihd (which, according to one of the sys admins on my team, were having an issue last week). All seems resolved on my end an icons are showing up normally again as of Friday 10/4✅!

Thank you for looking into this!

@Bejabajo
Copy link

We are seeing this same issue now with our Power Apps. running both inside our company firewall and outside and also in browser and power app player (desktop and mobile). It is the same as what others reported before getting the error in the network panel but able to download the files fine if you put the path into the browser.

We are currently running v1.0.20240529.1 of the creator kit. which I know is a version old and I see that in a previous comment that they are moving stuff and that would require an update to the creator kit. does the new version of the kit resolved this.

@jean-goyat
Copy link

I installed the newest version of the kit (November) a couple weeks ago and still got a similar glitch this week. Republishing my apps resolved the icons not showing up. I can't tell you if the republishing was what solved it or it's because I now have the latest version of the CreatorKit... but not an issue for me anymore today.

@Bejabajo
Copy link

Just updated our creator kit to v1.0.20241119.01 in our dev environment and republished one of the apps having issues. It still has issues when outside the studio playing. I did notice that the URL it is failing is not the same as the other comments of akamihd but instead going to azureedge.net

Image

We started seeing these error yesterday 1/09 in all of our apps that are using the creator kit icons (icon, details list, command bar, etc.)

@Bejabajo
Copy link

The issue looks to be resolved by itself. late 1/10 the icons started loading again. My guess is there was some Microsoft server issues that got resolved.

@JMS404
Copy link

JMS404 commented Jan 28, 2025

Hi There,

Has there been any update to this bug? Or an eta of a fix?

As of this morning it seems the Icons are still not appearing correctly

Creator Kit Version: 1.0.20241119.3

Image

Image

@PRusakPL
Copy link

The problem with Creator Kit and Fluent UI icons (hosted on CDNs as fonts - *.woff files) exists because of wrong CORS setup between powerapps domain apps.powerapps.com and one of the possible CDNs (not all CDNs!!)

Sample woff file that is blocked by CORS =>
https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-2-63c99abf.woff

Image

This is working for some people and do not work for others as CDN assignment depends on geographical location (and most probably some of those CDNs are working fine).

Can you please make sure there is CORS trust between all MS official CDNs and apps.powerapps.com domain ?

@Bejabajo
Copy link

The issue looks to have come back for me too. it is just a few of the icons so far but just started again this morning

@PRusakPL, I am not a network guy so is this something I need to have done on our side or is that Microsoft's side?

@PRusakPL
Copy link

It is random issue as some CDNs (administered by MS) are either not functioning well or not CORS trusted with Power Apps.
This will look like sometimes this works sometimes not - as CDNs are picked in random (geo - related) way.

Few icons ? - open developer toolbar (CTRL + SHIFT + I) - Network tab - check "Disable cache" - with this refresh your app in a browser (CTRL + R) - I guess few icons were just cached (after this refresh all should be gone)

@opteon-sdc
Copy link

Are they working an a solution?

@ullas-anand
Copy link

ullas-anand commented Jan 30, 2025

I am also facing similar issue with Fluent Command bar, Icons are showing up properly in Preview mode, but when app is published and the opened the icons are breaking / not coming properly
For the published app -
Image

But in Preview its showing up properly -

Image

I am using the latest version of Creator Kit CreatorKitCore_1.0.20241119.3_managed.

I have tried to remove the component and then add it back again , republish the app , but nothing worked

@shammyowens
Copy link

We are having the same issue. Icons load correctly in the Studio and for many show up correctly until their cache is manually emptied or ages out, then it just shows the squares of doom.

@Bejabajo
Copy link

We have poked our Microsoft rep and they are going to poke people they know in Power Cat to take a look at this. Hopefully they give a better answer than just replace with another control as some of the controls are not fully available outside the creator kit yet (command bar and detail list).

@Jenefer-Monroe
Copy link

@MaheshSripada @denise-msft I do have a nearly consistent repro I can show you

@shammyowens
Copy link

We can reproduce this easily in our apps. Happy to have a session with anyone to help the troubleshooting process.

When loading the apps with details list and command bar, the following URL try and fail to load.

https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-a13498cf.woff
https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-2-63c99abf.woff
https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-4-a656cc0a.woff

We can access and download https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-0-467ee27f.woff correctly, but this doesn't seem to referenced in the app network traces at all.

We are using the latest creator kit solution also (1.0.20241119.3)

@Maaxxwell
Copy link

Almost all of our users face this issue as well. Sometimes its resolved by clearing all cookies for the app.

@john-streamflow
Copy link

We are experiencing this issue in all of our apps using the creator kit. Are there any solutions yet?

@opteon-sdc
Copy link

@john-streamflow

See:

#514 (comment)

@john-streamflow
Copy link

john-streamflow commented Feb 6, 2025 via email

@shammyowens
Copy link

Unfortunately we aren't in a position to install extra open source solutions in our environments.

I did some more testing on this and I wonder if there is some legacy or cache as part of the issue. I created a brand new environment, added the creatorkit (and turned on code components) and then added command bar. The icons load correctly and the URLs used are

https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-a13498cf.woff
https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-4-a656cc0a.woff
https://spoprod-a.akamaihd.net/files/fabric/assets/icons/fabric-icons-2-63c99abf.woff

I still have my broken app/environment which has the latest creatorkit and has been republished but still point to

https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-a13498cf.woff
https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-2-63c99abf.woff
https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/fabric-icons-4-a656cc0a.woff

Is there another way to refresh this without having to remove/re-add the components?

@shammyowens
Copy link

We seem to have an odd workaround.

If we add a brand new command bar on our home screen and publish the app, then all of the icons for other controls start working. This new control can have its visibility set to false and it still works.

If I remove this brand new command bar, the icons for other controls go back to the squares of doom

It would be good if someone else could validate this and work out why this works?!

@ullas-anand
Copy link

@john-streamflow

See:

#514 (comment)

This works, I tested it in my solution. Simply import the solution into your environment and add the code component to your start screen.

@Bejabajo
Copy link

We seem to have an odd workaround.

If we add a brand new command bar on our home screen and publish the app, then all of the icons for other controls start working. This new control can have its visibility set to false and it still works.

If I remove this brand new command bar, the icons for other controls go back to the squares of doom

It would be good if someone else could validate this and work out why this works?!

This work around worked for us.

Here are the steps I have been using for that.

  1. Update creator kit if needed.
  2. Go to insert panel in power apps studio
  3. Click "Get more components".
  4. On "Import Components" select "Code" tab
  5. Search for command bar and import
  6. If command bar is not latest version under Code components (v1.1.39) save and refresh page.
  7. Go to first page of app and add the command bar to page
  8. Set visibility of command bar to false.
  9. Save and publish app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests