I have a Blynk app that corrupts the Android app

I have been working on an app that uses tabs and many other widgets.

Suddenly if I access one of the tabs, it crashes the Android app. (It is the second tab called ‘Cab’

Restarting the app does not help, it dies attempting to open any other Blynk apps too.
The only way to clear the problem is to uninstall and reinstall the app.

Once newly installed, I was able to clone the old app from its QR code, but as soon as I access the tab again, it corrupts the app again.

I may have sent a bad widget property into one of the widgets on the tab, but I cannot tell.

I have captured the json app definition and its QR code.

The json did contain a confidential URL that I have replaced with a space.

I am happy to provide QR code to Blynk devs so that someone can reproduce and debug what is causing the crash and corruption. I can’t edit out the URL from the QR code though so it can’t get posted publicly.

I am hoping that a Blynk dev can determine what is causing the corruption of the Blynk app. (I am sure you want to know about such a nasty one!)
Once that is known, perhaps I can send an approriate propertyWrite to correct any error condition that is the cause, before a fix can be made for the app.

App was running on a Nexus 6P.

Here is the json:
(I see that all the tabs have “id”: 0 not sure if that is normal)

{
  "id": 1960382021,
  "parentId": -1,
  "isPreview": false,
  "name": "cab",
  "createdAt": 1548346431326,
  "updatedAt": 1550863669890,
  "widgets": [
    {
      "type": "VERTICAL_SLIDER",
      "id": 9888,
      "x": 3,
      "y": 5,
      "color": 600084223,
      "width": 1,
      "height": 4,
      "tabId": 1,
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 2,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 200,
      "max": 0,
      "value": "200",
      "sendOnReleaseOn": true,
      "frequency": 100,
      "maximumFractionDigits": 0,
      "showValueOn": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 146791,
      "x": 6,
      "y": 5,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 11,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": "Headlights",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Headlights",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "IMAGE",
      "id": 129432,
      "x": 0,
      "y": 2,
      "color": 0,
      "width": 6,
      "height": 3,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 0,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "source": "URL",
      "scaling": "FIT",
      "urls": [
        " "
      ],
      "opacity": 100,
      "scale": 100,
      "rotation": 0
    },
    {
      "type": "STYLED_BUTTON",
      "id": 36720,
      "x": 4,
      "y": 6,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 12,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": "Shunt",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Shunt",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 185462,
      "x": 4,
      "y": 5,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 10,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": "Headlights",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Headlights",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 100878,
      "x": 6,
      "y": 6,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 13,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": "Shunt",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Shunt",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 13469,
      "x": 4,
      "y": 7,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 14,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": "Accel.",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Accel.",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 141711,
      "x": 5,
      "y": 8,
      "color": 0,
      "width": 3,
      "height": 1,
      "tabId": 0,
      "label": "Ver 2019022201",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 20,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "104",
      "pushMode": true,
      "onButtonState": {
        "text": "⌛",
        "textColor": -1,
        "backgroundColor": 600084223
      },
      "offButtonState": {
        "text": "Update",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "MEDIUM",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "IMAGE",
      "id": 144427,
      "x": 6,
      "y": 2,
      "color": 0,
      "width": 2,
      "height": 2,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 4,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "source": "URL",
      "scaling": "FIT",
      "urls": [
        ""
      ],
      "opacity": 100,
      "scale": 100,
      "rotation": 0
    },
    {
      "type": "STYLED_BUTTON",
      "id": 71695,
      "x": 6,
      "y": 7,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 15,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": " ",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": " ",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "MENU",
      "id": 40473,
      "x": 0,
      "y": 1,
      "color": 600084223,
      "width": 6,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 1,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "1",
      "labels": [
        "<none>",
        "S7 (141) ",
        "S3 (13) ",
        "Tin plate (56) ",
        "S5 (24) ",
        "Blue Diesel (80)  n/a",
        "L:Köf II (23) ",
        "Ocean Blue (20) ",
        "D-Zug (3)  n/a",
        "Coal hauler (97) ",
        "BR 81 (78) ",
        "Rollendelandstrasse (5) ",
        "Klasse C (10) ",
        "Baden (19) ",
        "Würtenburgerin (2) ",
        "E18 (18) ",
        "L:BR 85 006 heavy tank (6) ",
        "ICE (40) ",
        "S1 (111) ",
        "L:S 3/6 - 18 434 (34) ",
        "Linus diesel (24)  n/a",
        "Umbau (33) ",
        "Lucy Express (60)  n/a",
        "Sonderzug (12) ",
        "Railion (22) ",
        "Cargo Sprinter (70) ",
        "L:Heavy Goods class 50 (53) ",
        "Rheingold (36) ",
        "Transformer (16) ",
        "Container (74) ",
        "L:Streamlines class 3 (31) "
      ],
      "fontSize": "LARGE",
      "iconColor": 600084223
    },
    {
      "type": "STYLED_BUTTON",
      "id": 48558,
      "x": 4,
      "y": 8,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 16,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": " ",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": " ",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 23119,
      "x": 6,
      "y": 8,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 17,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "1",
      "pushMode": false,
      "onButtonState": {
        "text": " ",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": " ",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "SMALL",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "DIGIT4_DISPLAY",
      "id": 91736,
      "x": 0,
      "y": 5,
      "color": 600084223,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "label": "Km/H",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 5,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 45,
      "max": 300,
      "value": "0/0",
      "frequency": 0,
      "fontSize": "LARGE"
    },
    {
      "type": "STYLED_BUTTON",
      "id": 39341,
      "x": 0,
      "y": 6,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "label": " ",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 3,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 1,
      "max": 0,
      "value": "1",
      "pushMode": false,
      "onButtonState": {
        "text": "⬇️",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "offButtonState": {
        "text": "⬆️",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "LARGE",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": true
    },
    {
      "type": "VERTICAL_LEVEL_DISPLAY",
      "id": 105814,
      "x": 2,
      "y": 5,
      "color": 600084223,
      "width": 1,
      "height": 4,
      "tabId": 1,
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 7,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 200,
      "value": "0",
      "frequency": 0,
      "isAxisFlipOn": false,
      "showValueOn": false
    },
    {
      "type": "TABS",
      "id": 51933,
      "x": 0,
      "y": 0,
      "color": 421142527,
      "width": 8,
      "height": 1,
      "tabId": -1,
      "isDefaultColor": false,
      "tabs": [
        {
          "id": 0,
          "label": "Power"
        },
        {
          "id": 0,
          "label": "Cab"
        },
        {
          "id": 0,
          "label": "k83+s88"
        },
        {
          "id": 0,
          "label": "stations"
        },
        {
          "id": 0,
          "label": "events"
        },
        {
          "id": 0,
          "label": "log"
        }
      ],
      "activeTxtColor": 79755519,
      "underlineColor": 79755519,
      "textColor": 600084223
    },
    {
      "type": "SEGMENTED_CONTROL",
      "id": 61801,
      "x": 0,
      "y": 2,
      "color": -750560001,
      "width": 8,
      "height": 1,
      "tabId": 0,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 21,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "1",
      "labels": [
        "Off",
        "On",
        "Halt"
      ]
    },
    {
      "type": "STEP",
      "id": 131033,
      "x": 2,
      "y": 1,
      "color": 600084223,
      "width": 4,
      "height": 1,
      "tabId": 2,
      "label": "k83/4",
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 23,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 1,
      "max": 1023,
      "value": "27",
      "step": 1,
      "isArrowsOn": true,
      "isLoopOn": false,
      "isSendStep": false,
      "frequency": 100,
      "showValueOn": true
    },
    {
      "type": "STEP",
      "id": 95005,
      "x": 2,
      "y": 4,
      "color": 600084223,
      "width": 4,
      "height": 1,
      "tabId": 2,
      "label": "s88",
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 25,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 1,
      "max": 1023,
      "value": "22",
      "step": 1,
      "isArrowsOn": true,
      "isLoopOn": false,
      "isSendStep": false,
      "frequency": 100,
      "showValueOn": true
    },
    {
      "type": "LED",
      "id": 98270,
      "x": 2,
      "y": 5,
      "color": 600084223,
      "width": 4,
      "height": 4,
      "tabId": 2,
      "label": " ",
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 26,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0
    },
    {
      "type": "SEGMENTED_CONTROL",
      "id": 197196,
      "x": 0,
      "y": 2,
      "color": 79755519,
      "width": 8,
      "height": 1,
      "tabId": 2,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 24,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "2",
      "labels": [
        "red",
        "green"
      ]
    },
    {
      "type": "MENU",
      "id": 192247,
      "x": 0,
      "y": 1,
      "color": 600084223,
      "width": 8,
      "height": 1,
      "tabId": 3,
      "label": "Station",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 30,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "1",
      "labels": [
        "Wilsnack Hbf.",
        "Senklerdorf"
      ],
      "fontSize": "MEDIUM",
      "iconColor": 600084223
    },
    {
      "type": "MENU",
      "id": 100111,
      "x": 1,
      "y": 3,
      "color": 600084223,
      "width": 7,
      "height": 1,
      "tabId": 3,
      "label": "Track",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 31,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "3",
      "labels": [
        "1",
        "2",
        "3"
      ],
      "fontSize": "MEDIUM",
      "iconColor": 600084223
    },
    {
      "type": "STYLED_BUTTON",
      "id": 147108,
      "x": 4,
      "y": 7,
      "color": 0,
      "width": 4,
      "height": 1,
      "tabId": 3,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 33,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": true,
      "onButtonState": {
        "text": "dispatch",
        "textColor": -1,
        "backgroundColor": 600084223
      },
      "offButtonState": {
        "text": "dispatch",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "LARGE",
      "edge": "PILL",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "MENU",
      "id": 27413,
      "x": 2,
      "y": 5,
      "color": 600084223,
      "width": 6,
      "height": 1,
      "tabId": 3,
      "label": "Destination",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 32,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "1",
      "labels": [
        "Senklerdorf",
        "Schattenbahnhof"
      ],
      "fontSize": "MEDIUM",
      "iconColor": 600084223
    },
    {
      "type": "TERMINAL",
      "id": 179289,
      "x": 0,
      "y": 1,
      "color": 255,
      "width": 8,
      "height": 7,
      "tabId": 5,
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 22,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "autoScrollOn": true,
      "terminalInputOn": false,
      "textLightOn": true,
      "attachNewLine": false
    },
    {
      "type": "MENU",
      "id": 145011,
      "x": 0,
      "y": 1,
      "color": 600084223,
      "width": 8,
      "height": 1,
      "tabId": 4,
      "label": "Event",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 27,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 0,
      "value": "47",
      "labels": [
        "Dispatch Hidden 1",
        "Dispatch Hidden 6",
        "Dispatch Hidden 2",
        "Dispatch Hidden 3",
        "Dispatch Hidden 4",
        "Dispatch Farm 1",
        "Welder",
        "Locomotive sheds",
        "Locomotive sheds off",
        "Bw yard lights",
        "Night",
        "Day 10s",
        "Crickets",
        "Bells",
        "Crows",
        "Crow",
        "Band",
        "Sheep",
        "Dispatch Farm 3",
        "Dispatch Farm 2",
        "Dispatch Goods East",
        "Sparrows",
        "BR 41",
        "Dispatch S-Bahn 1",
        "Dispatch Hidden 8",
        "Dispatch Hidden 7",
        "Boyd report",
        "Dispatch Hidden 5",
        "Crow call",
        "Dispatch Hbf 4",
        "Ignore HTTP",
        "Dispatch Hbf 2",
        "Dispatch Goods West",
        "Dispatch Hbf 3",
        "Dispatch Hbf 5",
        "Dispatch S-Bahn 2",
        "Power OFF",
        "Welcome",
        "Chickens",
        "Barnyard",
        "Senklerdorf Bells (long)",
        "Senklerdorf sparrows",
        "Senklerdorf thunder",
        "Thunderstorm",
        "Wilsnack thunder",
        "Senklerdorf bird",
        "Wilsnack crow1",
        "Wilsnack Bells",
        "Streetlights OFF",
        "Apartment lights",
        "Apartments dark",
        "Street lights",
        "Crane wagon sounds",
        "Crane wagon next sound",
        "Bridge lights",
        "Sunset",
        "Sunrise",
        "Aurora",
        "Rooster",
        "Rooster",
        "chimney red",
        "Chimney OFF",
        "Chimney",
        "Auto smoke",
        "Intellibox",
        "Announcements",
        "Allow route chaining",
        "Allow sounds"
      ],
      "fontSize": "MEDIUM",
      "iconColor": 600084223
    },
    {
      "type": "STYLED_BUTTON",
      "id": 189119,
      "x": 5,
      "y": 3,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 4,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 28,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": true,
      "onButtonState": {
        "text": "⌛",
        "textColor": -1,
        "backgroundColor": 600084223
      },
      "offButtonState": {
        "text": "▶️",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "LARGE",
      "edge": "PILL",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 113183,
      "x": 0,
      "y": 8,
      "color": 0,
      "width": 4,
      "height": 1,
      "tabId": 0,
      "label": "192.168.86.156",
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 29,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": true,
      "onButtonState": {
        "text": "⏳",
        "textColor": -1,
        "backgroundColor": 600084223
      },
      "offButtonState": {
        "text": "📶 -43dBm",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "MEDIUM",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 24621,
      "x": 6,
      "y": 4,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 6,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0.0",
      "pushMode": true,
      "onButtonState": {
        "text": "8",
        "textColor": 255,
        "backgroundColor": -1
      },
      "offButtonState": {
        "text": "8",
        "textColor": 255,
        "backgroundColor": -1
      },
      "fontSize": "LARGE",
      "edge": "SHARP",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 82758,
      "x": 1,
      "y": 4,
      "color": 0,
      "width": 6,
      "height": 1,
      "tabId": 0,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 34,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": false,
      "onButtonState": {
        "text": "Ignore unexpected trains",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Ignore unexpected trains",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "MEDIUM",
      "edge": "ROUNDED",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 156950,
      "x": 0,
      "y": 8,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 35,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "1",
      "pushMode": false,
      "onButtonState": {
        "text": "Manual",
        "textColor": 255,
        "backgroundColor": 79755519
      },
      "offButtonState": {
        "text": "Manual",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "MEDIUM",
      "edge": "PILL",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "DIGIT4_DISPLAY",
      "id": 31996,
      "x": 0,
      "y": 6,
      "color": 600084223,
      "width": 8,
      "height": 1,
      "tabId": 0,
      "label": "Connection",
      "isDefaultColor": true,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 36,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1023,
      "value": " ",
      "frequency": 0,
      "fontSize": "LARGE"
    },
    {
      "type": "STYLED_BUTTON",
      "id": 149478,
      "x": 0,
      "y": 7,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 37,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": true,
      "onButtonState": {
        "text": "🛑",
        "textColor": -1,
        "backgroundColor": -750560001
      },
      "offButtonState": {
        "text": "🛑",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "LARGE",
      "edge": "PILL",
      "buttonStyle": "SOLID",
      "lockSize": false
    },
    {
      "type": "STYLED_BUTTON",
      "id": 21910,
      "x": 6,
      "y": 1,
      "color": 0,
      "width": 2,
      "height": 1,
      "tabId": 1,
      "isDefaultColor": false,
      "deviceId": 0,
      "pinType": "VIRTUAL",
      "pin": 38,
      "pwmMode": false,
      "rangeMappingOn": false,
      "min": 0,
      "max": 1,
      "value": "0",
      "pushMode": true,
      "onButtonState": {
        "text": "⏳",
        "textColor": -1,
        "backgroundColor": 600084223
      },
      "offButtonState": {
        "text": "↩️",
        "textColor": 255,
        "backgroundColor": 600084223
      },
      "fontSize": "LARGE",
      "edge": "PILL",
      "buttonStyle": "SOLID",
      "lockSize": false
    }
  ],
  "devices": [
    {
      "id": 0,
      "name": "cab",
      "boardType": "ESP8266",
      "vendor": "New Device",
      "connectionType": "WI_FI",
      "isUserIcon": false
    }
  ],
  "theme": "Blynk",
  "keepScreenOn": false,
  "isAppConnectedOn": false,
  "isNotificationsOff": false,
  "isShared": false,
  "isActive": true,
  "widgetBackgroundOn": false,
  "color": 0,
  "isDefaultColor": true
}

I think tabs with “id”: 0 is normal. I’m not sure it’s correct, but it’s normal.

It would appear the “Cab” tab corresponds to “id”: 1. It appears both of your Image Gallery widgets are associated with the Cab tab. How are you using the Image Gallery widgets? Are you writing the URL’s from the device?

Sorry I can’t be of more help, but I don’t think tabs “id”: 0 is the issue.


    {
      "type": "TABS",
      ...
      "tabs": [
        {
          "id": 0,
          "label": "Power"
        },
        {
          "id": 0,
          "label": "Cab"
        },
        ...
}

yes, at run-time I pass the URLs into the device from my layout software, and then I set them in the widgets. Works well!

The problem lay somewhere on the second tab for sure. My clone defaulted to the first tab.
I was able to add a new tab to the tab widget, edit the name of the second tab, but viewing it in run or edit mode corrupted the app again.

I was able to drag some widgets from the third tab to the first tab. Then I deleted the tab widget. Created a new tab widget and dragged the ones I could save to the 3rd tab again. I am now placing new widgets onto the seconds tab. Fortunately I made a screen shot of the second tab earlier today - now I have to go and set all the virtual pins again.

I will look at its definition to confirm the tab ids are OK, all zeroes looked suspicious though.

I have a project with three tabs and all of the ID’s are zero.

I’m running iOS. I’ve only had my Blynk project crash once and it was related to the Image Gallery Widget. That thing always makes me suspicious. I noticed one of your Image Gallery Widgets has a URL of,

      "urls": [
        " " <- note the space
      ],

The other has a URL of,

      "urls": [
        "" <- no space
      ],

Likely nothing, but something to consider. Good luck!

Joe

1 Like

image

Android 8.1 running on Nexus 6P
Blynk server
Crashing and corruption happens without any hardware (other than phone and Blynk server) involved.

It is reproducible simply by cloning the app before it even connects to onto any hardware and software running on it. So the IDE, and libraries used, etc. are extremely unlikely to be related.

The hardware I have been using is:
ESP8266 NodeMCU
Using ESP8266 2.5 library
Blynk library 0.6.0

yes one of them had the URL in it that I removed by hand.

Do you think that your second tab contains the widgets that have a tabID of 1 ?

Pete.

  1. What is your Blynk android app’s version?
  2. Did you send crash report?
1 Like

yes, they have tab ID 1

  1. 2.27.1 (installed multiple times today)
  2. Yes, the one that stated that it keeps stopping and hoping a reboot will clear it.

Do you have an image widget in that app?

yes, attached here!
Screenshot_20190222-113713|281x500

There are two image widgets, the second is to the right of the visible one, but is empty in the image.

I’ve rechecked your json - it is empty string in urls list causing this bug. I will fix it for the app. But how is it possible to create an empty string there? Via set property command?

Winner, winner, chicken dinner! What do I win?

2 Likes

The empty “urls” is the one where I removed the URL in the json before uploading it. The image at “x”: 6
the image at
“x”: 1
has space.

A free copy of the OP’s broken code ! :slight_smile:

Is it the null string or the string containing a single whitespace character?

I suppose both of this cases (space and empty strings) as well will cause a crash. I’ve found a crash report for such cases in the google play reports.

1 Like

While we’ve got you, @BlynkAndroidDev, what about the tabs “id”: 0? Is that correct?


    {
      "type": "TABS",
      ...
      "tabs": [
        {
          "id": 0,
          "label": "Power"
        },
        {
          "id": 0,
          "label": "Cab"
        },
        ...
}