[Digikam-devel] [Bug 274947] Auto-rotate/flip image does not work at import

Peter Albrecht px79 at crazymonkeys.de
Mon Jun 20 22:59:40 BST 2011


https://bugs.kde.org/show_bug.cgi?id=274947





--- Comment #21 from Peter Albrecht <px79 crazymonkeys de>  2011-06-20 23:58:44 ---
Debugging finished!

Result: I guess there is some wrong header-file mixup with libjpeg-80 at
gentoo:

Autorotation terminates premature with error (but does not print an error
message, see bug #276154):


The error is recognized and autorotation is terminated:
>  info->crop_yoffset >= info->output_height
>   (= 3067336080)         (= 2352)

at Thread [3] 24951 (Suspended : Step)    
>	Digikam::jtransform_request_workspace() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/libs/jpegutils/libjpeg-80/transupp.cpp:974  	
>	Digikam::exifTransform() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/libs/jpegutils/jpegutils.cpp:500  	
>	Digikam::CameraController::executeCommand() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/utilities/cameragui/controller/cameracontroller.cpp:595  	
>	Digikam::CameraController::run() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/utilities/cameragui/controller/cameracontroller.cpp:392  	
>	0xb4e05bf3	
>	start_thread() at 0xb42d4d23	
>	clone() at 0xb4876c3e	


the reason for this:
 "info->crop_yoffset_set" should be "JCROP_UNSET", but is set to: 
>   crop_yoffset_set	Digikam::<anonymous enum>	134814873	

at 
>	Digikam::jtransform_request_workspace() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/libs/jpegutils/libjpeg-80/transupp.cpp:972


the reason for this:
 the second parameter to "jtransform_request_workspace(...)" at line 500 is
already "defect"


the reason for this:
 "jpeg_transform_info transformoption" initializes wrong with:

>	transformoption	struct {...}	{...}	
>		transform	Digikam::<anonymous enum>	3060823808	
>		perfect	boolean	-1342727432	
>		trim	boolean	-2122803149	
>		force_grayscale	boolean	173864816	
>		crop	boolean	120	
>		crop_width	JDIMENSION	3077679352	
>		crop_width_set	Digikam::<anonymous enum>	Digikam::JCROP_UNSET	
>		crop_height	JDIMENSION	0	
>		crop_height_set	Digikam::<anonymous enum>	5	
>		crop_xoffset	JDIMENSION	6501	
>		crop_xoffset_set	Digikam::<anonymous enum>	Digikam::JCROP_UNSET	
>		crop_yoffset	JDIMENSION	3067352464	
>		crop_yoffset_set	Digikam::<anonymous enum>	134814873				# << defekt!
>		num_components	int	-1234082352	
>		workspace_coef_arrays	jvirt_barray_ptr *	0x805df14	
>		output_width	JDIMENSION	1	
>		output_height	JDIMENSION	3077676996	
>		x_crop_offset	JDIMENSION	2822188688	
>		y_crop_offset	JDIMENSION	3077679792	
>		iMCU_sample_width	int	-1472778648	
>		iMCU_sample_height	int	-1217373654	

at Thread [3] 25175 (Suspended : Step)    
>	Digikam::exifTransform() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/libs/jpegutils/jpegutils.cpp:343  	
>	Digikam::CameraController::executeCommand() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/utilities/cameragui/controller/cameracontroller.cpp:595  	
>	Digikam::CameraController::run() at /var/tmp/portage/media-gfx/digikam-2.0.0_beta6/work/digikam-2.0.0-beta6/core/utilities/cameragui/controller/cameracontroller.cpp:392  	
>	0xb4e0fbf3	
>	start_thread() at 0xb42ded23	
>	clone() at 0xb4880c3e

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Digikam-devel mailing list