Client Build 3273: Random nui images not loading when requested

1. Client: Production - Build 3273 / FXServer: 3184

2. What you expected to happen: Image resources all to load correctly when called upon. These were working fine before the recent client release.

3. What actually happens: Image resources are not loaded, resulting in 404 errors with nui/html scripts.

  • No related debug or errors in F8 Console.

  • Errors in NUI DevTools Console did appear: game-1607349994687.log (104.3 KB)

4. Category of bug: Client / nui

5. Reproducible steps

  1. Have a script which loads multiple images (via _resource.lau or fxmanifest.lua)
  2. Connect to a the server and access the nui for that script (i.e. clothes or vehicle shop).
  3. Random images will be missing, devtools consoles displays multiple 404s, despite the files existing and being requested in the fxmanifest.lua. As a result will severely break scripts using images.
  4. Reconnecting will result in different images being affected but not all images will load.

5.1 Known affected resources:

1. esx_vehicleshop

2. esx_np_skinshop_v2

fxmanifest.lua - files section

files {
‘nui/ui.html’,
‘nui/ui.js’,
‘nui/ui.css’,
‘nui/img/*.png’,
‘nui/img/compacts/*.png’,
‘nui/img/compacts/*.jpg’,
‘nui/img/coupes/*.png’,
‘nui/img/motos/*.png’,
‘nui/img/muscle/*.png’,
‘nui/img/offroad/*.png’,
‘nui/img/sedans/*.png’,
‘nui/img/sports/*.png’,
‘nui/img/sportsclassics/*.png’,
‘nui/img/super/*.png’,
‘nui/img/suvs/*.png’,
‘nui/img/vans/*.png’,
}



Other information

  • Cache has been cleared: no change.
  • Upon looking at the logs, it could be possible this isn’t just affecting images but other resources such as js and css files. However I haven’t confirmed this.
  • Upon asking on the Cfx.re Discord, there are other users who are experiencing this issue and can reproduce it.
  • Possibly due to this commit: https://github.com/citizenfx/fivem/commit/db97bcacaa54973361807b4f221ef8ba235f0018
2 Likes

Any example resource without lots of recursive requirements?

1 Like

Couldn’t reproduce it with addons that have limited images, seems only to affect large resources.

See below of a few addons:

  • HUD with weapon icons (trew_hud_ui) - Can’t reproduce

    • HTML: 1
    • Images: 96
    • CSS: 1
    • Javascript: 1
    • Sounds: 1
  • Police Radar (wk_wars2x) - Can’t reproduce

    • HTML: 1
    • Images: 12
    • CSS: 1
    • Javascript: 2
    • Sounds: 10
    • Fonts: 7
  • Vehicle Shop with Vehicles Images - Can reproduce

    • HTML: 1
    • Images: 350
    • CSS: 1
    • Javascript: 1
  • Clothes Shop (esx_np_skinshop_v2) - Can reproduce

    • HTML: 1
    • Images: 2,727
    • CSS: 1
    • Javascript: 1

Looking at the log produced from esx_np_skinshop_v2, appears these stopped loading after 1,011 images.

Just going to build a dev script now to try and repro it.

also please check if it works any better on canary

1 Like

Just tested with Canary am still able to reproduce, appears to still be happening but less severe.

Have uploaded a stress test here: https://gitlab.com/Mitchy/fivem-image-stresstest

Test 1 (on Production): Severe

Test 2 (on Canary): Less Severe

Previously mentioned resources still suffer, but not quite as severely.

1 Like

Should be fixed as of current version.

5 Likes

Thanks bubble. Looks to be resolved.