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

Initialization of t8_vtk_data_field_t hangs for Julia versions older than v1.9. #26

Open
jmark opened this issue Jul 21, 2023 · 4 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@jmark
Copy link
Contributor

jmark commented Jul 21, 2023

The following code hangs for Julia versions older than v1.9.

  vtk_data = t8_vtk_data_field_t(
    T8_VTK_SCALAR,
    NTuple{8192, Cchar}(rpad("Element data\0", 8192, ' ')),
    pointer(some_element_data),
  )

This problem has been fixed for Julia v1.9 and newer. Thus, it is highly recommended to use Julia v1.9 or newer.

@jmark jmark added bug Something isn't working wontfix This will not be worked on labels Jul 21, 2023
@jmark
Copy link
Contributor Author

jmark commented Jul 21, 2023

In the future, this workaround will be dropped when Julia v1.9 (or newer) is more widely established in the community.

@sloede
Copy link
Contributor

sloede commented Jul 21, 2023

Do you know why it is hanging? Also, why creating a tuple with 8k entries and not just a plain array - maybe that would fix things?

@jmark
Copy link
Contributor Author

jmark commented Jul 21, 2023

Already went through many possible roads and tried to fix it. Had a discussion in Julia Slack as well. The problem is not related to the tuple. It has something to do with processing the wrapped struct and some extremely deeply nested macro recursions in older versions of Julia.. Besides, normal arrays do not work for struct members. Tried that already.

@sloede
Copy link
Contributor

sloede commented Jul 22, 2023

Ah, this is a constructor call and not a regular function call, I see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants