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

Crash (core dump) on pypi example #10

Open
regislachaume opened this issue May 13, 2024 · 0 comments
Open

Crash (core dump) on pypi example #10

regislachaume opened this issue May 13, 2024 · 0 comments

Comments

@regislachaume
Copy link

regislachaume commented May 13, 2024

System: Ubuntu 24.04 up to date using a dedicated venv in python 3.12.3. Astrometry is the sole installed package, obtained via pip install, and is run with the example from the pypi page. Install details at astrometry_install.txt

The same occurs if I install from source and use python setup.py install within a virgin virtual environment.

File used:

import astrometry
import logging

logging.getLogger().setLevel(logging.INFO)

solver = astrometry.Solver(
    astrometry.series_5200.index_files(
        cache_directory="astrometry_cache",
        scales={6},
    )
)

stars = [
    [388.9140568247906, 656.5003281719216],
    [732.9210858972549, 473.66395545775106],
    [401.03459504299843, 253.788113189415],
    [312.6591868096163, 624.7527729425295],
    [694.6844564647456, 606.8371776658344],
    [741.7233477959561, 344.41284826261443],
    [867.3574610200455, 672.014835980283],
    [1063.546651153479, 593.7844603550848],
    [286.69070190952704, 422.170016812049],
    [401.12779619355155, 16.13543616977013],
    [205.12103484692776, 698.1847350789413],
    [202.88444768690894, 111.24830187635557],
    [339.1627757703069, 86.60739435924549],
]

solution = solver.solve(
    stars=stars,
    size_hint=None,
    position_hint=None,
    solution_parameters=astrometry.SolutionParameters(),
)

The error is

INFO:root:loaded 48 index files
INFO:root:solve 1: start
*** buffer overflow detected ***: terminated
Aborted (core dumped)
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