Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Compile Cache breaks compilation


Pages: 1

Justin

  • Master Stencyler
  • *
September 07, 2017, 03:32:15 pm
Continuation of #970

Code: [Select]
2017-09-07 03:56:47,883 INFO  [Thread-41] stencyl.sw.io.write.resource.HXWriter: Finished: Building for Standalone (windows)
2017-09-07 03:56:47,883 INFO  [Thread-41] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Link: ApplicationMain.exe: link.exe -out:ApplicationMain.exe -nologo -machine:x86 -subsystem:windows,5.01 -libpath:lib user32.lib @obj/msvc16-nc-cxp/all_objs ws2_32.lib
2017-09-07 03:56:49,764 INFO  [Thread-41] stencyl.sw.util.StreamGobbler: [haxelib.exe] C:/Users/LIBERADO/AppData/Roaming/Stencyl/stencylworks/.hxcpp_cache/haxe/d7/7900d8524a56cacdd290492a9010a1.obj : fatal error LNK1136: invalid or corrupt file
2017-09-07 03:56:49,776 INFO  [Thread-41] stencyl.sw.util.StreamGobbler: [haxelib.exe] Error: Error while running command
2017-09-07 03:56:49,777 INFO  [Thread-41] stencyl.sw.io.write.resource.HXWriter: Finished: Building for Standalone (windows)
2017-09-07 03:56:49,777 INFO  [Thread-41] stencyl.sw.util.StreamGobbler: [haxelib.exe] link.exe -out:ApplicationMain.exe -nologo -machine:x86 -subsystem:windows,5.01 -libpath:lib user32.lib @obj/msvc16-nc-cxp/all_objs ws2_32.lib
2017-09-07 03:56:49,819 DEBUG [pool-2-thread-2] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
2017-09-07 03:56:49,819 ERROR [pool-2-thread-2] stencyl.sw.io.write.resource.HXWriter: Failed: Running Standalone (windows). (Return code: 1)

Quote from: Justin
The Windows one, as I mentioned, seems like it's stopped because of an invalid file in the compiler cache. Perhaps deleting it and trying again will work? If so, we can automate the corrupted file removal in the toolset.

Quote from: LIBERADO
About Windows target, after deleting the file you mentioned and trying to test the game, such file is created again. The first testing attemp compiles forever, and the second testing attemp stops the compilation and the log shows the same error about the newly created file: 7900d8524a56cacdd290492a9010a1.obj

Quote from: iii
I'm using build 9505.
Windows publish/compile works fine for me. Haven't test out on the others.
But, I don't use the latest speedy cache compilation that's implemented in 3.5.
Its always been slightly buggy on my side.
I commented "<setenv name="HXCPP_COMPILE_CACHE" value="[STENCYL_WORKSPACE]/.hxcpp_cache/"/>" out
from "sw.jar/res/templates/hxcpp_config.xml"
« Last Edit: September 07, 2017, 03:34:14 pm by Justin »


Issue updated by Justin - September 07, 2017, 03:34:23 pm
  • Issue Assigned from (none) to Justin


Justin

  • Master Stencyler
  • *
September 07, 2017, 09:37:18 pm
For now, let's see if you can get windows/cppia to compile if you start from scratch.

1. Disable the compile cache, or just delete it.
- The cache is located at stencylworks/.hxccp_cache
- You can disable the feature instead by following iii's tip above.

2. Remove previous caches in other place.
- Delete stencylworks/cppia, which is where cppia's compilation stuff is cached.
- Run > Clean Project in Stencyl with your game open to clean the windows cache.

3. Rebuild the cppia host and test the game in windows/cppia.


LIBERADO

  • Expert Stencyler
  • *
September 09, 2017, 02:44:30 pm
I hope this detailed information can help you:

After deleting the stencylworks\.hxccp_cache folder content, deleting also the stencylworks\cppia folder content, and cleaning the project, this is what exactly happens:

1. When trying to rebuild the Cppia Host, only the "haxe" folder (287.2 MB) is created inside stencylworks\.hxcpp_cache, no more folders are created along with it, then the rebuilding process gets stuck and never ends, so I have to close Stencyl. (Note: This does not happens with b9511 only, I remember that it happened often with older Stencyl versions.)

2. After closing and reopening Stencyl and trying to rebuild the Cppia Host again, the rebuilding process seems to continue until being completed, and these other folders are created inside stencylworks\.hxcpp_cache:

3. But, from this moment, every time I try to test any game on Cppia target, this error happens:
Code: [Select]
2017-09-09 21:52:36,149 INFO  [Thread-16] stencyl.sw.util.StreamGobbler: [haxelib.exe] Link: StencylCppia.exe
2017-09-09 21:52:38,391 INFO  [Thread-16] stencyl.sw.util.StreamGobbler: [haxelib.exe] LINK : fatal error LNK1104: cannot open file 'C:/Users/LIBERADO/AppData/Roaming/Stencyl/stencylworks/.hxcpp_cache/haxe/22/7174469e695e73faa15105fc023e6e.obj'
2017-09-09 21:52:38,428 ERROR [Thread-16] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.
2017-09-09 21:52:38,526 DEBUG [pool-2-thread-2] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
4. Then, if I try to test on Windows target, it compiles forever, the compilation never ends, so I have to close Stencyl.

5. When closing Stencyl, in the Windows Task Manager I see that the cl.exe (Microsoft® C/C++ Compiler Driver) is still running and appears duplicated, so I end it.

6. After reopening Stencyl, any new attempt to test any game on Windows target causes this error:
Code: [Select]
2017-09-09 22:23:43,323 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [haxelib.exe] C:/Users/LIBERADO/AppData/Roaming/Stencyl/stencylworks/.hxcpp_cache/haxe/6a/b98c999e88b506ac3d7350f884f48e.obj : fatal error LNK1136: invalid or corrupt file
2017-09-09 22:23:43,339 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [haxelib.exe] Error: Error while running command
2017-09-09 22:23:43,339 INFO  [Thread-15] stencyl.sw.io.write.resource.HXWriter: Finished: Building for Standalone (windows)
2017-09-09 22:23:43,340 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [haxelib.exe] link.exe -out:ApplicationMain.exe -nologo -machine:x86 -subsystem:windows,5.01 -libpath:lib user32.lib @obj/msvc16-nc-cxp/all_objs ws2_32.lib
2017-09-09 22:23:43,404 DEBUG [pool-2-thread-1] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
2017-09-09 22:23:43,405 ERROR [pool-2-thread-1] stencyl.sw.io.write.resource.HXWriter: Failed: Running Standalone (windows). (Return code: 1)
7. However, strangely, the failed attempts to test on Windows target seem to fix something that allows Cppia to work from now, but testing on Windows target never works. So, from this moment:
   
Testing on Cppia: OK
Testing on Windows: ERROR
Testing on Cppia: OK
Testing on Windows: ERROR
Testing on Windows: ERROR
Testing on Windows: ERROR
Testing on Cppia: OK
Testing on Cppia: OK
Testing on Windows: ERROR
Testing on Cppia: OK
etc.

Note: I have started from scratch and repeated these 7 steps several times, and it always happens exactly the same.
« Last Edit: September 09, 2017, 03:01:45 pm by LIBERADO »


Pages: 1

Details

  • Reported
    September 07, 2017, 03:32:15 pm
  • Updated
    September 09, 2017, 02:44:30 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags