Author Topic: PJSR: Console log consistency issue?  (Read 4087 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
PJSR: Console log consistency issue?
« on: 2015 January 10 08:57:49 »
I execute a script by (1) running it from the script editor, or (2) executing a script icon instance in the global context.

Both executions result in the "same" computation, but the text in the console log differs on Win 7 1123.

Here is an example of the issue. The script executes the Resample process as part of its computation.

In case (1), console log text associated with the Resample looks like this:

Code: [Select]
<previous console log output ...>

Resample: Processing view: g_band_wavefront_contour_plot
Resampling to 501x501 px, Bicubic interpolation, Mitchell-Netravali cubic filter (5x5): done
0.0620 s

<subsequent console log output...>

In case (2), it looks like this:

Code: [Select]
<previous console log output ...>
Resampling to 501x501 px, Bicubic interpolation, Mitchell-Netravali cubic filter (5x5): done

<subsequent console log output...>

59.94 s

Notice that the "Resample: Processing view: ..." line is missing. Also missing is the preceding blank line.

And more strangely is that the time associated with the Resample is not logged until much later in the log, and its values is much larger.

It appears that process lines are getting lost and/or scrambled in the log.

This is not a huge issue, I can live with it. But I am now capturing console log text via Console.endLog() for documentation purposes and it would be nice to have better consistency.

Thanks,
Mike


Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PJSR: Console log consistency issue?
« Reply #1 on: 2015 January 11 05:05:59 »
All of this is really strange (especially the "not logged until much later" part!). Let me make some tests on Windows before saying anything conclusive.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/