DevToysMac icon indicating copy to clipboard operation
DevToysMac copied to clipboard

[BUG] Stops responding when trying to format a big JSON

Open tonylook opened this issue 2 years ago • 4 comments

Application stops to respond when I paste a large JSON to format (the output of an Elasticsearch insert), in addition I'm not able to use the application anymore, because when I force close it and reopen it, the application starts with the same thing I pasted before force closing it, and it stops to respond again. Here a brief sample of the json:

{
  "took": 4095,
  "errors": true,
  "items": [
    {
      "index": {
        "_index": "stores",
        "_type": "_doc",
        "_id": "1",
        "_version": 1,
        "result": "created",
        "_shards": {
          "total": 2,
          "successful": 2,
          "failed": 0
        },
        "_seq_no": 0,
        "_primary_term": 1,
        "status": 201
      }
    },
    {
      "index": {
        "_index": "stores",
        "_type": "_doc",
        "_id": "14123",
        "status": 400,
        "error": {
          "type": "mapper_parsing_exception",
          "reason": "failed to parse field [location] of type [geo_point]",
          "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "illegal latitude value [151.2265675] for location"
          }
        }
      }
    }
}

and here the stack trace of the issue: https://zerobin.net/?40302902d974c13e#C/R5tQ74Hjf3oy6guycaBnmiE6/0azCqBN8TXMPEWVw= Password for reading: tonylook

tonylook avatar Mar 07 '22 09:03 tonylook

I have the same problem.

dextercai avatar Mar 09 '22 10:03 dextercai

@tonylook I had the same issue and found a solution. I used the software CleanMyMac X (trial version) to help me Delete the file ./Library/Preferences/com.yuki.DevToys.plist Delete the folder /Volumes/Macintosh\ HD/private/var/folders/8c/krdwkn115rqc0phg_8t60s9c0000gn/C/com.yuki.DevToys/

For the folder, i can't confirm that it will be at the same location on you Mac If you don't find it, download CleanMyMac X.

After you deleted the file and folder, relaunch the software

juliends75 avatar Mar 22 '22 15:03 juliends75

It works for me, here is my steps.

  1. Direct remove the file:
$ rm ~/Library/Preferences/com.yuki.DevToys.plist
  1. Run command to find the private folder:
# Find
$ find /Volumes/Macintosh\ HD/private/var/folders/ -name "com.yuki.DevToys" 2> /dev/null
/Volumes/Macintosh HD/private/var/folders//js/dmhwmtvs4qzd5tq3ky_f3jhh0000gn/C/com.yuki.DevToys
# Remove
cd /Volumes/Macintosh HD/private/var/folders//js/dmhwmtvs4qzd5tq3ky_f3jhh0000gn/C/ && rm -rf com.yuki.DevToys

kioipp avatar May 19 '22 07:05 kioipp