[mcxtrace-users] Problems with Source Div in McXtrace 3.0 on Binder
Jesus David Bermudez Sanchez
jdbermudezs at unal.edu.co
Mon May 9 23:18:44 CEST 2022
Hi to all.
Thank you for your replies.
I followed the instructions given by Peter in his response found here
<https://mailman2.mcxtrace.org/pipermail/mcxtrace-users/2022q2/000076.html>
Now the GUI inside Binder shows me a different error that I think it's
related to the Source_div component.
I am attaching the files of my simulation and a .txt file with the error.
Kind regards.
--
*Aviso legal:* El contenido de este mensaje y los archivos adjuntos son
confidenciales y de uso exclusivo de la Universidad Nacional de Colombia.
Se encuentran dirigidos sólo para el uso del destinatario al cual van
enviados. La reproducción, lectura y/o copia se encuentran prohibidas a
cualquier persona diferente a este y puede ser ilegal. Si usted lo ha
recibido por error, infórmenos y elimínelo de su correo. Los Datos
Personales serán tratados conforme a la Ley 1581 de 2012 y a nuestra
Política de Datos Personales que podrá consultar en la página web
www.unal.edu.co <http://www.unal.edu.co/>.* *Las opiniones, informaciones,
conclusiones y cualquier otro tipo de dato contenido en este correo
electrónico, no relacionados con la actividad de la Universidad Nacional de
Colombia, se entenderá como personales y de ninguna manera son avaladas por
la Universidad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcxtrace.org/pipermail/mcxtrace-users/attachments/20220509/573fa095/attachment.html>
-------------- next part --------------
NFO: Recompiling: ./PMMA-Matrix-PLY-w-2D-Square-Source.out
./PMMA-Matrix-PLY-w-2D-Square-Source.c: In function ‘class_Source_div_init’:
./PMMA-Matrix-PLY-w-2D-Square-Source.c:9382:93: warning: format ‘%g’ expects a matching ‘double’ argument [-Wformat=]
9382 | fprintf(stderr,"ERROR (%s): Cannot have focus sampling window (focus_xw x focus_yh) = (%g x %g) with dist=0.\n",NAME_CURRENT_COMP);
| ~^
| |
| double
./PMMA-Matrix-PLY-w-2D-Square-Source.c:9382:98: warning: format ‘%g’ expects a matching ‘double’ argument [-Wformat=]
9382 | fprintf(stderr,"ERROR (%s): Cannot have focus sampling window (focus_xw x focus_yh) = (%g x %g) with dist=0.\n",NAME_CURRENT_COMP);
| ~^
| |
| double
./PMMA-Matrix-PLY-w-2D-Square-Source.c: In function ‘Open_File.part.0’:
./PMMA-Matrix-PLY-w-2D-Square-Source.c:6339:41: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
6339 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File);
| ^
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:6354:41: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
6354 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File);
| ^
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:6362:37: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
6362 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File);
| ^
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:6368:35: warning: ‘%s’ directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
6368 | snprintf(path, 1024, "%s%c%s%c%s", dir, MC_PATHSEP_C, "data", MC_PATHSEP_C, File);
| ^~ ~~~~~~
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 7 or more bytes (assuming 1030) into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:6374:35: warning: ‘%s’ directive output may be truncated writing 7 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
6374 | snprintf(path, 1024, "%s%c%s%c%s", dir, MC_PATHSEP_C, "contrib", MC_PATHSEP_C, File);
| ^~ ~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 10 or more bytes (assuming 1033) into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c: In function ‘detector_import’:
./PMMA-Matrix-PLY-w-2D-Square-Source.c:2067:55: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
2067 | snprintf(detector.variables, CHAR_BUF_LENGTH, "%s %s_err N", c, c);
| ^~ ~
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 8 and 2054 bytes into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:2065:55: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
2065 | snprintf(detector.variables, CHAR_BUF_LENGTH, "%s %s %s_err N", detector.xvar, c, c);
| ^~ ~
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 9 and 3078 bytes into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c: In function ‘off_display’:
./PMMA-Matrix-PLY-w-2D-Square-Source.c:8647:30: warning: ‘%g’ directive writing between 1 and 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
8647 | sprintf(pixelinfo, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz);
| ^~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:8647:26: note: assuming directive output of 12 bytes
8647 | sprintf(pixelinfo, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz);
| ^~~~~~~~~~~~~
./PMMA-Matrix-PLY-w-2D-Square-Source.c:8647:26: note: assuming directive output of 12 bytes
./PMMA-Matrix-PLY-w-2D-Square-Source.c:8647:26: note: assuming directive output of 12 bytes
In file included from /usr/include/stdio.h:867,
from ./PMMA-Matrix-PLY-w-2D-Square-Source.c:174:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 7 and 1066 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: ===
begin instrument: PMMA_Matrix_PLY_w_2D_Square_Source_and_Be_Filter
Creator: McXtrace 3.0 - Feb. 07, 2022
Source: PMMA-Matrix-PLY-w-2D-Square-Source.instr
Parameters:
Trace_enabled: yes
Default_main: yes
Embedded_runtime: yes
end instrument
begin simulation: .
Format: McStas
URL: http://www.mccode.org
Creator: McXtrace 3.0 - Feb. 07, 2022
Instrument: PMMA-Matrix-PLY-w-2D-Square-Source.instr
Ncount: 1000000
Trace: no
Gravitation: no
Seed: 1652129357613026
Directory: .
end simulation
loading system configuration
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instr+materialData+CompWpsdMonitor.7z
Type: application/octet-stream
Size: 4725 bytes
Desc: not available
URL: <http://mailman2.mcxtrace.org/pipermail/mcxtrace-users/attachments/20220509/573fa095/attachment.obj>
More information about the mcxtrace-users
mailing list