Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/srclist/fits/read.rs:552:13: Component 'COM000810-1940_C00' couldn't be matched against any of the UNQ_SOURCE_ID #43

Open
d3v-null opened this issue Jan 10, 2025 · 2 comments

Comments

@d3v-null
Copy link
Collaborator

wget https://github.com/JLBLine/srclists/raw/refs/heads/master/srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.fits
hyperdrive srclist-by-beam -m test_files/1090008640/1090008640.metafits -n 8000 srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.fits


thread '<unnamed>' panicked at src/srclist/fits/read.rs:552:13:
Component 'COM000810-1940_C00' couldn't be matched against any of the UNQ_SOURCE_ID
@d3v-null
Copy link
Collaborator Author

seems to cause a segfault in release profile but not dev profile, and only in fits but not yaml.

RAYON_NUM_THREADS=1 cargo run -- srclist-by-beam srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.fits -m 1377958552.metafits -n 10000 -o yaml srclist_1377958552_10000.yaml
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s
     Running `target/debug/hyperdrive srclist-by-beam srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.fits -m 1377958552.metafits -n 10000 -o yaml srclist_1377958552_10000.yaml`
 hyperdrive srclist-by-beam 0.4.2
 Compiled on git commit hash: 9a025fe
             git head ref: refs/heads/main
             Wed, 29 Jan 2025 01:53:38 +0000
          with compiler rustc 1.84.0 (9fc6b4312 2025-01-07) (Homebrew)
 
thread '<unnamed>' panicked at src/srclist/fits/read.rs:552:13:
Component 'COM000810-1940_C00' couldn't be matched against any of the UNQ_SOURCE_ID
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Still reading source list file: 6.50s
^C
RAYON_NUM_THREADS=1 cargo run --release -- srclist-by-beam srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.fits -m 1377958552.metafits -n 10000 -o yaml srclist_1377958552_10000.yaml
    Finished `release` profile [optimized] target(s) in 0.24s
     Running `target/release/hyperdrive srclist-by-beam srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.fits -m 1377958552.metafits -n 10000 -o yaml srclist_1377958552_10000.yaml`
 hyperdrive srclist-by-beam 0.4.2
 Compiled on git commit hash: 9a025fe
             git head ref: refs/heads/main
             Wed, 29 Jan 2025 01:51:01 +0000
          with compiler rustc 1.84.0 (9fc6b4312 2025-01-07) (Homebrew)
 
[1]    15824 segmentation fault  RAYON_NUM_THREADS=1 cargo run --release -- srclist-by-beam  -m  -n 10000 -o  
RAYON_NUM_THREADS=1 cargo run --release -- srclist-by-beam srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.yaml -m 1377958552.metafits -n 10000 -o yaml srclist_1377958552_10000.yaml
    Finished `release` profile [optimized] target(s) in 0.17s
     Running `target/release/hyperdrive srclist-by-beam srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.yaml -m 1377958552.metafits -n 10000 -o yaml srclist_1377958552_10000.yaml`
 hyperdrive srclist-by-beam 0.4.2
 Compiled on git commit hash: 9a025fe
             git head ref: refs/heads/main
             Wed, 29 Jan 2025 01:51:01 +0000
          with compiler rustc 1.84.0 (9fc6b4312 2025-01-07) (Homebrew)
 
 Successfully read srclist_pumav3_EoR0LoBES_EoR1pietro_CenA-GP_2023-11-07.yaml as a hyperdrive-style source list
 332782 points, 15224 gaussians, 61 shapelets
 
 Beam info
 ├ Type: FEE
 ├ Ideal dipole delays: [ 0  0  0  0
 │                        0  0  0  0
 │                        0  0  0  0
 │                        0  0  0  0]
 └ File: /Users/dev/Code/mwa_hyperdrive/mwa_full_embedded_element_pattern.h5
 
 Wrote hyperdrive-style source list to srclist_1377958552_10000.yaml
 hyperdrive srclist-by-beam complete.

temporary work around is to use a yaml version of your catalogue instead.

@d3v-null
Copy link
Collaborator Author

d3v-null commented Jan 29, 2025

it's because cfitsio is not reentrant

For reference you can test using mwalib.

cargo run --features=examples --example mwalib-print-context -- --metafits foo.fits
    mwalib has been compiled with a CFITSIO library which was not built with the -DREENTRANT directive

You need to compile cfitsio with the --enable-reentrant flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant