hasshole / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
0 stars 0 forks source link

Crash #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to open cr2 file

What is the expected output? What do you see instead?
Windows crash

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by seth.bur...@gmail.com on 29 Dec 2012 at 1:59

GoogleCodeExporter commented 8 years ago
32 bit Photivo detected. 
Photivo version 2012-12-27 (rev 1f5e936ffd13)
Existing settingsfile 'C:/Documents and Settings/Seth/Application 
Data/Photivo/photivo.ini'
User directory: 'C:/Documents and Settings/Seth/Application Data/Photivo/'; 
Share directory: 'C:/Program Files/Photivo/'; 
Initializing/Updating user profile...
Lensfun database: 'C:/Program Files/Photivo/LensfunDatabase'; 
Progress : Loading channelmixers
Progress : Ready
Progress : Reading file
(../../Sources/ptProcessor.cpp,174) void ptProcessor::Run(short int, short int, 
short int, short int)
(../../Sources/ptProcessor.cpp,  265): Starting DcRaw at 0 ms.
Progress : Reading RAW file
(../../Sources/ptDcRaw.cpp, 8504): PreMult[0]          : 1.000000
(../../Sources/ptDcRaw.cpp, 8505): PreMult[1]          : 1.000000
(../../Sources/ptDcRaw.cpp, 8506): PreMult[2]          : 1.000000
(../../Sources/ptDcRaw.cpp, 8507): PreMult[3]          : 0.000000
(../../Sources/ptDcRaw.cpp, 8512): D65Mult[0]          : 2.444314
(../../Sources/ptDcRaw.cpp, 8513): D65Mult[1]          : 0.930298
(../../Sources/ptDcRaw.cpp, 8514): D65Mult[2]          : 1.163587
(../../Sources/ptDcRaw.cpp, 8515): D65Mult[3]          : 0.000000
(../../Sources/ptDcRaw.cpp, 8521): RawWidth            : 3944
(../../Sources/ptDcRaw.cpp, 8522): RawHeight           : 2622
(../../Sources/ptDcRaw.cpp, 8523): TopMargin           : 18
(../../Sources/ptDcRaw.cpp, 8524): LeftMargin          : 30
(../../Sources/ptDcRaw.cpp, 8525): BlackLevel          : 0
(../../Sources/ptDcRaw.cpp, 8536): OutWidth            : 3908
(../../Sources/ptDcRaw.cpp, 8537): Width               : 3908
(../../Sources/ptDcRaw.cpp, 8543): US_CameraWB         : 1
(../../Sources/ptDcRaw.cpp, 8544): US_CameraMatr       : -1
(../../Sources/ptDcRaw.cpp, 8545): CameraMatrix        : 1
(../../Sources/ptDcRaw.cpp, 8546): m_cmatrix[0][0      : 0.000000
(../../Sources/ptDcRaw.cpp, 8567): CameraMake          : Canon
(../../Sources/ptDcRaw.cpp, 8568): CameraModel         : EOS 40D
(../../Sources/ptDcRaw.cpp, 8569): InputFile           : C:/Documents and 
Settings/Seth/My Documents/My Pictures/2012-12-28/IMG_7308.CR2
(../../Sources/ptDcRaw.cpp, 8570): Filters             : b4b4b4b4
(../../Sources/ptDcRaw.cpp, 8571): Flip                : 0
(../../Sources/ptDcRaw.cpp, 1003): jh.high             : 2622
(../../Sources/ptDcRaw.cpp, 1004): jwide               : 3944
(../../Sources/ptDcRaw.cpp, 8612): m_Width             : 3908
(../../Sources/ptDcRaw.cpp, 8613): m_Height            : 2602
(../../Sources/ptDcRaw.cpp, 8614): m_ReportedWidth     : 3908
(../../Sources/ptDcRaw.cpp, 8615): m_ReportedHeight    : 2602
(../../Sources/ptDcRaw.cpp, 8617): PreMult[0]          : 1.000000
(../../Sources/ptDcRaw.cpp, 8618): PreMult[1]          : 1.000000
(../../Sources/ptDcRaw.cpp, 8619): PreMult[2]          : 1.000000
(../../Sources/ptDcRaw.cpp, 8620): PreMult[3]          : 0.000000
(../../Sources/ptDcRaw.cpp, 8625): D65Mult[0]          : 2.444314
(../../Sources/ptDcRaw.cpp, 8626): D65Mult[1]          : 0.930298
(../../Sources/ptDcRaw.cpp, 8627): D65Mult[2]          : 1.163587
(../../Sources/ptDcRaw.cpp, 8628): D65Mult[3]          : 0.000000
(../../Sources/ptDcRaw.cpp, 8633): Colors              : 3
(../../Sources/ptDcRaw.cpp, 8634): Filters             : b4b4b4b4
(../../Sources/ptDcRaw.cpp, 8635): Flip                : 0
(../../Sources/ptProcessor.cpp,  282): ImageW              : 3908
(../../Sources/ptProcessor.cpp,  283): ImageH              : 2602
Progress : Reading exif info
(../../Sources/ptProcessor.cpp,  293): Opened RAW at 1609 ms.
Progress : Demosaicing
(../../Sources/ptDcRaw.cpp, 8702): Shrink              : 1
(../../Sources/ptDcRaw.cpp, 8704): BlackLevel          : 1023
(../../Sources/ptDcRaw.cpp, 8705): WhiteLevel          : 16224
(../../Sources/ptDcRaw.cpp, 8706): Colors              : 3
(../../Sources/ptDcRaw.cpp, 8708): Phase2 begin Width  : 3908
(../../Sources/ptDcRaw.cpp, 8709): Phase2 begin Height : 2602
(../../Sources/ptDcRaw.cpp, 8710): Phase2 begin OutWidth: 3908
(../../Sources/ptDcRaw.cpp, 8711): Phase2 begin OutHeight: 2602
(../../Sources/ptDcRaw.cpp, 3946): Setting PreMultipliers due to 
CameraMultipliers: 
(../../Sources/ptDcRaw.cpp, 3968): PreMult[0]          : 2394.000000
(../../Sources/ptDcRaw.cpp, 3969): PreMult[1]          : 1024.000000
(../../Sources/ptDcRaw.cpp, 3970): PreMult[2]          : 1312.000000
(../../Sources/ptDcRaw.cpp, 3971): PreMult[3]          : 1024.000000
(../../Sources/ptDcRaw.cpp, 3990): dmax                : 2394.000000
(../../Sources/ptDcRaw.cpp, 3991): dmin                : 1024.000000
(../../Sources/ptDcRaw.cpp, 3992): m_MinPreMulti       : 0.427736
(../../Sources/ptDcRaw.cpp, 3993): PreMult[0]          : 1.000000
(../../Sources/ptDcRaw.cpp, 3994): PreMult[1]          : 0.427736
(../../Sources/ptDcRaw.cpp, 3995): PreMult[2]          : 0.548037
(../../Sources/ptDcRaw.cpp, 3996): PreMult[3]          : 0.427736
(../../Sources/ptDcRaw.cpp, 4001): Mult[0]             : 4.311513
(../../Sources/ptDcRaw.cpp, 4002): Mult[1]             : 1.844189
(../../Sources/ptDcRaw.cpp, 4003): Mult[2]             : 2.362712
(../../Sources/ptDcRaw.cpp, 4004): Mult[3]             : 1.844068
(../../Sources/ptDcRaw.cpp, 4010): Scaling colors      : 
(../../Sources/ptDcRaw.cpp, 8760): Colors              : 3
(../../Sources/ptDcRaw.cpp, 4242): pre_interpolate     : 
(../../Sources/ptDcRaw.cpp, 8783): Colors              : 4
(../../Sources/ptDcRaw.cpp, 8829): Interpolation type  : 5
(../../Sources/ptDcRaw.cpp, 8914): BlackLevel          : 1023
(../../Sources/ptDcRaw.cpp, 8915): WhiteLevel          : 16224
(../../Sources/ptDcRaw.cpp, 8916): Colors              : 3
(../../Sources/ptDcRaw.cpp, 8917): Filters             : 0
(../../Sources/ptDcRaw.cpp, 8919): Phase2 end Width    : 977
(../../Sources/ptDcRaw.cpp, 8920): Phase2 end Height   : 650
(../../Sources/ptDcRaw.cpp, 8921): Phase2 end OutWidth : 977
(../../Sources/ptDcRaw.cpp, 8922): Phase2 end OutHeight: 650
(../../Sources/ptProcessor.cpp,  303): Done Color Scaling and Interpolation at 
1812 ms.
Progress : Recovering highlights
(../../Sources/ptDcRaw.cpp, 8950): CamMult[0]          : 2394.000000
(../../Sources/ptDcRaw.cpp, 8951): CamMult[1]          : 1024.000000
(../../Sources/ptDcRaw.cpp, 8952): CamMult[2]          : 1312.000000
(../../Sources/ptDcRaw.cpp, 8953): CamMult[3]          : 1024.000000
(../../Sources/ptDcRaw.cpp, 4040): ClipMode            : 4
(../../Sources/ptDcRaw.cpp, 4041): ClipParameter       : 0
(../../Sources/ptDcRaw.cpp, 4043): m_Multi[0]          : 4.311513
(../../Sources/ptDcRaw.cpp, 4044): m_Multi[1]          : 1.844189
(../../Sources/ptDcRaw.cpp, 4045): m_Multi[2]          : 2.362712
(../../Sources/ptDcRaw.cpp, 4046): m_Multi[3]          : 1.844068
(../../Sources/ptDcRaw.cpp, 4052): m_MinPreMulti       : 0.427736
(../../Sources/ptProcessor.cpp,  312): Done Highlights at 1859 ms.
(../../Sources/ptProcessor.cpp,  338): Found adobe profile : C:/Program 
Files/Photivo/Profiles/Camera/Standard/Canon_EOS_40D.icc
(../../Sources/ptProcessor.cpp,  339): Found profile at 1859 ms.
(../../Sources/ptSettings.cpp, 1514): EOSExposureNorm     : 1.710944
(../../Sources/ptSettings.cpp, 1520): ExposureNorm(EV)    : 2.000000
(../../Sources/ptProcessor.cpp,  398): Done m_Image_AfterDcRaw transfer to GUI 
at 1968 ms.
(../../Sources/ptProcessor.cpp, 2376): RotateW             : 3908
(../../Sources/ptProcessor.cpp, 2377): RotateH             : 2600
(../../Sources/ptProcessor.cpp, 2423): CropW               : 3908
(../../Sources/ptProcessor.cpp, 2424): CropH               : 2600
Progress : Color Intensity
Progress : Correcting Exposure
(../../Sources/ptProcessor.cpp,  502): ExposureFactor      : 4.000000
Progress : Texture contrast 1
(../../Sources/ptProcessor.cpp,  723): Done conversion to LAB at 2062 ms.
(../../Sources/ptProcessor.cpp,  732): Done texture contrast 1 at 2328 ms.
Progress : Texture contrast 2
(../../Sources/ptProcessor.cpp,  753): Done texture contrast 2 at 2515 ms.

Original comment by seth.bur...@gmail.com on 29 Dec 2012 at 2:00

GoogleCodeExporter commented 8 years ago
https://www.dropbox.com/s/rf6gq5bj6w2itbx/IMG_7308.CR2 is the cr2 file it tried 
to load. This machine is WinXP 32-bit.

Original comment by seth.bur...@gmail.com on 29 Dec 2012 at 2:32

GoogleCodeExporter commented 8 years ago
Thank you for reporting.

The image works fine on my system, and there *shouldn't* be any problem with 
RAWs from the Canon 40D. But there was another problem lately on WinXP32, 
namely the Wiener filter was broken due to some dll problems. Could you please 
open Photivo, disable Wiener filter (or best all filters) and open the image? 
If it works, could you verify that it is the Wiener filter? Please report back.

greets mike

Original comment by m...@mm-log.com on 29 Dec 2012 at 11:27

GoogleCodeExporter commented 8 years ago
Absolutely correct - loads fine without any filters, crashes as soon as
Wiener sharpen is enabled.

Original comment by seth.bur...@gmail.com on 29 Dec 2012 at 11:41

GoogleCodeExporter commented 8 years ago
Absolutely correct; loads fine without any filters, crashes as soon as Wiener 
filter is enabled.

Original comment by seth.bur...@gmail.com on 29 Dec 2012 at 11:41

GoogleCodeExporter commented 8 years ago
Like mike I cannot reproduce the crash but we had reports that exchanging 
libfftw for an older version helps. I built an installer accordingly:
https://photivo.googlecode.com/files/photivo-setup-2012-12-27-2-win32.exe

Can you please try it and report back if it still crashes?

Original comment by brother.john.gm@googlemail.com on 29 Dec 2012 at 12:58

GoogleCodeExporter commented 8 years ago
Same crash behavior with the new installer (uninstalled previous, installed 
new).

Original comment by seth.bur...@gmail.com on 29 Dec 2012 at 1:51

GoogleCodeExporter commented 8 years ago
I can verify that the libfftw3-3.dll you included is the one being loaded.

C:\Program Files\Photivo>listdlls -v -d libfftw3-3.dll

ListDLLs v3.1 - List loaded DLLs
Copyright (C) 1997-2011 Mark Russinovich
Sysinternals - www.sysinternals.com

------------------------------------------------------------------------------
photivo.exe pid: 244
Command line: photivo.exe

Base        Size      Path
0x70680000  0x14a000  libfftw3-3.dll
        Verified:       Unsigned
        Publisher:      n/a
        Description:    n/a
        Product:        n/a
        Version:        n/a
        File version:   n/a
        Create time:    Sat Dec 29 06:42:29 2012

Original comment by seth.bur...@gmail.com on 29 Dec 2012 at 1:59

GoogleCodeExporter commented 8 years ago
OK, the correct DLL, that’s something. Is there something noteworthy about 
your WinXP system – anything? What *I* have here is WinXP Home 32bit SP3 with 
recent updates.

I’m beginning to run out of ideas, but two more ideas:
1) Here’s a libfftw without SSE2 and lower optimization (just replace 
existing file): https://photivo.googlecode.com/files/libfftw3-3.dll
2) Photivo 32bit built completely with the older toolchain. Unpack to some 
folder and use from there: 
https://photivo.googlecode.com/files/photivo-2012-12-27-win32.zip

