Author Topic: "iCCP: known incorrect sRGB profile" when using wxWidgets-3.2.11  (Read 48 times)

Offline everSome

  • Multiple posting newcomer
  • *
  • Posts: 61
Combining Code::Blocks r13927 with wxWidgets-3.2.11 results in the above mentioned note being popped up during initialization of debug versions of both CB and wxWigets. The stack trace at this point is:
Code
#0 ??	png_compare_ICC_profile_with_sRGB (png_ptr=0x8f9b2a0, profile=0x8f2b3c0 "", adler=60355580) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\png.c:2391)
#1 0x7ffebdc91aac wx_png_icc_set_sRGB(png_ptr=0x8f9b2a0, colorspace=0x8f9b760, profile=0x8f2b3c0 "", adler=60355580) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\png.c:2434)
#2 0x7ffebdcaa776 wx_png_handle_iCCP(png_ptr=0x8f9b2a0, info_ptr=0x8ca9e10, length=0) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\pngrutil.c:1595)
#3 0x7ffebdc97586 wx_png_read_info(png_ptr=0x8f9b2a0, info_ptr=0x8ca9e10) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\pngread.c:225)
#4 0x7ffebd801127 (anonymous namespace)::wxPNGImageData::DoLoadPNGFile(this=0x5fc9c0, image=0x5fd5d0, wxinfo=...) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\imagpng.cpp:322)
#5 0x7ffebd801a7f wxPNGHandler::LoadFile(this=0x290fa10, image=0x5fd5d0, stream=..., verbose=true) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\imagpng.cpp:431)
#6 0x7ffebd7f4593 wxImage::DoLoad(this=0x5fd5d0, handler=..., stream=..., index=-1) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\image.cpp:2870)
#7 0x7ffebd7f4b2c wxImage::LoadFile(this=0x5fd5d0, stream=..., type=wxBITMAP_TYPE_ANY, index=-1) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\image.cpp:2946)
#8 0x7ffea91806c0 cbLoadImageFromFS(image=..., filename=..., bitmapType=wxBITMAP_TYPE_ANY, fs=...) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\sdk\globals.cpp:1143)
#9 0x7ffea91807c5 cbLoadBitmap(filename=..., bitmapType=wxBITMAP_TYPE_ANY, fs=0x0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\sdk\globals.cpp:1158)
#10 0x7ffe496c9f3d wxsResourceTree::wxsResourceTree(this=0x8ca7120, Parent=0x8ca64f0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\plugins\contrib\wxSmith\wxsresourcetree.cpp:81)
#11 0x7ffe496c3e6c wxSmith::BuildBrowsers(this=0x7057c00) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\plugins\contrib\wxSmith\wxsmith.cpp:196)
#12 0x7ffe496c2cf2 wxSmith::OnAttach(this=0x7057c00) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\plugins\contrib\wxSmith\wxsmith.cpp:102)
#13 0x7ffea90e5f47 cbPlugin::Attach(this=0x7057c00) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\sdk\cbplugin.cpp:73)
#14 0x7ffea91a7db1 PluginManager::AttachPlugin(this=0x63667d0, plugin=0x7057c00, ignoreSafeMode=false) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\sdk\pluginmanager.cpp:203)
#15 0x7ffea91b03ae PluginManager::LoadAllPlugins(this=0x63667d0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\sdk\pluginmanager.cpp:1202)
#16 0x7ff60ff41cec MainFrame::ScanForPlugins(this=0x338fa10) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\src\main.cpp:1507)
#17 0x7ff60ff39731 MainFrame::MainFrame(this=0x338fa10, parent=0x0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\src\main.cpp:794)
#18 0x7ff60fed3992 CodeBlocksApp::InitFrame(this=0x19e5e0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\src\app.cpp:571)
#19 0x7ff60fed5416 CodeBlocksApp::OnInit(this=0x19e5e0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\src\app.cpp:810)
#20 0x7ff60fff0b55 wxAppConsoleBase::CallOnInit(this=0x19e5e0) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\include\wx\app.h:93)
#21 0x7ffebd56241d wxEntryReal(argc=@0x7ffebe5a17d0: 9, argv=0x19e000) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\init.cpp:481)
#22 0x7ffebd5fe890 wxEntry(argc=@0x7ffebe5a17d0: 9, argv=0x19e000) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\msw\main.cpp:179)
#23 0x7ffebd5fea84 wxEntry(hInstance=0x7ff60fed0000, nCmdShow=10) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\msw\main.cpp:339)
#24 0x7ff60fed2c53 WinMain(hInstance=0x7ff60fed0000, hPrevInstance=0x0, lpCmdLine=0xc4d28 "--debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug", nCmdShow=10) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13927-trunk_Just3211\src\src\app.cpp:381)
#25 0x7ff6100577aa main(argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) (D:/W/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:62)
#26 0x7ff60fed115a __tmainCRTStartup() (D:/W/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:266)
#27 0x7fffa38a7374 KERNEL32!BaseThreadInitThunk() (C:\WINDOWS\System32\kernel32.dll:??)
#28 0x7fffa489cc91 ntdll!RtlUserThreadStart() (C:\WINDOWS\SYSTEM32\ntdll.dll:??)
#29 ?? ?? () (??:??)
The file being loaded as noted in level 4 stack frame is:
Code
src\\devel33_64\\share\\codeblocks/images/wxsmith/wxCommandLinkButton16.png"
It looks to me that this file derives from the submittal [r13869] * wxSmith: Add wxCommandLinkButton to the Standard palette. of June 26 last.
I have no problems combining CB r13927 with wxWidgets-3.3.3. Note that the wxWidgets 3.2 line incorporates the 1.6.37 version of libpng whereas the 3.3 line utilizes the 1.6.55 version. Does anyone else see this, or did I screw up? I don't usually bind against 3.2 widgets, but I wanted to see if my customized build process still works there

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6220
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
I also see this kind of message in my console windows in my own built application, which is built against the wx library from msys2/mingw64 platform. I see the wx version is:

https://packages.msys2.org/base/mingw-w64-wxwidgets3.2
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.