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

[Bug] Imgui failed to display on Mac #6481

Closed
Morcki opened this issue Oct 31, 2022 · 2 comments
Closed

[Bug] Imgui failed to display on Mac #6481

Morcki opened this issue Oct 31, 2022 · 2 comments
Assignees
Labels
potential bug Something that looks like a bug but not yet confirmed

Comments

@Morcki
Copy link
Member

Morcki commented Oct 31, 2022

Describe the bug
Trace the bug report #6451 , which report that the latest release version of taichi (v1.2.0) failed to display imgui when using GGUI.

To Reproduce
Here is a simple sample code to reproduce this error.

# sample code here
import taichi as ti

ti.init(arch=ti.vulkan, offline_cache=False)

pos = ti.Vector.field(3, dtype=ti.float32, shape=3)

display_mode = 0 
def show_options():
    global display_mode
    window.GUI.begin("Display Panel", 0.05, 0.1, 0.2, 0.15)
    display_mode = window.GUI.slider_int("display_mode", display_mode, 0, 1)
    window.GUI.end()


window = ti.ui.Window("Display Mesh", (1024, 1024), vsync=True)
canvas = window.get_canvas()
scene = ti.ui.Scene()
while window.running:
    # if comment the below line, it will get the correct result
    scene.particles(pos, radius=0.01, color=(1.0, 0.0, 0.0))
    canvas.scene(scene)

    show_options()
    window.show()

Log/Screenshots
The incorrect screenshots:
image
The correct screenshots:
image

@Morcki Morcki added the potential bug Something that looks like a bug but not yet confirmed label Oct 31, 2022
@Morcki Morcki self-assigned this Oct 31, 2022
@taichi-gardener taichi-gardener moved this to Untriaged in Taichi Lang Oct 31, 2022
@ailzhang
Copy link
Contributor

@Morcki should v1.2.1 wait for this fix? Thanks!

@lin-hitonami lin-hitonami moved this from Untriaged to In Progress in Taichi Lang Nov 4, 2022
@Morcki
Copy link
Member Author

Morcki commented Nov 4, 2022

@Morcki should v1.2.1 wait for this fix? Thanks!

Very sorry for not noticing your comment, my apologize 🥲

The reason for this is because of the newest molten-vk version(1.2) while older version(1.1) doesn't have this problem.
I think we'd better fix it before v1.2.1 for we don't know how much users use the newest version of molten-vk.

@Morcki Morcki closed this as completed Nov 17, 2022
Repository owner moved this from In Progress to Done in Taichi Lang Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug Something that looks like a bug but not yet confirmed
Projects
Status: Done
Development

No branches or pull requests

2 participants