Page MenuHome

Popup redraw broken in Blender 2.78 rc1
Closed, InvalidPublic

Description

Blender 2.78 rc1
Linux 64bits

Seems popup redraw does not work anymore, the code below works with 2.77 but not in 2.78

import bpy

class Dialog(bpy.types.Operator):
    bl_idname = "ui.propsdialog"
    bl_label = "Props Dialog"
    bl_options = {'REGISTER', 'UNDO'}

    myBool = bpy.props.BoolProperty()

    def check(self, context):
        return True

    def draw(self, context):
        scn = context.scene
        layout = self.layout
        layout.prop(self, 'myBool')
        if self.myBool:
            layout.label('redraw ok')

    def execute(self, context):
        return {'FINISHED'}

    def invoke(self, context, event):
        return context.window_manager.invoke_props_dialog(self)


bpy.utils.register_module(__name__)

bpy.ops.ui.propsdialog('INVOKE_DEFAULT')

Details

Type
Bug

Event Timeline

domlysz (domlysz) updated the task description. (Show Details)

Could not recreate the issue with build ad40000 on Win7.

The pop up updates correctly.

Run blender from the terminal with
blender -d --factory-startup
parameters and see if there are any errors printed into it.

If there are any errors save as txt file and drag and drop it to the comment window (that should upload it here).

Seems the problem only occurs on Linux, anyone can confirm ?

Unfortunaly, there is no error message.

Sergey Sharybin (sergey) lowered the priority of this task from Needs Triage by Developer to Needs Information from User.Sep 5 2016, 3:30 PM

Can reproduce the error on Linux but only when either using blender-softwaregl or when using Overlap or Overlap Flip window draw method.

But this is consistent across 2.77a and 2.78-rc1 here.

Can you check whether setting Window Draw Method to Triple Buffer in user Preferences -> System solves the issue?

Additionally, please attach your system-info.txt (Help -> Have System Info)

Adding regression project since previous release worked for the author.

Setting window draw method to triple buffer solve the issue. The problem also appears on 2.77 when draw method is not set to triple buffer, so its not relative to 2.78 release.

I had completely forgotten that I had already encountered this problem when I switched to Ubuntu 16 which drops AMD ATI Catalyst driver support.

Thanks for the help

That is interesting why automatic draw method changed. The only change in related area i remember is rBe4646c5, but that one made Triple buffer default for ATI/AMD cards, weird. Will investigate deeper tomorrow.

Bastien Montagne (mont29) claimed this task.

@Sergey Sharybin (sergey) automatic draw did not changed, @domlysz (domlysz) says he already had to change that for 2.77, so nothing new in 2.78 here…

Anyway, time to close.

Can we just rename the problem? It seems there is still an issue with auto draw method on linux with opensource ATI driver