Does any of these fix the crash?

Original comment by brother.john.gm@googlemail.com on 29 Dec 2012 at 3:44

GoogleCodeExporter commented 8 years ago
Nothing too out of the ordinary; an older core2 duo XP SP3 machine.  I've
got a plex media server running, dropbox active - otherwise not a lot of
interest really.  My current photo processing is mostly picasa so I was
looking for a step up for the nicer shots (and maybe some recovery of
previously hopeless shots).

Onto the tests:

1) Still crashed, though it seems to have taken longer to do so?
2) It doesn't run at all (no startup message or initial screen ever shows
up, its not in the process list for very long)

Original comment by seth.bur...@gmail.com on 31 Dec 2012 at 3:23

GoogleCodeExporter commented 8 years ago
I have the very same problem. It's quite strange. On my travel netbook Photivo 
originally crashed, but after some time the problem resolved spontaneously. A 
few days ago I updated it, the crashes were back, so I returned to the older 
version, and it's fine now. On a slightly better workplace machine the same 
thing happened, but now even the current version works correctly. On my main 
computer only the current version has been installed, and it crashes.

In the troubleshooter log file the last entries are:
"Progress : Wiener Filter
QObject::killTimers: timers cannot be stopped from another thread"

Original comment by szalips...@googlemail.com on 5 Jan 2013 at 12:00

GoogleCodeExporter commented 8 years ago
Merging this one into issue 97. Please continue the discussion there.

Original comment by brother.john.gm@googlemail.com on 5 Jan 2013 at 9:53