Unwanted symbols break the log in task output.

Post Reply
lcenzoredl
Posts: 5
Joined: Fri Sep 29, 2017 5:30 pm

Unwanted symbols break the log in task output.

Post by lcenzoredl » Fri Sep 29, 2017 6:23 pm

In version 2.2.2 (I don't remember, maybe in 2.2.1 too) the task output window can't show the log file (web interface can't too).

The problem is some kinde of strange symbols (like chinese) at the end of log file.
So, it looks like that:
===
29.09.2017 20:14:57; Total elapsed time 00:00:11
29.09.2017 20:14:57; Scene R:\P\t\d\r.max completed.
㩚停潲敪瑣屳浴屰⹤潤杬歩屨敲獤楨瑦瑟獥彴慭彸ぶ㄰牜摥桳晩彴整瑳浟硡た㈰⸳硥⁲塅⁒㈱〸㝸〲ㄠ㠲砰㈷⬰⬰‰㘱戭瑩删䉇㈠㘮㈸䉍〠〮㐹⁵㨰〰ㄮ㤰਍
===

If you simply run cmd by hand, the log will be clean and without any unwanted symbols, but they appear in afanasy.

I found that other guys who has this kind of problem with other software, use the |MORE command

https://ss64.com/nt/more.html

So in cmd the output to file looks like:
@WMIC CPU Get Name|MORE>>"%PathSave%"

https://stackoverflow.com/questions/459 ... se-symbols

Is there any place where I can put this fix by my self or maybe Timur can check it and make some kind of patch to solve this issue?

User avatar
timurhai
Site Admin
Posts: 356
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Unwanted symbols break the log in task output.

Post by timurhai » Thu Oct 05, 2017 8:34 am

Hi.
What do you mean by "Can't show the log file"?
- AfWatch crashes?
- Web browser shows nothing?

You can use some wrapper, for example 3dsmaxcmd.cmd that should contain:

Code: Select all

3dsmaxcmd.exe %* | MORE
Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

lcenzoredl
Posts: 5
Joined: Fri Sep 29, 2017 5:30 pm

Re: Unwanted symbols break the log in task output.

Post by lcenzoredl » Thu Oct 05, 2017 6:21 pm

Hi, Timur!

I mean that in AfWatch and in WebGui you see nothing, blank window (actualy in AfWatch it shows one digit - 0 or 2, i don't know why).

But I have a good news, I found solution.
I try to comment some code at the and in parser.py, all strings about HTML.
So now it looks like that:
Image

And WebGui still can't show it:
Image

I don't know what consequences it would has for us, but now AfWatch can read the log.

I don't have enough knowlege about HTML or how I can use it in that case.
As I understand from release notes this needed for somehow mark the log file in AfWatch, but in my case it broken the 3dsmax output, and don't have any changes in other software.

lcenzoredl
Posts: 5
Joined: Fri Sep 29, 2017 5:30 pm

Re: Unwanted symbols break the log in task output.

Post by lcenzoredl » Fri Oct 06, 2017 1:33 pm

Little update:

1. If I comment part of code just put three quotes (open comment), but don't close it, then AfWatch display message as I want, it is completely ignore all HTML functionality. But when AfRender start a task it's output the python syntax error.

2. If I fix syntax and add """ at the end of file, the AfWatch still show the log, but in a single line. I've found that when parser convert log to HTML format it add <br> tag for start new lines.

3. If I enable html conversion, then AfWatch can't display the log.

4. I try to get back parser.py, but in service.py comment "toHTML()" function. So AfWatch show all what I want, but Afrender log the error that it lost this function, and crashes.

So if you enable HTML conversion of Log, then 3dsmax's output makes nor readable in AfWatch.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest