close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 13 years ago

Last modified 13 years ago

#1456 new defect

BysMcmc: NObject aumenta al crear y destruir cyclers

Reported by: Pedro Gea Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Mantainance
Component: BysMCMC Version:
Severity: critical Keywords:
Cc:

Description

La variable NObject que nos permite saber si se van dejando objetos perdidos en memoria aumenta al crear y destruir instancias de BysMcmc::@Cycler.

Basta con compilar y decompilar algunas veces:

#Require BysMcmc;

Real Copy(NObject);
BysMcmc::@Cycler cycler = BysMcmc::Bsr::Gibbs::GetCyclerFromParsed(
  BSR.Parse("master.bsr", "master"); 
  BysMcmc::@McmcPartialHandler::Null(?),
  BysMcmc::@Config::Default(?), 
  BysMcmc::@Notifier::Null(?)
);

con algún modelo para BSR.

Si hace falta puedo adjuntar alguno de ejemplo.

Attachments (1)

ejemplo.zip (31.7 KB) - added by Pedro Gea 13 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 13 years ago by Pedro Gea

Priority: highhighest

comment:2 Changed 13 years ago by Víctor de Buen Remiro

Pues no debe de servir cualquiera porque yo he probado con varios y no me pasa. Por ejemplo éste me da todo el rato nObj1=15554 compilando y descompilando todas las veces que quiera.

Incluyendo C:/Users/vdebuen/prj/tolp/trunk/tol_tests/tol/BSR/test_01/kk3.tol
nObj1=15389
[@BlockSampler @BSR.MainLinBlock.test_01]  created with 50 parameters from 1 to 50
[@BlockSampler @BSR.SigmaBlock.test_01]  created with 14 parameters from 51 to 64
[@BSR.ArimaBlock.test_01]  Preparing ARIMA block
  [@BSR.ArimaBlock.test_01]  Original data length = 450
  [@BSR.ArimaBlock.test_01]  Differenced data length = 450
  [@BSR.ArimaBlock.test_01]  ARMA parameters = 0
[@BlockSampler @BSR.ArimaBlock.test_01]  created with 0 parameters from 65 to 64
[@BlockSampler @BSR.MissingBlock.test_01]  created with 0 parameters from 65 to 64
[@MasterSampler test_01]  created with 64 parameters from 1 to 64
Ha sido incluido el fichero C:/Users/vdebuen/prj/tolp/trunk/tol_tests/tol/BSR/test_01/kk3.tol [0.087 sec.]
Incluyendo C:/Users/vdebuen/prj/tolp/trunk/tol_tests/tol/BSR/test_01/kk3.tol
nObj1=15554
[@BlockSampler @BSR.MainLinBlock.test_01]  created with 50 parameters from 1 to 50
[@BlockSampler @BSR.SigmaBlock.test_01]  created with 14 parameters from 51 to 64
[@BSR.ArimaBlock.test_01]  Preparing ARIMA block
  [@BSR.ArimaBlock.test_01]  Original data length = 450
  [@BSR.ArimaBlock.test_01]  Differenced data length = 450
  [@BSR.ArimaBlock.test_01]  ARMA parameters = 0
[@BlockSampler @BSR.ArimaBlock.test_01]  created with 0 parameters from 65 to 64
[@BlockSampler @BSR.MissingBlock.test_01]  created with 0 parameters from 65 to 64
[@MasterSampler test_01]  created with 64 parameters from 1 to 64
Ha sido incluido el fichero C:/Users/vdebuen/prj/tolp/trunk/tol_tests/tol/BSR/test_01/kk3.tol [0.118 sec.]
Incluyendo C:/Users/vdebuen/prj/tolp/trunk/tol_tests/tol/BSR/test_01/kk3.tol
nObj1=15554
[@BlockSampler @BSR.MainLinBlock.test_01]  created with 50 parameters from 1 to 50
[@BlockSampler @BSR.SigmaBlock.test_01]  created with 14 parameters from 51 to 64
[@BSR.ArimaBlock.test_01]  Preparing ARIMA block
  [@BSR.ArimaBlock.test_01]  Original data length = 450
  [@BSR.ArimaBlock.test_01]  Differenced data length = 450
  [@BSR.ArimaBlock.test_01]  ARMA parameters = 0
[@BlockSampler @BSR.ArimaBlock.test_01]  created with 0 parameters from 65 to 64
[@BlockSampler @BSR.MissingBlock.test_01]  created with 0 parameters from 65 to 64
[@MasterSampler test_01]  created with 64 parameters from 1 to 64
Ha sido incluido el fichero C:/Users/vdebuen/prj/tolp/trunk/tol_tests/tol/BSR/test_01/kk3.tol [0.169 sec.]

Por favor, hazme llegar uno que le pase y que sea lo más pequeño posible para poder hacer pruebas con agilidad. Si son datos privados por mail y si no aquí adjunto.

Changed 13 years ago by Pedro Gea

Attachment: ejemplo.zip added

comment:3 Changed 13 years ago by Pedro Gea

Adjunto un ejemplo. El ZIP del ejemplo incluye también un archivo "run.tol".

Note: See TracTickets for help on using tickets.