Splitview causes the same photo to show twice sometimes

オープン
#464 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
csharp
領域
backend

調査の方向性

The payload does not name the file, so start by finding the C# code that picks the second portrait image for splitview when an album is filtered via the Albums setting. Read how the candidate list is built and how the second image is chosen, then check the splitview path with a small album that has few portrait photos. Done means the second image can never be the same asset as the first, and a test or manual run over many cycles shows no duplicates.

索引モデルが issue の本文から書いたものです。

説明

bug
Version

1.0.28.0

Deployment Method

Desktop and Android

Description

I have splitview enabled by default. It's an album with not too many photos.

Sometimes when a splitview image shows, it shows the same photo twice, side by side. I guess it randomly finds another portrait photo to show, and since there's not a lot, eventually it finds the exact same by chance.

Logs are probably not relevant as I'm running it as a Home Assistant addon.

Reproduction
  1. Enable splitview.
  2. Filter with an album with a low amount of pictures (still enough portrait ones so it doesn't ALWAYS happen).
  3. Wait until eventually a portrait photo will show twice.
Expectations

Same photo to be excluded when finding the second picture.

Configuration
General:
  ClockFormat: "HH:mm"
  # WeatherApiKey: redacted
  # UnitSystem: metric
  # WeatherLatLong: 53.380714,-2.1678159999999997
  ShowPhotoDate: false
  ShowAlbumName: false
  ShowImageLocation: false
  ShowPeopleDesc: false
  ShowImageDesc: false
  ShowWeatherDescription: false
  ShowProgressBar: false
  PrimaryColor: "#fff"

  Interval: 300
  ImageFill: true


Accounts:
  # - ImmichServerUrl: "http://192.168.1.158:8181"
  #   ApiKey: "redacted"
  #   ImagesFromDays: 60
  #   Albums: []
  #   ExcludedAlbums: []
  #   People:
  #     - "79f8359a-bd6b-4fc1-ad71-7e4ad1aa032a"
  - ImmichServerUrl: "http://192.168.1.158:8181"
    ApiKey: "redacted"
    # ImagesFromDays: 60
    Albums:
      - "4c7d865a-1ce7-49bd-884f-8541c9d9a778"
    ExcludedAlbums: []
    # People:
    #   - "0bf41189-7e74-4867-b94a-497c84806c6b"
Logs
Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Immich Frame
 Display your immich gallery as a digital photo frame
-----------------------------------------------------------
 Add-on version: 1.0.28.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 16.2
 Architecture: amd64 / generic-x86-64
 Home Assistant Core: 2025.9.3
 Home Assistant Supervisor: 2025.09.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
ApiKey=KLaoBzY9N1BW3juoGjaD3xEpMvlg5MSvcU2WxFY7Cs
ImmichServerUrl=http://192.168.1.158:8181
Timezone set from /UTC to Europe/London
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory
Load environment variables from /config/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /addon_configs/db21ed7f_immich-frame/config.yaml
---------------------------------------------------------
Wiki here on how to use: https://github.com/alexbelgium/hassio-addons/wiki/Addons-feature:-add-env-variables
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/db21ed7f_immich-frame/immich-frame.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
... script found, executing
--- Starting custom script for ImmichFrame ---
INFO: Custom CSS file found at /config/custom.css
SUCCESS: Custom CSS copied to /app/wwwroot/static/custom.css
INFO: ImmichFrame YAML config found at /config/custom-settings.yaml
SUCCESS: ImmichFrame YAML config copied to /app/Config/Settings.yml
INFO: YAML config will override environment variables
--- Custom script for ImmichFrame finished ---
/etc/cont-init.d/99-run.sh: executing
[08:56:07] INFO: Starting Immich Frame
 _                     _      _    ______                        
(_)                   (_)    | |   |  ___|                       
 _ _ __ ___  _ __ ___  _  ___| |__ | |_ _ __ __ _ _ __ ___   ___ 
| | '_ ` _ \| '_ ` _ \| |/ __| '_ \|  _| '__/ _` | '_ ` _ \ / _ \
| | | | | | | | | | | | | (__| | | | | | | | (_| | | | | | |  __/
|_|_| |_| |_|_| |_| |_|_|\___|_| |_\_| |_|  \__,_|_| |_| |_|\___| Version 1.0.28.0
LogLevel: Information
25-09-17 08:56:08 warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning
25-09-17 08:56:08 warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {4c0188cc-52fb-4063-b1c9-9090955b4e57} may be persisted to storage in unencrypted form.
25-09-17 08:56:08 info: Microsoft.Hosting.Lifetime[14] Now listening on: http://[::]:8080
25-09-17 08:56:08 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down.
25-09-17 08:56:08 info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production
25-09-17 08:56:08 info: Microsoft.Hosting.Lifetime[0] Content root path: /app
Pre-Submission Checklist
  • This is a bug report and not a feature request

  • I have provided all of the required information to reproduce the bug (config, logs, etc.)

  • I have checked for related issues and checked the documentation

主要言語
C#
スター
2.4k
フォーク
121
平均マージ
18日 20時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

immichFrame/ImmichFrame のほかの issue

immichFrame/ImmichFrame の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。