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

pgl.TriangleSet([],[]) causes conda terminated with exit code -1073741819 (0xC0000005). #41

Open
Illustratien opened this issue Feb 17, 2022 · 1 comment

Comments

@Illustratien
Copy link

Illustratien commented Feb 17, 2022

Hi all,

I have just updated and specified the question:
This error can be reproduce on windows 10 with the following two lines.

import openalea.plantgl.all as pgl
pgl.TriangleSet([],[])

image

Which version of pgl are you using?
With conda list, I found that I have even two plantgl!

    openalea-plantgl         3.9.3           pypi_0                 pypi
    openalea.plantgl         3.9.3           py38h2272212_1         fredboudon

It seems that I am using openalea.plantgl, should** I switch to openalea-plantgl instead ?

Here you will find the current conda list result:
condalist_10_04_2022.txt
@pradal Could you please help me to find out where the problem is?

Many thanks,
Tien-Cheng.

@Illustratien Illustratien changed the title Function CaribuScene.plot() terminates ipython and no plantgl window was open. pgl.TriangleSet([],[]) caused conda terminates without error messages (Process finished with exit code -1073741819 (0xC0000005)). Apr 10, 2022
@Illustratien Illustratien changed the title pgl.TriangleSet([],[]) caused conda terminates without error messages (Process finished with exit code -1073741819 (0xC0000005)). pgl.TriangleSet([],[]) cause conda terminates with exit code -1073741819 (0xC0000005). Apr 10, 2022
@Illustratien Illustratien changed the title pgl.TriangleSet([],[]) cause conda terminates with exit code -1073741819 (0xC0000005). pgl.TriangleSet([],[]) cause conda terminated with exit code -1073741819 (0xC0000005). Apr 10, 2022
@Illustratien Illustratien changed the title pgl.TriangleSet([],[]) cause conda terminated with exit code -1073741819 (0xC0000005). pgl.TriangleSet([],[]) causes conda terminated with exit code -1073741819 (0xC0000005). Apr 10, 2022
@Illustratien
Copy link
Author

Here is the background:
When I want to display the result of CaribuScene.run, the call of CaribuScene.plot() terminate the conda session without error messages

im3d = cache.load_image3d(snapshot, cache_client=cache_client)
# print("Reduction="+str(red))
vertices, faces = im3d.mesh(reduction=density)
triangles = {0: [[tuple(vertices[i]) for i in f] for f in faces]}
light = diffuse_source('16')  # authorized values : '1', '16', '46'
inter_plant = 1 / inter_row / density * 1e6  # in mm
pattern = (-inter_plant / 2, -inter_row / 2, inter_plant / 2, inter_row / 2)
cs = CaribuScene(triangles, light=light, pattern=pattern)
sr = cs.auto_screen(1)  # arg is in mm/pixel
raw, agg = cs.run(direct=True, simplify=True, infinite=True, screen_size=sr)
cs.plot(raw['Ei'])

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