flybywiresim / aircraft

The A32NX & A380X Project are community driven open source projects to create free Airbus aircraft in Microsoft Flight Simulator that are as close to reality as possible.
https://flybywiresim.com
GNU General Public License v3.0
4.93k stars 1.01k forks source link

EFB: Pdf-Files not showing when selected in the "Pinned Charts" tab #8710

Open dlh2gy opened 3 days ago

dlh2gy commented 3 days ago

Aircraft Version

Development

Build info

{
    "built": "2024-06-27T11:32:46+00:00",
    "ref": "refs/heads/master",
    "sha": "a31677734a166bccd11e2f2e3c3bf9251df80cee",
    "actor": "BlueberryKing",
    "event_name": "manual",
    "pretty_release_name": "master:a3167773",
    "version": "a32nx-v0.12.0-dev.a316777"
}

Describe the bug

My charts are stored in "C:\Users\mdoc5\AppData\Local\MSFSPackages\Community\flybywire-externaltools-simbridge\resources\pdfs" as Pdf files. They are correctly listed in the "Local Files" tab on the Navigation&Charts page of the EFB. When I select a chart from the list, it is correctly displayed. I can also pin the charts, and the pinned charts are shown as icons on the "Pinned charts" tab. When I then click an item to display the chart, the chart window remains blank and shows the text "chart" in the top left corner. In order to get the chart displayed, I need to switch back to the "Local Files" tab and select the chart via the list on the left.

Screenshot 1: chart selected and pinned - chart is correcly displayed Screenshot 2: pinned charts correctly displayed as icons on "Pinned charts" tab Screenshot 3: after clicking a chart icon on the "Pinned charts" tab, the "Local files" tab becomes active but the chart is not displayed, only the text "chart" in the top left corner Screenshot 4: after clicking the list entry on the left, a pop-up showing "Loading PDF" shows up for about one second and thereafter the chart is correctly displayed

Screenshot1 Screenshot2 Screenshot3 Screenshot4

Expected behavior

Would expect that when an icon is clicked on the "Pinned charts" tab, the chart gets displayed (rathter than showing the "chart" text in the top left corner)

Steps to reproduce

  1. Go to "Local Files" tab of the "Navigation& Charts" tab and pin an item in the list
  2. Go to "Pinned Charts" tab, and click the pinned item in step 1
  3. Check if chart gets displayed, or if text "chart" is shown in top left corner

References (optional)

No response

Additional info (optional)

The issue persists since an update approximately two weeks ago, before it worked perfect. With the same update, there was another change: before the update when the Navigation&charts page was selected the first time with a Simbrief flight plan already loaded, the filter text box (marked in red in Screenshot 5) box would be populated with the "From" airport identifier and the list below would only display elements whose filename contain the identifier SInce the update, the filter text box remains empty and the list will try to display all files in the folder "C:\Users\mdoc5\AppData\Local\MSFSPackages\Community\flybywire-externaltools-simbridge\resources\pdfs"

If there is a too large number of files in this folder, this will crash the flight simulator! It seems that this is a sort of "index out of range" isssue, e.g. as if the list is allocated for say 10000 entries but the number of files in the folder is 12000. Perhaps this could be prevented by either (1) increasing the list allocation size (2) implementing a populaton limit, i.e. stop adding list entries when the list size is reached

My full chart set comprises >40000 charts, which crashes the sim with the current development version. With the earlier releases, this was no issue when the Simbrief flight plan was loaded before the Navigation&Chart page was opened the first time because the list was filtered for the "From" airport. With the current release, I can only store a subset of files in the folder to prevent the crashes Screenshot5

Discord Username (optional)

tui1rg