jit.matrix exportimage sqlite_exec erro

wateb's icon

my code is this:

{
    "boxes" : [         {
            "box" :             {
                "maxclass" : "message",
                "text" : "exportimage teste",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 930.0, 506.5, 106.0, 22.0 ],
                "id" : "obj-125",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "print",
                "numoutlets" : 0,
                "patching_rect" : [ 1181.0, 649.0, 34.0, 22.0 ],
                "id" : "obj-124",
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "exportsummary",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1118.0, 498.0, 93.0, 22.0 ],
                "id" : "obj-122",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "exportimage test222 jpg",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1107.0, 571.5, 139.0, 22.0 ],
                "id" : "obj-118",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.matrix final 4 char 320 240",
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ],
                "patching_rect" : [ 984.0, 626.0, 164.0, 22.0 ],
                "id" : "obj-116",
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "jit.pwindow",
                "presentation_rect" : [ 75.0, 75.0, 160.0, 120.0 ],
                "numoutlets" : 2,
                "outlettype" : [ "", "" ],
                "patching_rect" : [ 930.0, 711.5, 399.0, 240.0 ],
                "id" : "obj-114",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "exportimage 1",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 574.0, 443.0, 87.0, 22.0 ],
                "id" : "obj-105",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.qt.videoout",
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ],
                "patching_rect" : [ 403.0, 470.0, 81.0, 22.0 ],
                "id" : "obj-103",
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.op @op + @val 255",
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ],
                "patching_rect" : [ 403.0, 385.0, 129.0, 22.0 ],
                "id" : "obj-87",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "close",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 557.0, 264.0, 39.0, 22.0 ],
                "id" : "obj-86",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "font Arial 32",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1411.5, 396.0, 82.0, 23.0 ],
                "id" : "obj-17",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 2,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "textface bold",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1438.5, 297.0, 84.0, 23.0 ],
                "id" : "obj-26",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 2,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "s trigger",
                "numoutlets" : 0,
                "patching_rect" : [ 731.5, 278.0, 54.0, 22.0 ],
                "id" : "obj-84",
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "delay 3000",
                "numoutlets" : 1,
                "outlettype" : [ "bang" ],
                "patching_rect" : [ 735.0, 236.0, 69.0, 22.0 ],
                "id" : "obj-83",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "/ 1000",
                "numoutlets" : 1,
                "outlettype" : [ "int" ],
                "patching_rect" : [ 828.0, 379.0, 44.0, 22.0 ],
                "id" : "obj-82",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "r trigger",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1469.0, 93.0, 52.0, 22.0 ],
                "id" : "obj-74",
                "style" : "",
                "numinlets" : 0
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "sprintf write %sm/s",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 828.0, 431.0, 111.0, 22.0 ],
                "id" : "obj-72",
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "delay 10",
                "numoutlets" : 1,
                "outlettype" : [ "bang" ],
                "patching_rect" : [ 822.5, 250.0, 56.0, 22.0 ],
                "id" : "obj-69",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "brgb 0 0 0, frgb 255 0 0",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1385.0, 255.0, 146.0, 23.0 ],
                "id" : "obj-133",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 2,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "comment",
                "text" : "Clear the lcd to the current background color",
                "numoutlets" : 0,
                "bubble" : 1,
                "patching_rect" : [ 1389.0, 189.0, 284.0, 25.0 ],
                "id" : "obj-136",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "clear",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1345.0, 192.0, 40.0, 23.0 ],
                "id" : "obj-90",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 2,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "moveto 50 200",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 1305.5, 133.0, 97.0, 23.0 ],
                "id" : "obj-8",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 2,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "qmetro 30",
                "numoutlets" : 1,
                "outlettype" : [ "bang" ],
                "patching_rect" : [ 1172.166748, 199.0, 71.0, 23.0 ],
                "id" : "obj-1",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 2,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "t i clear",
                "numoutlets" : 2,
                "outlettype" : [ "int", "clear" ],
                "patching_rect" : [ 1172.166748, 162.0, 71.0, 23.0 ],
                "id" : "obj-2",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "comment",
                "text" : "Click to start the qmetro",
                "numoutlets" : 0,
                "patching_rect" : [ 1223.166748, 133.0, 152.0, 21.0 ],
                "id" : "obj-9",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "toggle",
                "numoutlets" : 1,
                "outlettype" : [ "int" ],
                "patching_rect" : [ 1172.166748, 133.0, 24.0, 24.0 ],
                "id" : "obj-11",
                "parameter_enable" : 0,
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "jit.fpsgui",
                "numoutlets" : 2,
                "outlettype" : [ "", "" ],
                "patching_rect" : [ 1379.166748, 721.0, 55.0, 36.0 ],
                "id" : "obj-12",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontface" : 0,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "jit.pwindow",
                "numoutlets" : 2,
                "border" : 1.0,
                "outlettype" : [ "", "" ],
                "patching_rect" : [ 1379.166748, 462.5, 320.0, 240.0 ],
                "id" : "obj-3",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.lcd 4 char 320 240",
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ],
                "patching_rect" : [ 1172.166748, 331.0, 134.0, 23.0 ],
                "id" : "obj-98",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "message",
                "text" : "open",
                "numoutlets" : 1,
                "outlettype" : [ "" ],
                "patching_rect" : [ 528.0, 222.0, 37.0, 22.0 ],
                "id" : "obj-55",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "toggle",
                "numoutlets" : 1,
                "outlettype" : [ "int" ],
                "patching_rect" : [ 414.833252, 184.0, 24.0, 24.0 ],
                "id" : "obj-54",
                "parameter_enable" : 0,
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "qmetro 30",
                "numoutlets" : 1,
                "outlettype" : [ "bang" ],
                "patching_rect" : [ 403.0, 241.0, 65.0, 22.0 ],
                "id" : "obj-53",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "jit.grab 320 240",
                "numoutlets" : 2,
                "outlettype" : [ "jit_matrix", "" ],
                "patching_rect" : [ 403.0, 322.5, 100.0, 23.0 ],
                "id" : "obj-95",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontface" : 0,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "jit.fpsgui",
                "numoutlets" : 2,
                "outlettype" : [ "", "" ],
                "patching_rect" : [ 403.0, 872.0, 55.0, 36.0 ],
                "id" : "obj-22",
                "fontname" : "Arial",
                "style" : "",
                "numinlets" : 1,
                "fontface" : 0,
                "fontsize" : 13.0
            }

        }
