ports/162674: RawTherapee freezes after demosaic when trying to view RAW at 100%

Sergey Kovalenko sa.kovalen at gmail.com
Sat Nov 19 02:00:21 UTC 2011


>Number:         162674
>Category:       ports
>Synopsis:       RawTherapee freezes after demosaic when trying to view RAW at 100%
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 19 02:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Kovalenko
>Release:        8.2-STABLE
>Organization:
n/a
>Environment:
System: FreeBSD nostromo.ipnet.kiev.ua 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Nov 4 22:18:24 EET 2011 root at nostromo.ipnet.kiev.ua:/usr/obj/usr/src/sys/NOSTROMO-x64.AHCI amd64
>Description:
RawTherapee compiled with OpenMP support freezes when viewing RAW at 100%: the developed image can be shown, but the program stops responding after demosaic. CPU utilization is very low:
last pid: 22515;  load averages:  0.36,  0.82,  0.77                                    up 0+01:55:45  03:47:43
90 processes:  1 running, 89 sleeping
CPU:  0.0% user,  0.0% nice,  1.5% system,  0.2% interrupt, 98.3% idle
Mem: 1050M Active, 2226M Inact, 1010M Wired, 61M Cache, 1643M Buf, 11G Free
Swap: 2048M Total, 2048M Free

  PID USERNAME      THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 1353 root            1  44    0  3203M 57380K select  0   2:48  0.39% Xorg
81041 sergey          1  44    0   116M 38460K select  4   2:25  0.00% npviewer.bin
78877 sergey         24  44    0   809M   595M ucond   2   1:41  0.00% firefox-bin
76381 sergey          8  -8    0   501M 59468K pcmwr   2   0:25  0.00% deadbeef
22145 sergey         10  58    0   624M   394M uwait   0   0:22  0.00% rawtherapee
 1005 root            1  44    0  6936K  1304K select  7   0:18  0.00% powerd

[nostromo:pts/2] (sergey) ~> procstat -t 22145
  PID    TID COMM             TDNAME           CPU  PRI STATE   WCHAN    
22145 100353 rawtherapee      -                  6  129 sleep   uwait     
22145 100362 rawtherapee      -                  4  129 sleep   uwait     
22145 100420 rawtherapee      initial thread     0  131 sleep   umtxn     
22145 100567 rawtherapee      -                  7  139 sleep   uwait     
22145 100569 rawtherapee      -                  7  137 sleep   uwait     
22145 100571 rawtherapee      -                  0  137 sleep   uwait     
22145 100572 rawtherapee      -                  3  139 sleep   uwait     
22145 100573 rawtherapee      -                  1  140 sleep   uwait     
22145 100574 rawtherapee      -                  0  142 sleep   uwait     
22145 100575 rawtherapee      -                  2  128 sleep   uwait     

[nostromo:pts/0] (sergey) ~> cat /var/db/ports/rawtherapee/options  
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for rawtherapee-4.0.2
_OPTIONS_READ=rawtherapee-4.0.2
WITH_OPTIMIZED_CFLAGS=true
WITH_OPENMP=true

Tried to compile with and without the following options in /etc/make.conf:
CFLAGS=-O -pipe -march=native
COPTFLAGS=-O -pipe -march=native
The problem still persist.

Looks very similar to the issue reported here:
http://forums.freebsd.org/showthread.php?t=25626

My system:
[nostromo:pts/0] (sergey) ~> uname -a
FreeBSD nostromo.ipnet.kiev.ua 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Nov  4 22:18:24 EET 2011     root at nostromo.ipnet.kiev.ua:/usr/obj/usr/src/sys/NOSTROMO-x64.AHCI  amd64

Hardware configuration:
CPU Core i7 2600, 16G Memory, GeForce 460GT/1G with NVidia driver 285.05.09 (from ports)
>How-To-Repeat:
Compile RawTherapee with OpenMP turned on, run the program, open any RAW-file in the separate tab, click on '1' button (scale 100%)
>Fix:
Fix is unknown.

Workaround
==========
Turn OpenMP off in port options, compile and reinstall. Performance degradation on a multiprocessor system will be huge, but the program will work normally.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list