Open da-phil opened 3 months ago
What were you trying to achieve by moving it up in the pixelpipe?
There's a reason behind the pixelpipe ordering and you just discovered it.
What were you trying to achieve by moving it up in the pixelpipe?
There's a reason behind the pixelpipe ordering and you just discovered it.
See my post above:
Motivation for using and moving scalepixels module on top of the pixel pipeline is the following: If the module is activated after finishing a picture with several masks and drawings in the retouch module, the image warping is not reflected in the masks if it stays above demosaicing. Hence I moved it on top of all modules, except the crop module.
More concretely: after finishing a picture, I might notice that the desired crop does not work out without cropping away important parts of the image. Using the scale pixels module I'm able to squeeze the picture to make it fit into the aspect ratio of my desired crop.
That being said: the only module which causes this crash is "rotate and perspective", all others which might be sensitive above image boundaries (e.g. retouch and lens correction) do not lead to a crash or other issues. That's why I think it's a bug and the pixel pipe should be able to handle this rearrangement, but I'm not an expert on the concepts and limitations of the pixel pipe, so I'm open to discuss my expectations ;)
From the user manual....
Some cameras (such as the Nikon D1X) have rectangular instead of the usual square sensor cells. Without correction this would lead to distorted images.
So IIUC you're using the scale pixel module to correct a mask problem?
Apologies for giving a more precise answer only after sending my original reply, I edited it.
So my motivation is to make the final edit fit into a certain aspect ratio and crop. Let's say, I'm editing a 3:2 image and apply some corrections which modify the image area and therefore also the aspect ratio, like horizontal and/or vertical lens shift in the "rotate and perspective" module, or the lens correction module. Afterwards I want to be able to apply a 3:2 crop again, without sacrificing image area for the crop. The "scale pixels" module can be use to either squeeze (>1) or stretch the image vertically to make everything fit into the crop I need. Did this explanation help?
Now I understand.
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.
Unfortunately I also didn't have time to further investigate the issue, but it's certainly to be found in dt_interpolation_compute_pixel4c
. Will try to find some time after my vacation.
Describe the bug
When scalepixels module is used and moved on top of pixel pipeline while using "rotate and perspective" with some vertical or horizontal lens shift darktable crashes.
Motivation for using and moving scalepixels module on top of the pixel pipeline is the following:
The issue seems to happen with OpenCL turned on and off, however turning OpenCL off takes longer to provoke the crash, which I find quite weird. But once I found module settings which makes dt crash, just loading the image while OpenCL is on and off leads to the same crash (
munmap_chunk(): invalid pointer
)Steps to reproduce
Expected behavior
No crash
Logfile | Screenshot | Screencast
I was able to get a meaningful stack trace and noticed NaNs in the
dt_interpolation_compute_pixel4c
functionsee full trace: darktable_bt_1UBMS2.txt. But there are plenty of other NaNs in the backtrace.
Commit
No response
Where did you obtain darktable from?
self compiled
darktable version
4.9.0+238~g03a771b4ba
What OS are you using?
Linux
What is the version of your OS?
Ubuntu 22.04
Describe your system?
CPU: AMD Ryzen 7 5700x 8-core processor GPU: AMD Radeon RX 5700 XT RAM: 32 GB X11 is in use
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
AMD Radeon RX 5700 XT, ROCR installation, Radeon Software for Linux version 24.10.3 for Ubuntu 22.04.4 HWE / amdgpu-install_6.1.60103
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response