[OSGeoLive] #2171: otb Monteverdi crashes on image open

OSGeoLive trac_osgeolive at osgeo.org
Tue Aug 6 20:19:29 PDT 2019


#2171: otb Monteverdi crashes on image open
-----------------------+---------------------------
 Reporter:  darkblueb  |      Owner:  osgeolive@…
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  OSGeoLive13.0
Component:  OSGeoLive  |   Keywords:  otb
-----------------------+---------------------------
 execute `/usr/bin/monteverdi` on **build234**;
 open `~/data/raster/relief_san_andres.tif`; crash

 retry with `gdb`
 {{{
 WARNG> Failed to restore window layout!
 WARNG> Required OpenGL version '2.0.0' with GLSL version '1.20'.
 WARNG> Runtime OpenGL version '3.1 Mesa 18.2.2' with GLSL version '1.40'.
 [New Thread 0x7fff77fff700 (LWP 13041)]
 [Thread 0x7fff77fff700 (LWP 13041) exited]
 2019-08-07 03:13:48 (INFO): No kwl metadata found in file
 /home/user/data/raster/relief_san_andres.tif
 [New Thread 0x7fff77fff700 (LWP 13044)]
 2019-08-07 03:13:48 (INFO): No kwl metadata found in file
 /home/user/data/raster/relief_san_andres.tif
 2019-08-07 03:13:48 (INFO): No kwl metadata found in file
 /home/user/data/raster/relief_san_andres.tif
 2019-08-07 03:13:48 (INFO): Default RAM limit for OTB is 128 MB
 2019-08-07 03:13:48 (INFO): GDAL maximum cache size is 801 MB
 2019-08-07 03:13:48 (INFO): OTB will use at most 16 threads
 2019-08-07 03:13:48 (INFO): Estimated memory for full processing:
 0.950623MB (avail.: 128 MB), optimal image partitioning: 1 blocks
 2019-08-07 03:13:48 (INFO): Estimation will be performed in 1 blocks of
 360x240 pixels
 [New Thread 0x7fff6ffff700 (LWP 13045)]
 [Thread 0x7fff6ffff700 (LWP 13045) exited]
 [New Thread 0x7fff6f7fe700 (LWP 13046)]
 [New Thread 0x7fff6effd700 (LWP 13047)]
 [Thread 0x7fff6f7fe700 (LWP 13046) exited]
 [New Thread 0x7fff6e7fc700 (LWP 13048)]
 [Thread 0x7fff6effd700 (LWP 13047) exited]
 [New Thread 0x7fff6dffb700 (LWP 13049)]
 [Thread 0x7fff6e7fc700 (LWP 13048) exited]
 [New Thread 0x7fff6d7fa700 (LWP 13050)]
 [Thread 0x7fff6dffb700 (LWP 13049) exited]
 [New Thread 0x7fff6cff9700 (LWP 13051)]
 [Thread 0x7fff6d7fa700 (LWP 13050) exited]
 [New Thread 0x7fff6c7f8700 (LWP 13052)]
 [Thread 0x7fff6cff9700 (LWP 13051) exited]
 [New Thread 0x7fff6bff7700 (LWP 13053)]
 [Thread 0x7fff6c7f8700 (LWP 13052) exited]
 [New Thread 0x7fff6b7f6700 (LWP 13054)]
 [Thread 0x7fff6bff7700 (LWP 13053) exited]
 [New Thread 0x7fff6aff5700 (LWP 13055)]
 [Thread 0x7fff6b7f6700 (LWP 13054) exited]
 [New Thread 0x7fff6a7f4700 (LWP 13056)]
 [Thread 0x7fff6aff5700 (LWP 13055) exited]
 [New Thread 0x7fff69ff3700 (LWP 13057)]
 [Thread 0x7fff6a7f4700 (LWP 13056) exited]
 [New Thread 0x7fff697f2700 (LWP 13058)]
 [Thread 0x7fff69ff3700 (LWP 13057) exited]
 [New Thread 0x7fff68ff1700 (LWP 13059)]
 [Thread 0x7fff697f2700 (LWP 13058) exited]
 [Thread 0x7fff68ff1700 (LWP 13059) exited]
 2019-08-07 03:13:48 (INFO): Estimated memory for full processing:
 0.950623MB (avail.: 128 MB), optimal image partitioning: 1 blocks
 2019-08-07 03:13:48 (INFO): Estimation will be performed in 1 blocks of
 360x240 pixels
 [New Thread 0x7fff68ff1700 (LWP 13060)]
 [New Thread 0x7fff697f2700 (LWP 13061)]
 [New Thread 0x7fff69ff3700 (LWP 13062)]
 [New Thread 0x7fff6a7f4700 (LWP 13063)]
 [Thread 0x7fff68ff1700 (LWP 13060) exited]
 [New Thread 0x7fff6ffff700 (LWP 13064)]
 [Thread 0x7fff6a7f4700 (LWP 13063) exited]
 [Thread 0x7fff69ff3700 (LWP 13062) exited]
 [Thread 0x7fff697f2700 (LWP 13061) exited]
 [New Thread 0x7fff6f7fe700 (LWP 13065)]
 [New Thread 0x7fff6effd700 (LWP 13066)]
 [New Thread 0x7fff6e7fc700 (LWP 13067)]
 [Thread 0x7fff6ffff700 (LWP 13064) exited]
 [New Thread 0x7fff6dffb700 (LWP 13068)]
 [Thread 0x7fff6effd700 (LWP 13066) exited]
 [Thread 0x7fff6f7fe700 (LWP 13065) exited]
 [New Thread 0x7fff6d7fa700 (LWP 13069)]
 [Thread 0x7fff6e7fc700 (LWP 13067) exited]
 [Thread 0x7fff6dffb700 (LWP 13068) exited]
 [New Thread 0x7fff6cff9700 (LWP 13070)]
 [Thread 0x7fff6d7fa700 (LWP 13069) exited]
 [New Thread 0x7fff6c7f8700 (LWP 13071)]
 [New Thread 0x7fff6bff7700 (LWP 13072)]
 [Thread 0x7fff6cff9700 (LWP 13070) exited]
 [New Thread 0x7fff6b7f6700 (LWP 13073)]
 [New Thread 0x7fff6aff5700 (LWP 13074)]
 [Thread 0x7fff6c7f8700 (LWP 13071) exited]
 [Thread 0x7fff6bff7700 (LWP 13072) exited]
 [Thread 0x7fff6aff5700 (LWP 13074) exited]
 [Thread 0x7fff6b7f6700 (LWP 13073) exited]
 [Thread 0x7fff77fff700 (LWP 13044) exited]

 itk::ExceptionObject (0x55555668b3e0)
 Location: "unknown"
 File: /build/otb-
 3NLmOQ/otb-6.6.1+dfsg/Modules/Visualization/Ice/src/otbFragmentShaderRegistry.cxx
 Line: 91
 Description: itk::ERROR: Object(0x5555561777b0): Shader StandardShader
 with sources uniform sampler2D src;
 uniform vec4 shader_a;
 uniform vec4 shader_b;
 uniform int shader_use_no_data;
 uniform float shader_no_data;
 uniform vec3 shader_current;
 uniform vec4 shader_gamma;
 uniform float shader_alpha;
 uniform vec2 shader_center;
 uniform int shader_type;
 uniform float shader_radius;
 uniform float shader_localc_range;
 uniform float shader_spectral_angle_range;
 uniform float shader_chessboard_size;
 uniform float shader_slider_pos;
 uniform int shader_vertical_slider_flag;
 void main (void) {
 vec4 p = texture2D(src, gl_TexCoord[0].xy);
 vec4 colors = pow( clamp( ( p+shader_b ) * shader_a, 0.0, 1.0 ),
 shader_gamma );
 gl_FragColor = colors;
 gl_FragColor[3] = clamp(shader_alpha,0.0,1.0);
 if(shader_use_no_data > 0 && vec3(p) == vec3(shader_no_data)){
 gl_FragColor[3] = 0.;
 }
 float alpha = gl_FragColor[3];
 float dist = distance(gl_FragCoord.xy,shader_center);
 if(shader_type == 1)
 {
 if(dist < shader_radius)
 {
 vec3 tmp =
 clamp((vec3(p)-vec3(shader_current)+vec3(shader_localc_range))/(2.*vec3(shader_localc_range)),0.0,1.0);
 gl_FragColor[0] = tmp[0];
 gl_FragColor[1] = tmp[1];
 gl_FragColor[2] = tmp[2];
 gl_FragColor[3] = alpha;
 }
 }
 else if(shader_type == 2){
 gl_FragColor[3] = dist > shader_radius ? 1.0 : 0.0;
 }
 else if(shader_type == 3)
 {
 float alpha = (mod(floor(gl_FragCoord.x / shader_chessboard_size), 2.0) ==
 0.) != (mod(floor(gl_FragCoord.y / shader_chessboard_size), 2.0) == 1.) ?
 shader_alpha : 0.0;
 gl_FragColor[3] = clamp(alpha,0.0,1.0);
 }
 else if(shader_type == 4)
 {
 float alpha = (shader_vertical_slider_flag == 0 && gl_FragCoord.x >
 shader_slider_pos) || (shader_vertical_slider_flag == 1 && gl_FragCoord.y
 > shader_slider_pos) ? 1.0 : 0.0;
 gl_FragColor[3] = clamp(alpha,0.0,1.0);
 }
 else if(shader_type == 5)
 {
 if(dist < shader_radius)
 {
 float angle =
 acos(clamp(dot(vec3(p),shader_current)/(length(vec3(p))*length(shader_current)),-1.0,1.0));
 vec3 tmp =
 clamp(vec3(1.-shader_spectral_angle_range*abs(angle)/3.142),0.0,1.0);
 gl_FragColor[0] = tmp[0];
 gl_FragColor[1] = tmp[1];
 gl_FragColor[2] = tmp[2];
 gl_FragColor[3] = alpha;
 }
 }
 else if(shader_type == 7)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = -abs( 3.95 * (color - 0.7460)) + 1.5;
 mapped[1] = -abs( 3.95 * (color - 0.492)) + 1.5;
 mapped[2] = -abs( 3.95 * (color - 0.2385)) + 1.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 8)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = -abs( 3.95 * (color - 0.7460)) + 1.5;
 mapped[1] = -abs( 3.95 * (color - 0.492)) + 1.5;
 mapped[2] = -abs( 3.95 * (color - 0.2385)) + 1.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 9)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = 63.0 / 26.0 * color - 1.0 / 13.0;
 mapped[1] = 63.0 / 26.0 * color - 11.0 / 13.0;
 mapped[2] = 4.5 * color - 3.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 10)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = 63.0 / 26.0 * color - 1.0 / 13.0;
 mapped[1] = 63.0 / 26.0 * color - 11.0 / 13.0;
 mapped[2] = 4.5 * color - 3.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 11)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = 0.0;
 mapped[1] = color;
 mapped[2] = 1.0 - 0.5 * color;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 12)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = 0.0;
 mapped[1] = color;
 mapped[2] = 1.0 - 0.5 * color;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 13)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 0.5*color+0.5;
 mapped[2] = 0.4;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 14)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 0.5*color+0.5;
 mapped[2] = 0.4;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 15)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 1.0-color;
 mapped[2] = 1.0;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 16)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 1.0-color;
 mapped[2] = 1.0;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 6)
 {
 if(dist < shader_radius)
 {
 vec2 size = vec2(textureSize(src,0));
 vec2 dx = vec2(gl_TexCoord[0].xy);
 dx[0]+=1.0/size[0];
 vec2 dy = vec2(gl_TexCoord[0].xy);
 dy[1]+=1.0/size[1];
 vec4 pdx = texture2D(src, dx);
 vec4 pdy = texture2D(src, dy);
 gl_FragColor = clamp(pow(5*shader_a*(0.5*abs((pdx-p))+
 0.5*abs((pdy-p))),shader_gamma),0.0,1.0);
 gl_FragColor[3] = alpha;
 }
 }
 } failed to compile: 0:202(18): error: no matching function for call to
 `textureSize(sampler2D, int)'; candidates are:
 0:202(13): error: cannot construct `vec2' from a non-numeric data type
 0:209(26): error: could not implicitly convert operands to arithmetic
 operator
 0:209(26): error: operands to arithmetic operators must be numeric
 0:209(22): error: no matching function for call to `pow(error, vec4)';
 candidates are:
 0:209(22): error:    float pow(float, float)
 0:209(22): error:    vec2 pow(vec2, vec2)
 0:209(22): error:    vec3 pow(vec3, vec3)
 0:209(22): error:    vec4 pow(vec4, vec4)
 0:209(16): error: no matching function for call to `clamp(error, float,
 float)'; candidates are:
 0:209(16): error:    float clamp(float, float, float)
 0:209(16): error:    vec2 clamp(vec2, float, float)
 0:209(16): error:    vec3 clamp(vec3, float, float)
 0:209(16): error:    vec4 clamp(vec4, float, float)
 0:209(16): error:    vec2 clamp(vec2, vec2, vec2)
 0:209(16): error:    vec3 clamp(vec3, vec3, vec3)
 0:209(16): error:


 2019-08-07 03:13:49 (INFO): No kwl metadata found in file
 /home/user/data/raster/relief_san_andres.tif

 itk::ExceptionObject (0x555556695ec0)
 Location: "unknown"
 File: /build/otb-
 3NLmOQ/otb-6.6.1+dfsg/Modules/Visualization/Ice/src/otbFragmentShaderRegistry.cxx
 Line: 91
 Description: itk::ERROR: Object(0x5555561777b0): Shader StandardShader
 with sources uniform sampler2D src;
 uniform vec4 shader_a;
 uniform vec4 shader_b;
 uniform int shader_use_no_data;
 uniform float shader_no_data;
 uniform vec3 shader_current;
 uniform vec4 shader_gamma;
 uniform float shader_alpha;
 uniform vec2 shader_center;
 uniform int shader_type;
 uniform float shader_radius;
 uniform float shader_localc_range;
 uniform float shader_spectral_angle_range;
 uniform float shader_chessboard_size;
 uniform float shader_slider_pos;
 uniform int shader_vertical_slider_flag;
 void main (void) {
 vec4 p = texture2D(src, gl_TexCoord[0].xy);
 vec4 colors = pow( clamp( ( p+shader_b ) * shader_a, 0.0, 1.0 ),
 shader_gamma );
 gl_FragColor = colors;
 gl_FragColor[3] = clamp(shader_alpha,0.0,1.0);
 if(shader_use_no_data > 0 && vec3(p) == vec3(shader_no_data)){
 gl_FragColor[3] = 0.;
 }
 float alpha = gl_FragColor[3];
 float dist = distance(gl_FragCoord.xy,shader_center);
 if(shader_type == 1)
 {
 if(dist < shader_radius)
 {
 vec3 tmp =
 clamp((vec3(p)-vec3(shader_current)+vec3(shader_localc_range))/(2.*vec3(shader_localc_range)),0.0,1.0);
 gl_FragColor[0] = tmp[0];
 gl_FragColor[1] = tmp[1];
 gl_FragColor[2] = tmp[2];
 gl_FragColor[3] = alpha;
 }
 }
 else if(shader_type == 2){
 gl_FragColor[3] = dist > shader_radius ? 1.0 : 0.0;
 }
 else if(shader_type == 3)
 {
 float alpha = (mod(floor(gl_FragCoord.x / shader_chessboard_size), 2.0) ==
 0.) != (mod(floor(gl_FragCoord.y / shader_chessboard_size), 2.0) == 1.) ?
 shader_alpha : 0.0;
 gl_FragColor[3] = clamp(alpha,0.0,1.0);
 }
 else if(shader_type == 4)
 {
 float alpha = (shader_vertical_slider_flag == 0 && gl_FragCoord.x >
 shader_slider_pos) || (shader_vertical_slider_flag == 1 && gl_FragCoord.y
 > shader_slider_pos) ? 1.0 : 0.0;
 gl_FragColor[3] = clamp(alpha,0.0,1.0);
 }
 else if(shader_type == 5)
 {
 if(dist < shader_radius)
 {
 float angle =
 acos(clamp(dot(vec3(p),shader_current)/(length(vec3(p))*length(shader_current)),-1.0,1.0));
 vec3 tmp =
 clamp(vec3(1.-shader_spectral_angle_range*abs(angle)/3.142),0.0,1.0);
 gl_FragColor[0] = tmp[0];
 gl_FragColor[1] = tmp[1];
 gl_FragColor[2] = tmp[2];
 gl_FragColor[3] = alpha;
 }
 }
 else if(shader_type == 7)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = -abs( 3.95 * (color - 0.7460)) + 1.5;
 mapped[1] = -abs( 3.95 * (color - 0.492)) + 1.5;
 mapped[2] = -abs( 3.95 * (color - 0.2385)) + 1.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 8)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = -abs( 3.95 * (color - 0.7460)) + 1.5;
 mapped[1] = -abs( 3.95 * (color - 0.492)) + 1.5;
 mapped[2] = -abs( 3.95 * (color - 0.2385)) + 1.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 9)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = 63.0 / 26.0 * color - 1.0 / 13.0;
 mapped[1] = 63.0 / 26.0 * color - 11.0 / 13.0;
 mapped[2] = 4.5 * color - 3.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 10)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = 63.0 / 26.0 * color - 1.0 / 13.0;
 mapped[1] = 63.0 / 26.0 * color - 11.0 / 13.0;
 mapped[2] = 4.5 * color - 3.5;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 11)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = 0.0;
 mapped[1] = color;
 mapped[2] = 1.0 - 0.5 * color;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 12)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = 0.0;
 mapped[1] = color;
 mapped[2] = 1.0 - 0.5 * color;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 13)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 0.5*color+0.5;
 mapped[2] = 0.4;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 14)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 0.5*color+0.5;
 mapped[2] = 0.4;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 15)
 {
 float color = colors[0];
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 1.0-color;
 mapped[2] = 1.0;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 else if(shader_type == 16)
 {
 if(dist < shader_radius)
 {
 float
 color=clamp((p[0]-shader_current[0]+shader_localc_range)/(2.*shader_localc_range),0.0,1.0);
 vec3 mapped;
 mapped[0] = color;
 mapped[1] = 1.0-color;
 mapped[2] = 1.0;
 mapped = clamp(mapped,0.0,1.0);
 gl_FragColor[0] = mapped[0];
 gl_FragColor[1] = mapped[1];
 gl_FragColor[2] = mapped[2];
 }
 }
 else if(shader_type == 6)
 {
 if(dist < shader_radius)
 {
 vec2 size = vec2(textureSize(src,0));
 vec2 dx = vec2(gl_TexCoord[0].xy);
 dx[0]+=1.0/size[0];
 vec2 dy = vec2(gl_TexCoord[0].xy);
 dy[1]+=1.0/size[1];
 vec4 pdx = texture2D(src, dx);
 vec4 pdy = texture2D(src, dy);
 gl_FragColor = clamp(pow(5*shader_a*(0.5*abs((pdx-p))+
 0.5*abs((pdy-p))),shader_gamma),0.0,1.0);
 gl_FragColor[3] = alpha;
 }
 }
 } failed to compile: 0:202(18): error: no matching function for call to
 `textureSize(sampler2D, int)'; candidates are:
 0:202(13): error: cannot construct `vec2' from a non-numeric data type
 0:209(26): error: could not implicitly convert operands to arithmetic
 operator
 0:209(26): error: operands to arithmetic operators must be numeric
 0:209(22): error: no matching function for call to `pow(error, vec4)';
 candidates are:
 0:209(22): error:    float pow(float, float)
 0:209(22): error:    vec2 pow(vec2, vec2)
 0:209(22): error:    vec3 pow(vec3, vec3)
 0:209(22): error:    vec4 pow(vec4, vec4)
 0:209(16): error: no matching function for call to `clamp(error, float,
 float)'; candidates are:
 0:209(16): error:    float clamp(float, float, float)
 0:209(16): error:    vec2 clamp(vec2, float, float)
 0:209(16): error:    vec3 clamp(vec3, float, float)
 0:209(16): error:    vec4 clamp(vec4, float, float)
 0:209(16): error:    vec2 clamp(vec2, vec2, vec2)
 0:209(16): error:    vec3 clamp(vec3, vec3, vec3)
 0:209(16): error:


 2019-08-07 03:13:49 (INFO): No kwl metadata found in file
 /home/user/data/raster/relief_san_andres.tif
 [New Thread 0x7fff77fff700 (LWP 13075)]
 [New Thread 0x7fff6aff5700 (LWP 13076)]
 [Thread 0x7fff77fff700 (LWP 13075) exited]
 [New Thread 0x7fff6b7f6700 (LWP 13077)]
 [Thread 0x7fff6aff5700 (LWP 13076) exited]
 [New Thread 0x7fff6bff7700 (LWP 13078)]
 [Thread 0x7fff6b7f6700 (LWP 13077) exited]
 [New Thread 0x7fff6ffff700 (LWP 13079)]
 [Thread 0x7fff6bff7700 (LWP 13078) exited]
 [New Thread 0x7fff6f7fe700 (LWP 13080)]
 [Thread 0x7fff6ffff700 (LWP 13079) exited]
 [New Thread 0x7fff6effd700 (LWP 13081)]
 [Thread 0x7fff6f7fe700 (LWP 13080) exited]
 [New Thread 0x7fff6e7fc700 (LWP 13082)]
 [Thread 0x7fff6effd700 (LWP 13081) exited]
 [New Thread 0x7fff6dffb700 (LWP 13083)]
 [Thread 0x7fff6e7fc700 (LWP 13082) exited]
 [New Thread 0x7fff6d7fa700 (LWP 13084)]
 [Thread 0x7fff6dffb700 (LWP 13083) exited]
 [New Thread 0x7fff6cff9700 (LWP 13085)]
 [Thread 0x7fff6d7fa700 (LWP 13084) exited]
 [New Thread 0x7fff6c7f8700 (LWP 13086)]
 [Thread 0x7fff6cff9700 (LWP 13085) exited]
 [New Thread 0x7fff6a7f4700 (LWP 13087)]
 [Thread 0x7fff6c7f8700 (LWP 13086) exited]
 [New Thread 0x7fff69ff3700 (LWP 13088)]
 [Thread 0x7fff6a7f4700 (LWP 13087) exited]
 [New Thread 0x7fff697f2700 (LWP 13089)]
 [Thread 0x7fff69ff3700 (LWP 13088) exited]
 [Thread 0x7fff697f2700 (LWP 13089) exited]
 [New Thread 0x7fff697f2700 (LWP 13090)]
 [New Thread 0x7fff69ff3700 (LWP 13091)]
 [Thread 0x7fff697f2700 (LWP 13090) exited]
 [New Thread 0x7fff6a7f4700 (LWP 13092)]
 [Thread 0x7fff69ff3700 (LWP 13091) exited]
 [New Thread 0x7fff6c7f8700 (LWP 13093)]
 [Thread 0x7fff6a7f4700 (LWP 13092) exited]
 [New Thread 0x7fff77fff700 (LWP 13094)]
 [Thread 0x7fff6c7f8700 (LWP 13093) exited]
 [New Thread 0x7fff6ffff700 (LWP 13095)]
 [Thread 0x7fff77fff700 (LWP 13094) exited]
 [New Thread 0x7fff6f7fe700 (LWP 13096)]
 [Thread 0x7fff6ffff700 (LWP 13095) exited]
 [New Thread 0x7fff6effd700 (LWP 13097)]
 [Thread 0x7fff6f7fe700 (LWP 13096) exited]
 [New Thread 0x7fff6e7fc700 (LWP 13098)]
 [Thread 0x7fff6effd700 (LWP 13097) exited]
 [New Thread 0x7fff6dffb700 (LWP 13099)]
 [Thread 0x7fff6e7fc700 (LWP 13098) exited]
 [New Thread 0x7fff6d7fa700 (LWP 13100)]
 [Thread 0x7fff6dffb700 (LWP 13099) exited]
 [New Thread 0x7fff6cff9700 (LWP 13101)]
 [Thread 0x7fff6d7fa700 (LWP 13100) exited]
 [New Thread 0x7fff6bff7700 (LWP 13102)]
 [Thread 0x7fff6cff9700 (LWP 13101) exited]
 [New Thread 0x7fff6b7f6700 (LWP 13103)]
 [Thread 0x7fff6bff7700 (LWP 13102) exited]
 [New Thread 0x7fff6aff5700 (LWP 13104)]
 [Thread 0x7fff6b7f6700 (LWP 13103) exited]
 [Thread 0x7fff6aff5700 (LWP 13104) exited]
 terminate called after throwing an instance of 'itk::ExceptionObject'
   what():  /build/otb-
 3NLmOQ/otb-6.6.1+dfsg/Modules/Visualization/Ice/src/otbFragmentShaderRegistry.cxx:155:
 itk::ERROR: Object(0x5555561777b0): No shader with name StandardShader has
 been registered.

 Thread 1 "monteverdi" received signal SIGABRT, Aborted.
 0x00007ffff5ad7e97 in raise () from /lib/x86_64-linux-gnu/libc.so.6

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2171>
OSGeoLive <http://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list