[solved] DTL_CEL/partran/cli segfault

https://www.dacm-logiciels.fr/tracewin
Post Reply
Norwayyngvelevinsen
Initiated
Initiated
Posts: 34
Joined: Fri 5 Mar 2021 10:40
Location: ESS, Sweden
Country:
Norway (no)
Norway

[solved] DTL_CEL/partran/cli segfault

Post by Norwayyngvelevinsen »

Hi,

I have a DTL lattice I tried to run using the CLI (noX11) on Linux, but I get a segfault. I manage to make a minimal example attached.

It looks like if I use QUAD instead of DTL_CEL then it does not fail. It also seem to only fail when partran is turned on. Finally it works fine if I run in GUI, and it works with older CLI versions (not sure when this issue started).

The output I get is:

Code: Select all

...
   Multiparticle calculation with PARTRAN                          
                                                                          
  Element :1  [0.00000 m]  Ngood :100000                                         
 [ 0% ]                                                                   
QVariant::load: unable to load type 64.                                   
QVariant::save: unable to save type 'QFont' (type id: 64).                
                                                                          
Critical system error:                                                    
Segmentation violation
Attachments
lattice.min.dat
(165 Bytes) Downloaded 149 times
DTL.min.ini
(43.77 KiB) Downloaded 127 times
Last edited by Norwayyngvelevinsen on Wed 15 Mar 2023 07:31, edited 1 time in total.
Norwayyngvelevinsen
Initiated
Initiated
Posts: 34
Joined: Fri 5 Mar 2021 10:40
Location: ESS, Sweden
Country:
Norway (no)
Norway

Re: DTL_CEL/partran/cli segfault

Post by Norwayyngvelevinsen »

I can add that e.g. version 2.20.0.0 seems to work fine, maybe that helps narrow down what changed.
User avatar
FranceDidier
Administrator
Administrator
Posts: 978
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: DTL_CEL/partran/cli segfault

Post by FranceDidier »

Dear yngve,

It's fixed.

Regards,

Didier
Norwayyngvelevinsen
Initiated
Initiated
Posts: 34
Joined: Fri 5 Mar 2021 10:40
Location: ESS, Sweden
Country:
Norway (no)
Norway

Re: DTL_CEL/partran/cli segfault

Post by Norwayyngvelevinsen »

Dear Didier,

As always, thanks for the prompt response. I checked the 2.21.0.0, but I still get segmentation violation?

Code: Select all

% ../TraceWin project.ini hide_esc
   Data Reading...

 Reference particle transports in Elements: 1 
 Reference particle transports in Elements: 2 
 Total Line : 2 Elements 
  Calculation of line envelope
   : finished 
  Number of step : 35
  Memory used   : 1 kBytes
  New Data file writting :
  /storage6/public/TestTraceWin/mini_dtl/calc/lattice.dat
  New Data file writting (with detailed DTL_CEL):
  /storage6/public/TestTraceWin/mini_dtl/calc/lattice_2.dat
  Multiparticle calculation with PARTRAN
 Element :1  [0.00000 m]  Ngood :10000
Critical system error:
Segmentation violation
% ../TraceWin -v
Current version: 2.21.0.0
User avatar
FranceDidier
Administrator
Administrator
Posts: 978
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: DTL_CEL/partran/cli segfault

Post by FranceDidier »

Fast maybe but not very efficient and rigorous :?
In fact, there were two errors that accumulated and when I corrected the first one, I didn't even test the specific case that you had given me.
So it should be good now, I hope and I didn't change the version.

Regards,

Didier
Norwayyngvelevinsen
Initiated
Initiated
Posts: 34
Joined: Fri 5 Mar 2021 10:40
Location: ESS, Sweden
Country:
Norway (no)
Norway

Re: DTL_CEL/partran/cli segfault

Post by Norwayyngvelevinsen »

Thanks Didier, now it works again! :)
Post Reply