,         {
            "box" :             {
                "maxclass" : "jit.pwindow",
                "presentation_rect" : [ 60.0, 60.0, 160.0, 120.0 ],
                "numoutlets" : 2,
                "outlettype" : [ "", "" ],
                "patching_rect" : [ 403.0, 546.5, 399.0, 240.0 ],
                "id" : "obj-20",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "timer",
                "numoutlets" : 2,
                "outlettype" : [ "float", "" ],
                "patching_rect" : [ 810.0, 322.5, 37.0, 22.0 ],
                "id" : "obj-42",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "select 50",
                "numoutlets" : 2,
                "outlettype" : [ "bang", "" ],
                "patching_rect" : [ 743.0, 140.0, 59.0, 22.0 ],
                "id" : "obj-39",
                "style" : "",
                "numinlets" : 2
            }

        }
,         {
            "box" :             {
                "maxclass" : "newobj",
                "text" : "key",
                "numoutlets" : 4,
                "outlettype" : [ "int", "int", "int", "int" ],
                "patching_rect" : [ 735.0, 63.0, 50.5, 22.0 ],
                "id" : "obj-40",
                "style" : "",
                "numinlets" : 0
            }

        }
,         {
            "box" :             {
                "maxclass" : "button",
                "numoutlets" : 1,
                "outlettype" : [ "bang" ],
                "patching_rect" : [ 828.0, 191.0, 24.0, 24.0 ],
                "id" : "obj-41",
                "style" : "",
                "numinlets" : 1
            }

        }
