{"action":"created","issue":{"url":"https://api.github.com/repos/libigl/libigl/issues/1043","repository_url":"https://api.github.com/repos/libigl/libigl","labels_url":"https://api.github.com/repos/libigl/libigl/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/libigl/libigl/issues/1043/comments","events_url":"https://api.github.com/repos/libigl/libigl/issues/1043/events","html_url":"https://github.com/libigl/libigl/issues/1043","id":388236158,"node_id":"MDU6SXNzdWUzODgyMzYxNTg=","number":1043,"title":"Program crashes at random when calling append_mesh","user":{"login":"ygrimault","id":8794945,"node_id":"MDQ6VXNlcjg3OTQ5NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/8794945?v=4","gravatar_id":"","url":"https://api.github.com/users/ygrimault","html_url":"https://github.com/ygrimault","followers_url":"https://api.github.com/users/ygrimault/followers","following_url":"https://api.github.com/users/ygrimault/following{/other_user}","gists_url":"https://api.github.com/users/ygrimault/gists{/gist_id}","starred_url":"https://api.github.com/users/ygrimault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygrimault/subscriptions","organizations_url":"https://api.github.com/users/ygrimault/orgs","repos_url":"https://api.github.com/users/ygrimault/repos","events_url":"https://api.github.com/users/ygrimault/events{/privacy}","received_events_url":"https://api.github.com/users/ygrimault/received_events","type":"User","site_admin":false},"labels":[{"id":81892603,"node_id":"MDU6TGFiZWw4MTg5MjYwMw==","url":"https://api.github.com/repos/libigl/libigl/labels/bug","name":"bug","color":"fc2929","default":true},{"id":1012510886,"node_id":"MDU6TGFiZWwxMDEyNTEwODg2","url":"https://api.github.com/repos/libigl/libigl/labels/pending%20verification","name":"pending verification","color":"9ed7e2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-06T14:24:32Z","updated_at":"2018-12-06T15:45:59Z","closed_at":null,"author_association":"NONE","body":"When I try to increase the size of `data_list` with `append_mesh()`, my program *sometimes* crashes at the point where it calls `data_list.emplace_back()`. It's not consistent, sometimes I can load 3, 4 complex meshes without a problem, but sometimes it crashes when the only mesh I've loaded is a square (4 vertices, 2 faces).\r\n\r\nHave you already encountered this problem ? The main problem I have is that it's not consistent, it may or may not happen (but mostly happens, I'd say 70% of the time maybe).\r\n\r\nMy program is a simple loader with an ImGUI menu like example 106, so I mainly load objects using `open_dialog_load_mesh()`, but I also create square meshes manually, calling directly `append_mesh()` before clearing `data()` and setting the new mesh. However the crash occurs with both methods, and at the point I described above.\r\n\r\n#### Check all that apply (change to `[x]`)\r\n- [x] Windows\r\n- [ ] Mac OS X\r\n- [ ] Linux\r\n"},"comment":{"url":"https://api.github.com/repos/libigl/libigl/issues/comments/444917495","html_url":"https://github.com/libigl/libigl/issues/1043#issuecomment-444917495","issue_url":"https://api.github.com/repos/libigl/libigl/issues/1043","id":444917495,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDkxNzQ5NQ==","user":{"login":"ygrimault","id":8794945,"node_id":"MDQ6VXNlcjg3OTQ5NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/8794945?v=4","gravatar_id":"","url":"https://api.github.com/users/ygrimault","html_url":"https://github.com/ygrimault","followers_url":"https://api.github.com/users/ygrimault/followers","following_url":"https://api.github.com/users/ygrimault/following{/other_user}","gists_url":"https://api.github.com/users/ygrimault/gists{/gist_id}","starred_url":"https://api.github.com/users/ygrimault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygrimault/subscriptions","organizations_url":"https://api.github.com/users/ygrimault/orgs","repos_url":"https://api.github.com/users/ygrimault/repos","events_url":"https://api.github.com/users/ygrimault/events{/privacy}","received_events_url":"https://api.github.com/users/ygrimault/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T15:45:58Z","updated_at":"2018-12-06T15:45:58Z","author_association":"NONE","body":"I'm using the `master` branch, and compiling in 64bits on Windows.\r\n\r\nThis particular issue doesn't seem to be directly related to the issue you linked, as it doesn't say anything else.\r\nHOWEVER, I do have the issue you linked from time to time, at the start of the program. The exact issue is:\r\n```\r\nAssertion failed: (reinterpret_cast<size_t>(array) & 0xf) == 0 && \"this assertion is explained here: \" \"http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html\" \"\r\n**** READ THIS WEB PAGE !!! ****\", file c:\\...\\libigl\\external\\eigen\\eigen\\src/Core/DenseStorage.h, line 86\r\n```\r\nbut I haven't looked where it comes from in the code (I don't have any debugger as of now in QtCreator)."}}
{"actor":{"display_login":"ygrimault"}}