Hi Niklas,

Am Mittwoch, 27. April 2016 17:47:29 UTC+2 schrieb Niklas Mischkulnig:
>
> Crashes instantly on step 2.) after closing the dialog.
>

I feared this. But this excludes some issues.
Can you please apply the attached patch with some more diagnostic output.

When starting Hugin you should get a message box with some more information 
(you may expand the box).
It should print something like:
18:26:30: Created sRGB profile
18:26:30: Profile: sRGB built-in
18:26:30: Colorspace: RGB

Thanks,

Thomas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/c1bd8c27-3794-45f6-9530-e603fcc3d96b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/hugin1/base_wx/wxcms.cpp b/src/hugin1/base_wx/wxcms.cpp
--- a/src/hugin1/base_wx/wxcms.cpp
+++ b/src/hugin1/base_wx/wxcms.cpp
@@ -28,6 +28,7 @@
 #include <X11/Xlib.h>
 #include "hugin_utils/utils.h"
 #endif
+#include "hugin_utils/utils.h"
 
 namespace HuginBase
 {
@@ -120,6 +121,33 @@
             {
                 profile = cmsCreate_sRGBProfile();
                 profileName.Clear();
+                wxLogMessage(_("Created sRGB profile"));
+            };
+            wxLogMessage(wxString::Format(_("Profile: %s"), wxString(hugin_utils::GetICCDesc(profile).c_str(), wxConvLocal).c_str()));
+            cmsColorSpaceSignature colorSpace = cmsGetColorSpace(profile);
+            if (colorSpace == cmsSigRgbData)
+            {
+                wxLogMessage(_("Colorspace: RGB"));
+            }
+            else
+            {
+                if (colorSpace == cmsSigGrayData)
+                {
+                    wxLogMessage(_("Colorspace: Gray"));
+                }
+                else
+                {
+                    if (colorSpace == cmsSigCmykData)
+                    {
+                        wxLogMessage(_("Colorspace: CMYK"));
+                    }
+                    else
+                    {
+                        wxString s;
+                        s << "Colorspace: " << colorSpace;
+                        wxLogMessage(s);
+                    };
+                };
             };
         };
 

Reply via email to