,         {
            "box" :             {
                "maxclass" : "textbutton",
                "hint" : "",
                "numoutlets" : 3,
                "bgcolor" : [ 1.0, 0.658824, 0.14902, 1.0 ],
                "outlettype" : [ "", "", "int" ],
                "patching_rect" : [ 1203.166748, 133.0, 20.0, 20.0 ],
                "text" : "1",
                "legacytextcolor" : 1,
                "id" : "obj-58",
                "parameter_enable" : 0,
                "rounded" : 60.0,
                "background" : 1,
                "textcolor" : [ 0.2, 0.2, 0.2, 1.0 ],
                "style" : "",
                "ignoreclick" : 1,
                "numinlets" : 1
            }

        }
 ],
    "lines" : [         {
            "patchline" :             {
                "source" : [ "obj-122", 0 ],
                "destination" : [ "obj-116", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-118", 0 ],
                "destination" : [ "obj-116", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-116", 0 ],
                "destination" : [ "obj-114", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-103", 0 ],
                "destination" : [ "obj-116", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-116", 1 ],
                "destination" : [ "obj-124", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-125", 0 ],
                "destination" : [ "obj-116", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-105", 0 ],
                "destination" : [ "obj-103", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-103", 0 ],
                "destination" : [ "obj-20", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-87", 0 ],
                "destination" : [ "obj-103", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-72", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-82", 0 ],
                "destination" : [ "obj-72", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-98", 0 ],
                "destination" : [ "obj-87", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-95", 0 ],
                "destination" : [ "obj-87", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-98", 0 ],
                "destination" : [ "obj-3", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-53", 0 ],
                "destination" : [ "obj-95", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-55", 0 ],
                "destination" : [ "obj-95", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-86", 0 ],
                "destination" : [ "obj-95", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-83", 0 ],
                "destination" : [ "obj-84", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-41", 0 ],
                "destination" : [ "obj-83", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-17", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-74", 0 ],
                "destination" : [ "obj-90", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-26", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-42", 1 ],
                "destination" : [ "obj-82", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-69", 0 ],
                "destination" : [ "obj-42", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-69", 0 ],
                "destination" : [ "obj-42", 1 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-74", 0 ],
                "destination" : [ "obj-8", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-41", 0 ],
                "destination" : [ "obj-69", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-90", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-133", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-8", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-1", 0 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-11", 0 ],
                "destination" : [ "obj-2", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-2", 0 ],
                "destination" : [ "obj-1", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-2", 1 ],
                "destination" : [ "obj-98", 0 ],
                "hidden" : 0,
                "midpoints" : [ 1233.666748, 192.0, 1162.000122, 192.0, 1162.000122, 317.0, 1181.666748, 317.0 ],
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-3", 0 ],
                "destination" : [ "obj-12", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-54", 0 ],
                "destination" : [ "obj-53", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-20", 0 ],
                "destination" : [ "obj-22", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-40", 0 ],
                "destination" : [ "obj-39", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
,         {
            "patchline" :             {
                "source" : [ "obj-39", 0 ],
                "destination" : [ "obj-41", 0 ],
                "hidden" : 0,
                "disabled" : 0
            }

        }
 ],
    "appversion" :     {
        "major" : 7,
        "minor" : 0,
        "revision" : 1,
        "architecture" : "x86",
        "modernui" : 1
    }

}

everything is working as expected except the exportimage part

any message I send to jit.matrix I get

print: exportimage test222 1
sqlite_exec: 1 (near "teste": syntax error)
sqlite_exec_query: SELECT DISTINCT _id, _modified, _tags FROM _things WHERE _name = ""teste.png"" COLLATE NOCASE AND _filename = ""teste.png".png" COLLATE NOCASE AND _path = "./" COLLATE NOCASE
sqlite_exec: 1 (near "teste": syntax error)
sqlite_exec_query: INSERT INTO _things (_name, _filename, _path, _kind, _type, _typedesc, _created, _modified, _added, _used, _tags, _status, _package)                      VALUES (""teste.png"",""teste.png".png","./",'imagefile','PNG ','PNG file','2015-04-04 12:48:53','2015-04-04 12:48:53','2015-04-04 12:56:20
',0,'','','Max')

did this happened to anyone else?

wateb's icon

I don't know what happened but
it started working somehow... I rebooted
the computer, and after that everything was fine...