-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unity appears to rewrite log file when using -logFile argument #3
Comments
Executing examples/Example2 from the CLI using 5.6.1f1 on Mac gives different log contents Here's a cleaned diff:
This is reproduced by doing
(see #10 for u3dlogiff) So we cannot rely on Initialize mono being there. Still working on the errors appearing at the top. |
I tested more with 2017.1.0f3 on mac. I reproduce the overwriting of the top of the file when using the -logFile argument:
On other side this behaves properly
|
* Detect and warn if on Ubuntu on Windows Add Bash on Ubuntu on Windows detection. Warns the user that the operating system is not supported before running any command. * u3d/commands: implementation without commands_caller (#3)
I followed this issue a bit. Unity partially fixed this in 2017.1.1f1. From that version and above, when using the -logFile argument, the out of order messages are not written to the top of the logfile, but instead either added at the proper moment, or sent to the error output of the Unity process (something entirely new). When not using the -logFile argument, the output is sent as expected to the main editor log file. Here's the script I used to check things and its output versions=( 5.6.5f1 2017.1.0f3 2017.1.1f1 2017.1.2f1 2017.1.3f1 2017.2.1f1 2017.3.0f2 )
rm -f editor*.log
for version in "${versions[@]}"; do
echo "Using version $version"
git checkout -- .
/Applications/Unity_$version/Unity.app/Contents/MacOS/Unity -projectPath `pwd` -logFile ./editor_${version}_arg.log -executeMethod U3d.EditorRun.Build -quit -batchmode 2&> ./editor_${version}_err.log
git checkout -- .
/Applications/Unity_$version/Unity.app/Contents/MacOS/Unity -projectPath `pwd` -executeMethod U3d.EditorRun.Build -quit -batchmode
cp ~/Library/Logs/Unity/Editor.log ./editor_${version}_raw.log
git checkout -- .
u3d -u $version -- -projectPath `pwd` -executeMethod U3d.EditorRun.Build -quit -batchmode -logFile ./editor_${version}_u3d_arg.log
done
I asked Unity to clarify if this was intended behavior. I'll wait for their answer if any. On our side:
|
u3d/examples: support Unity 2017.3+, identified while investigating #3
running the Example2 leads to some weird lines added at the top of the editor AFTER process started:
Tested on Mac with Unity 5.6.1f1
Reported as 939108 on Unity side
The text was updated successfully, but these errors were encountered: