** Description changed:

+ [Impact]
+ 
+ Users are unable to use the "Create synthetic ICC profile" feature of
+ DisplayCAL as it crashes if it doesn't find a config file in the user's
+ home folder as opposed to making one.
+ 
+ [Test Case]
+ 
+ 1. Ensure that the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini file 
doesn't exist.
+ 2. Launch DisplayCAL.
+ 3. Select the "Create synthetic ICC profile" option in the Tools > Advanced 
menu.
+ 
+ Expected: No crash
+ 
+ Actual: Crash (see original bug report below)
+ 
+ [What could go wrong]
+ 
+ While the patch in question is tested upstream and known to work in
+ later versions, it's completely possible that the patch introduces new
+ bugs or just doesn't work at all.
+ 
+ [Original Bug Report]
+ 
  ## Steps to reproduce
  
  1. Ensure that the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini file 
doesn't exist.
  2. Launch DisplayCAL.
  3. Select the "Create synthetic ICC profile" option in the Tools > Advanced 
menu.
  
  ## Current behavior
  
  Program errors with the following traceback:
  
  ```text
  No section: 'Default'
  
  Traceback (most recent call last):
-   File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 
12273, in synthicc_create_handler
-     self.init_synthiccframe()
-   File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 2393, 
in init_synthiccframe
-     config.initcfg("synthprofile", SynthICCFrame.cfg)
-   File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 1840, in 
initcfg
-     setcfg("calibration.file", defaults["calibration.file"], cfg=cfg)
-   File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 2093, in 
setcfg
-     cfg.set(configparser.DEFAULTSECT, name, value)
-   File "/usr/lib/python3.12/configparser.py", line 880, in set
-     raise NoSectionError(section) from None
+   File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 
12273, in synthicc_create_handler
+     self.init_synthiccframe()
+   File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 2393, 
in init_synthiccframe
+     config.initcfg("synthprofile", SynthICCFrame.cfg)
+   File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 1840, in 
initcfg
+     setcfg("calibration.file", defaults["calibration.file"], cfg=cfg)
+   File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 2093, in 
setcfg
+     cfg.set(configparser.DEFAULTSECT, name, value)
+   File "/usr/lib/python3.12/configparser.py", line 880, in set
+     raise NoSectionError(section) from None
  configparser.NoSectionError: No section: 'Default'
  ```
  
  ## Known workaround
  
  Manually create the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini
  file, with the following content:
  
  ```ini
  [Default]
  ```
  
  ## Additional information
  
  This bug has been fixed upstream by the following commit:
  https://github.com/eoyilmaz/displaycal-py3/commit/ccbcf67f
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: displaycal 3.9.11-2ubuntu0.24.04.1
  ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-26-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu3.7
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  Date: Thu Jun 26 23:11:06 2025
  InstallationDate: Installed on 2025-02-04 (142 days ago)
  InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 
(20240827.1)
  SourcePackage: displaycal-py3
  UpgradeStatus: No upgrade log present (probably fresh install)

** Summary changed:

- The "Create synthetic ICC profile" feature errors with 
"configparser.NoSectionError: No section: 'Default'" when the 
"DisplayCAL-synthprofile.ini" user configuration file lacks a [Default] section
+ [SRU] "Create synthetic ICC profile" feature fails

** Changed in: displaycal-py3 (Ubuntu Noble)
       Status: Triaged => In Progress

** Changed in: displaycal-py3 (Ubuntu Plucky)
       Status: Triaged => In Progress

** Description changed:

  [Impact]
  
  Users are unable to use the "Create synthetic ICC profile" feature of
  DisplayCAL as it crashes if it doesn't find a config file in the user's
  home folder as opposed to making one.
  
  [Test Case]
  
  1. Ensure that the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini file 
doesn't exist.
  2. Launch DisplayCAL.
  3. Select the "Create synthetic ICC profile" option in the Tools > Advanced 
menu.
  
  Expected: No crash
  
  Actual: Crash (see original bug report below)
  
  [What could go wrong]
  
  While the patch in question is tested upstream and known to work in
  later versions, it's completely possible that the patch introduces new
  bugs or just doesn't work at all.
+ 
+ [Other information]
+ 
+ The bug in question does not exist in the version already in questing.
+ Noble and Plucky need this, and it's too close to Oracular's EOL to
+ justify this fix.
  
  [Original Bug Report]
  
  ## Steps to reproduce
  
  1. Ensure that the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini file 
doesn't exist.
  2. Launch DisplayCAL.
  3. Select the "Create synthetic ICC profile" option in the Tools > Advanced 
menu.
  
  ## Current behavior
  
  Program errors with the following traceback:
  
  ```text
  No section: 'Default'
  
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 
12273, in synthicc_create_handler
      self.init_synthiccframe()
    File "/usr/lib/python3/dist-packages/DisplayCAL/display_cal.py", line 2393, 
in init_synthiccframe
      config.initcfg("synthprofile", SynthICCFrame.cfg)
    File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 1840, in 
initcfg
      setcfg("calibration.file", defaults["calibration.file"], cfg=cfg)
    File "/usr/lib/python3/dist-packages/DisplayCAL/config.py", line 2093, in 
setcfg
      cfg.set(configparser.DEFAULTSECT, name, value)
    File "/usr/lib/python3.12/configparser.py", line 880, in set
      raise NoSectionError(section) from None
  configparser.NoSectionError: No section: 'Default'
  ```
  
  ## Known workaround
  
  Manually create the ~/.config/DisplayCAL/DisplayCAL-synthprofile.ini
  file, with the following content:
  
  ```ini
  [Default]
  ```
  
  ## Additional information
  
  This bug has been fixed upstream by the following commit:
  https://github.com/eoyilmaz/displaycal-py3/commit/ccbcf67f
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: displaycal 3.9.11-2ubuntu0.24.04.1
  ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-26-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu3.7
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  Date: Thu Jun 26 23:11:06 2025
  InstallationDate: Installed on 2025-02-04 (142 days ago)
  InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 
(20240827.1)
  SourcePackage: displaycal-py3
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115430

Title:
  [SRU] "Create synthetic ICC profile" feature fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/displaycal-py3/+bug/2115430/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to