DOpus crashes when writing in the script log

I thought this had been addressed before, since I've noticed that when you write a very large amount of text to the script log, it either gets truncated or simply ignored. But it looks like this can still happen.

In one of my scripts, I forgot that a response could be very large, so I passed it to the log as is. It looks like this causes DOpus to crash immediately.

I don't have the crash logs, but @MG250 can help you with those since he's the one who reproduced the crash. Simply avoiding logging such massive amounts of text prevents the crash, but I thought I'd let you know that this scenario is possible.

We need crash logs and/or a simple example script that reproduces the problem.

@MG250 can help you with that.

I don't have a simple example at hand, sorry.

From my experience, if you try to write something very large on a single line to the script log, it either gets truncated or ignored. So I don't know exactly what the output contains that manages to bypass that limit (since I couldn't see the full output either).

FWIW, the string to blame is a JSON object containing an array of multiple paths ( in this case, way too much paths).

I can reproduce it with a fresh installation of DOpus and OpusCustomFields script. The tested folder contains 640 files.

Crash log ID: 823

Please let me know if more info needs to be provided.

FWIW, I tried reproducing the crash by throwing a large amount of text (paths) at the script log, but without success, since DOpus's safety limit for logging gets triggered.

One hypothesis is that certain characters might be able to bypass that limit, or that there's something very specific in the text itself.

I've patched the culprit script in the latest version, but, as far as I remember, when I was first trying to figure out what caused the crash, I redirected the text to the clipboard and asked @MG250 to paste it and count the characters. So there's a chance he might still have the full content that caused Opus to crash.