Switched from 1.21.0 to 1.25.0 and something is broken

Hello,

My layout is somehow broken since I have updated to 1.25.x.

I have a big switch with many buttons to select presets. The switch itself is not always visible but hidden in a bottom layer of the layout. It is opened - or rather moved to top layer - because of some other switch. Then, as a button is pushed in the big switch it is supposed to disappear - or rather go back to a bottom layer. This is made with some script using the onValue field.

(if (get("selector_hold_state") != 1) set("group1a_z-index_state", 8).

However, in some circumstances where one wants to change presets very quickly, there is a hold button and if it is activated, the big switch doesn't close whenever a button has been pushed in the big switch. And when one wants to close the bug switch, he may click twice on the hold button. All this is controlled in the script attached to the big script.

Since I have updated from 1.21.0 to 1.25.0 the big switch won't close by itself even if the hold button wasn't activated. I have tried to go back to prior version (1.24.2) but it doesn't solve the issue. I can solve it only by going back to 1.21.0.

What has changed between the version and causes this issue?

Did you try other versions between 1.21 and 1.25 ? Could you upload your session ?

0-S-C-1+-Tympocaïne200-2023-06-01.json (853.3 KB)

Sorry I am in a bit of a hurry, can't test all versions now.

works 1.22. Does not work 1.23

{
  "createdWith": "Open Stage Control",
  "version": "1.25.0",
  "type": "session",
  "content": {
    "type": "root",
    "lock": false,
    "id": "root",
    "visible": true,
    "interaction": true,
    "comments": "",
    "width": "auto",
    "height": "auto",
    "colorText": "auto",
    "colorWidget": "auto",
    "alphaFillOn": "auto",
    "borderRadius": "auto",
    "padding": "auto",
    "html": "",
    "css": "",
    "colorBg": "auto",
    "layout": "default",
    "justify": "start",
    "gridTemplate": "",
    "contain": true,
    "scroll": true,
    "innerPadding": true,
    "hideMenu": false,
    "variables": "@{parent.variables}",
    "traversing": false,
    "value": "",
    "default": "",
    "linkId": "",
    "address": "auto",
    "preArgs": "",
    "typeTags": "",
    "decimals": 2,
    "target": "",
    "ignoreDefaults": false,
    "bypass": false,
    "onCreate": "",
    "onValue": "",
    "widgets": [
      {
        "type": "knob",
        "top": 70,
        "left": 140,
        "lock": false,
        "id": "knob_1",
        "visible": true,
        "interaction": true,
        "comments": "",
        "width": 150,
        "height": 180,
        "expand": "false",
        "colorText": "auto",
        "colorWidget": "auto",
        "colorStroke": "auto",
        "colorFill": "auto",
        "alphaStroke": "auto",
        "alphaFillOff": "auto",
        "alphaFillOn": "auto",
        "lineWidth": "auto",
        "borderRadius": "auto",
        "padding": "auto",
        "html": "linkid to text_1",
        "css": "",
        "design": "default",
        "pips": false,
        "dashed": false,
        "angle": 270,
        "mode": "vertical",
        "spring": false,
        "doubleTap": false,
        "range": {
          "min": 0,
          "max": 1
        },
        "logScale": false,
        "sensitivity": 1,
        "steps": "",
        "origin": "auto",
        "value": "",
        "default": "",
        "linkId": "test",
        "address": "auto",
        "preArgs": "",
        "typeTags": "",
        "decimals": 2,
        "target": "",
        "ignoreDefaults": false,
        "bypass": false,
        "onCreate": "",
        "onValue": "",
        "onTouch": ""
      },
      {
        "type": "text",
        "top": 260,
        "left": 120,
        "lock": false,
        "id": "text_1",
        "visible": true,
        "comments": "",
        "width": 190,
        "height": 100,
        "expand": "false",
        "colorText": "auto",
        "colorWidget": "auto",
        "colorStroke": "auto",
        "colorFill": "auto",
        "alphaStroke": "auto",
        "alphaFillOff": "auto",
        "alphaFillOn": "auto",
        "lineWidth": "auto",
        "borderRadius": "auto",
        "padding": "auto",
        "html": "script set('text_2', value)",
        "css": "",
        "vertical": false,
        "wrap": false,
        "align": "center",
        "value": "",
        "default": 0,
        "linkId": "test",
        "address": "auto",
        "preArgs": "",
        "decimals": 2,
        "target": "",
        "onCreate": "",
        "onValue": "set('text_2', value)"
      },
      {
        "type": "text",
        "top": 370,
        "left": 0,
        "lock": false,
        "id": "text_2",
        "visible": true,
        "comments": "",
        "width": 960,
        "height": 80,
        "expand": "false",
        "colorText": "auto",
        "colorWidget": "auto",
        "colorStroke": "auto",
        "colorFill": "auto",
        "alphaStroke": "auto",
        "alphaFillOff": "auto",
        "alphaFillOn": "auto",
        "lineWidth": "auto",
        "borderRadius": "auto",
        "padding": "auto",
        "html": "text_1.onValue javascript error: RangeError: Maximum call stack size exceeded\nerrorProp\t@\twidget.js:1110\n",
        "css": "",
        "vertical": false,
        "wrap": false,
        "align": "center",
        "value": "",
        "default": "",
        "linkId": "",
        "address": "auto",
        "preArgs": "",
        "decimals": 2,
        "target": "",
        "onCreate": "",
        "onValue": ""
      },
      {
        "type": "text",
        "top": 180,
        "left": 370,
        "lock": false,
        "id": "text_3",
        "visible": true,
        "comments": "",
        "width": 410,
        "height": 40,
        "expand": "false",
        "colorText": "auto",
        "colorWidget": "#",
        "colorStroke": "auto",
        "colorFill": "auto",
        "alphaStroke": "auto",
        "alphaFillOff": "auto",
        "alphaFillOn": "auto",
        "lineWidth": "auto",
        "borderRadius": "auto",
        "padding": "auto",
        "html": "works 1.22 _ Does not work 1.23\n",
        "css": "",
        "vertical": false,
        "wrap": false,
        "align": "center",
        "value": "",
        "default": "",
        "linkId": "",
        "address": "auto",
        "preArgs": "",
        "decimals": 2,
        "target": "",
        "onCreate": "",
        "onValue": ""
      }
    ],
    "tabs": [],
    "tabsPosition": "top"
  }
}

Doesn't seem to be the same problem!

Thanks, both issues are linked and it's indeed a recent regression I introduced while tweaking inter-widget sync behaviors.

1 Like

The bug is fixed in sources, a patched release should come by the end of next week.

1 Like

Thank you Jean-Emmanuel, quick and efficient - as usual ! This is really a pleasure to use this software. :clap: :clap: :clap: :pray: :pray: :pray:

v1.25.1 is building / uploading now.

Issue solved! Thank you.