Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Viewport render always causing c4d stop running

    General Talk
    s22 s26
    2
    6
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chuanzhenC
      chuanzhen
      last edited by chuanzhen

      Hi,
      I often use viewport render to render animation previews, but it often make c4d stop running, it just gets stuck and doesn't crash and exit the program directly. This issue also existed in previous versions of c4d, especially in s22, which was the most prone to issues, but even the latest 2023 version still had this issue. I am not sure if anyone has encountered a similar issue, or if other users have also reported this issue, which greatly affects the user experience, because before every render animation preview, I always worry about the possibility of c4d crashing.

      windows 10/NVIDIAGTX 1070ti/c4d 2023

      相信我,可以的!

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @chuanzhen
        last edited by ferdinand

        Hello @chuanzhen,

        Thank you for reaching out to us. How are you invoking the viewport render, programmatically or manually? I assume the latter is the case, at least your posting sounds like that and you have posted in General Talk.

        When this is about manually invoking viewport renders and arising crashes, the SDK group can provide no support, you must reach out to end user support by opening a ticket in our Support Portal. You are of course welcome to discuss the issue with the community here. In any case I would recommend clarifying the render engine(s) under which the crashes occur.

        When this is tied to programmatically invoking viewport renders, I would ask you to provide executable code and example scenes so that we can reproduce the problem.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        chuanzhenC 1 Reply Last reply Reply Quote 0
        • chuanzhenC
          chuanzhen @ferdinand
          last edited by chuanzhen

          @ferdinand Thanks for your reply.
          This cannot provide a 100% triggered scene file, but the probability of triggering is very high (the file I am currently working on is a file with 2 character bindings and some scene assets, which often trigger. I am trying to use a simple scene with only a few objects, which is difficult to reproduce). Here are three methods I use:

          1: Manually use make preview/or render to picture view (in rendering settings, the renderer uses viewport renderer)

          2: Using c4d. CallCommand (1000974) # Make Preview in Python Alternatively, c4d. CallCommand (12099) # Render to Picture Viewer (using viewport renderer in rendering settings)

          3: Use c4d. documents. RenderDocument() directly in Python for rendering (in the rendering settings, the renderer uses the viewport renderer) ,code example()

          def PythonCallBack(progress, progress_type):
              if progress == 1.0:
                  c4d.StatusClear()
              else:
                  progress = round(progress * 100.0,1)
                  c4d.StatusSetText("render:" + str(progress) + "%")
                  c4d.StatusSetBar(progress)
          
          def renderexample(rdPreview):
              image_render = c4d.bitmaps.BaseBitmap()
              image_render.Init(int(rdPreview[c4d.RDATA_XRES]), int(rdPreview[c4d.RDATA_YRES]))
          
              result = c4d.documents.RenderDocument(doc, rdPreview.GetData(), image_render, c4d.RENDERFLAGS_EXTERNAL,prog=PythonCallBack)
              if result != c4d.RENDERRESULT_OK:
                  c4d.StatusClear()
          

          The 1 and 2 methods will crash directly and there will be no prompt to save the file due to crash. However, when I use the 3 method, there will be a crash prompt, which can at least save the file.

          bug01.png bug02.png
          My graphics card drivers are always up to date.
          At present, I am going to change to a higher graphics card to try to see if this can be avoided or find a solution here in the forum

          相信我,可以的!

          ferdinandF 1 Reply Last reply Reply Quote 0
          • ferdinandF
            ferdinand @chuanzhen
            last edited by

            Hey @chuanzhen,

            nvwgf2umx.dll is a NVIDIA DirectX 10 display driver. This is clearly not an issue of the public API and therefore not the domain of the SDK group. Please reach out to customer support, as only they have the tools to help you.

            Cheers,
            Ferdinand

            MAXON SDK Specialist
            developers.maxon.net

            chuanzhenC 1 Reply Last reply Reply Quote 0
            • chuanzhenC
              chuanzhen @ferdinand
              last edited by

              @ferdinand Thanks

              相信我,可以的!

              1 Reply Last reply Reply Quote 0
              • chuanzhenC
                chuanzhen
                last edited by

                The problem has been resolved, reinstall the graphics driver and perform a custom clean installation!

                相信我,可以的!

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post