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

Segfault passing mixed types to Vec or Normal constructor #4

Closed
Samuele-Colombo opened this issue Apr 28, 2021 · 0 comments · Fixed by #5
Closed

Segfault passing mixed types to Vec or Normal constructor #4

Samuele-Colombo opened this issue Apr 28, 2021 · 0 comments · Fixed by #5
Assignees
Labels
bug Something isn't working

Comments

@Samuele-Colombo
Copy link
Collaborator

Samuele-Colombo commented Apr 28, 2021

If one tries to call the constructor of Vec or Normal, as defined here, with mixed type arguments, Julia enters an infinite recursion until segfault or forced interruption.

Example:
julia> Vec(1, 1., 1.)

This problem is evident in #3

@Samuele-Colombo Samuele-Colombo added the bug Something isn't working label Apr 28, 2021
@Samuele-Colombo Samuele-Colombo linked a pull request Apr 28, 2021 that will close this issue
Samuele-Colombo added a commit that referenced this issue May 4, 2021
* Create empty files

* Add Ray implementation and tests

Co-authored-by: Samuele-Colombo <Samuele-Colombo@users.noreply.github.com>

* Add Camera implementation

* Add header

* Add needed exports

Co-authored-by: Samuele-Colombo <Samuele-Colombo@users.noreply.github.com>

* Fix default values for Cameras

* Fix fire_ray

* Add transfor tests for Ray

* Add Camera tests (broken, see #4)

* Declare Camera types with kwdef

Co-authored-by: Paolo Galli <Paolo97Gll@users.noreply.github.com>

* Remove bounds check in fire_ray

* Implement ImageTracer

* Add exports

* Fix Camera tests

* Add ImageTracer tests

Co-authored-by: Samuele-Colombo <Samuele-Colombo@users.noreply.github.com>
Co-authored-by: Samuele-Colombo <79973069+Samuele-Colombo@users.noreply.github.com>
Co-authored-by: Paolo Galli <Paolo97Gll@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants