VN Ren'Py Looking for a Python/Ren'Py pro !

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
Hi, I'm L&P and the developer of the game "A Wife And Mother".

I'm currently looking for someone who's very fit with Python and Ren'py, to maybe work together. My biggest issues at the moment are:
1) Building an Android version. It always gets an Error at the end of the building process!
2) With every new update the old savegames don't work! How to fix that, except of creating own savegames?

Who's interested, please contact me: lust_and_passion@yahoo.com!
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,960
16,196
2) With every new update the old savegames don't work! How to fix that, except of creating own savegames?
Partly by looking around there, finding , then reading it.
 
  • Like
Reactions: Domiek

Porcus Dev

Engaged Member
Game Developer
Oct 12, 2017
2,582
4,705
1) Building an Android version. It always gets an Error at the end of the building process!
I also had problems with my first Android distribution, the solution was to install "Android Studio".
I didn't have to do anything with Android Studio, I guess Renpy just needed some dependencies of it.

2) With every new update the old savegames don't work! How to fix that, except of creating own savegames?
Perhaps problems are related to add new variables in the new versions.
 
Last edited:
  • Like
Reactions: Spirox

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
I also had problems with my first Android distribution, the solution was to install "Android Studio".
I didn't have to do anything with Android Studio, I guess Renpy just needed some dependencies of it.



Perhaps problems are related to add new variables in the new versions.
Installing Android Studio didn't help anything. Still get the same Error at the end:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app: packageRelease'.
> org.gradle.tooling.BuildException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at

BUILD FAILED in 3m 2s
50 actionable tasks: 50 executed
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM Tenured space is exhausted




The build seems to have failed.
 
Last edited:

Porcus Dev

Engaged Member
Game Developer
Oct 12, 2017
2,582
4,705
Perhaps this helps:


And where you can find "gradle-properties":
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
If your building through ren'py you have to go into: DriveRenpyIsOn:\Program Files\renpyInstallFolder\rapt\project open the gradle.properties folder in a text editor and change "org.gradle.jvmargs"

I used these settings to have it actually build:
org.gradle.jvmargs=-Xms1024m -Xmx4096M -XX\:MaxHeapSize\=32g -XX:NewSize=512M

To have it actually run though I needed to disable the first Movie() command (line 2) and to be safe I disabled the other movies (the cutscene command may actually run without issue but I didn't test it yet).

I also took all the webp files and used lossy compression at 95% to make the webps only 680 MB with an almost unnoticeable loss of quality.

The build runs in BlueStacks but haven't tested my little 5th gen Amazon Fire tablet.
(Title Screen and how far I ran through the game to check how it worked)

awam.jpg awam2.jpg
 

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
If your building through ren'py you have to go into: DriveRenpyIsOn:\Program Files\renpyInstallFolder\rapt\project open the gradle.properties folder in a text editor and change "org.gradle.jvmargs"

I used these settings to have it actually build:
org.gradle.jvmargs=-Xms1024m -Xmx4096M -XX\:MaxHeapSize\=32g -XX:NewSize=512M

To have it actually run though I needed to disable the first Movie() command (line 2) and to be safe I disabled the other movies (the cutscene command may actually run without issue but I didn't test it yet).

I also took all the webp files and used lossy compression at 95% to make the webps only 680 MB with an almost unnoticeable loss of quality.

The build runs in BlueStacks but haven't tested my little 5th gen Amazon Fire tablet.
(Title Screen and how far I ran through the game to check how it worked)

View attachment 181719 View attachment 181720
I changed the org.gradle.jvmargs and also deleted the movie command but I still get the same error at the end of the build! I don't think that reducing the size of the imgages have something to do with that error: Execution failed for task ':app: packageRelease'. > org.gradle.tooling.BuildException (no error message)
 
Last edited:

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
Do you have the 64-bit JDK installed?
Yes. I installed "jre-8u191-windows-x64.exe" first and then "jdk-8u191-windows-x64.exe".

This is the full error message I'm getting now:

Ren'Py 7.1.3.1092

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
Starting a Gradle Daemon (subsequent builds will be faster)
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources UP-TO-DATE
:app:generateReleaseSources UP-TO-DATE
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavac UP-TO-DATE
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
:app:javaPreCompileRelease UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForRelease UP-TO-DATE
:app:transformDexArchiveWithDexMergerForRelease UP-TO-DATE
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:validateSigningRelease UP-TO-DATE
:app:packageRelease
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM Tenured space is exhausted

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at




The build seems to have failed.
 
Last edited:

Porcus Dev

Engaged Member
Game Developer
Oct 12, 2017
2,582
4,705
Yes. I installed "jre-8u191-windows-x64.exe" first and then "jdk-8u191-windows-x64.exe".
Talking about java...I work in a 64bit OS but I think I needed to install java for 32bit because in my renpy directory I had downloaded "jdk-8u181-windows-i586". I know that surely that not resolve the problem but I want just to comment.
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
I do have both installed, the error is still indicating that you are running out of memory. I had that until I got the gradle properties correct.

I could try building with the original images and see if I have an issue again.

My Java, Ren'py, and System Info:
java.jpg renver.jpg sysstats.jpg
 
Last edited:

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
Failed when using the original images. :eek:
Code:
Ren'Py 7.1.1.929

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
Starting a Gradle Daemon (subsequent builds will be faster)
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources UP-TO-DATE
:app:generateReleaseSources UP-TO-DATE
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavac UP-TO-DATE
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
:app:javaPreCompileRelease UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForRelease UP-TO-DATE
:app:transformDexArchiveWithDexMergerForRelease UP-TO-DATE
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:validateSigningRelease UP-TO-DATE
:app:packageRelease
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM Tenured space is exhausted
Expiring Daemon because JVM Tenured space is exhausted
Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org




The build seems to have failed.
 

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
Failed when using the original images. :eek:
Code:
Ren'Py 7.1.1.929

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
Starting a Gradle Daemon (subsequent builds will be faster)
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources UP-TO-DATE
:app:generateReleaseSources UP-TO-DATE
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavac UP-TO-DATE
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
:app:javaPreCompileRelease UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForRelease UP-TO-DATE
:app:transformDexArchiveWithDexMergerForRelease UP-TO-DATE
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:validateSigningRelease UP-TO-DATE
:app:packageRelease
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM Tenured space is exhausted
Expiring Daemon because JVM Tenured space is exhausted
Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org




The build seems to have failed.
OK, what do you mean with "original images"? Original image size? So the images can't be bigger than 650 MB for Android???
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
I'm trying to see if I give the JVM even more memory if it will actually work, I've changed xms and xmx to: -Xms3064M -Xmx6144M

I unpacked the game with Unren.bat so I could actually work with it, and after i did that I ran Xnconvert over the very large webp files at 95% to save space.
I don't actually have a huge amount of space on my tablet so I didn't want to try and install an over 3gb game.
It took long enough to install a 1gb game. :cry::eek:

I mean realistically there is no reason to have uncompressed/lossless images for a small screen, almost no one will be able to notice them... honestly the 95% is good for HQ PC, the apk should be 80-90% compressed probably for a release. :D

I attached an example of the 2 webp files, the copy a 1/4 of the size at a minimal image quality loss (imo)... I mean you could for the pc release go up to 99/98 and still reduce the file size by half. :unsure:
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
Failed again... going to switch images and see if it will absolutely build.
Code:
Ren'Py 7.1.3.1092

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources UP-TO-DATE
:app:generateReleaseSources UP-TO-DATE
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavac UP-TO-DATE
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
:app:javaPreCompileRelease UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForRelease UP-TO-DATE
:app:transformDexArchiveWithDexMergerForRelease UP-TO-DATE
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease
:app:transformNativeLibsWithMergeJniLibsForRelease
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:validateSigningRelease UP-TO-DATE
:app:packageRelease
Expiring Daemon because JVM Tenured space is exhausted
Daemon will be stopped at the end of the build after running out of JVM memory
Expiring Daemon because JVM Tenured space is exhausted
:app:packageRelease FAILED
Expiring Daemon because JVM Tenured space is exhausted

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageRelease'.
> Java heap space

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 48s
46 actionable tasks: 7 executed, 39 up-to-date
Expiring Daemon because JVM Tenured space is exhausted
Expiring Daemon because JVM Tenured space is exhausted
Expiring Daemon because JVM Tenured space is exhausted
Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org




The build seems to have failed.
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
Successful build with the compressed images, I did peak memory usage at 6GB.

I'll convert the original files at maximum lossy compression and see if I can make it build... but at this point I would say the lossless images won't build without a significant investment in RAM :eek:o_O.
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
Okay I had another successful build, this time I restored the renpy.movie_cutscene commands which might throw an error when trying to actually play the game.

Anyway the 95% quality images are 680 MB on disk, the 100% quality images are 981 MB on disk.
It took 6GB of RAM to process the 680 MB images and it took 7 GB of RAM to process the 981 MB images...
I'm bad at math and it's not completely linear but I would guess it would take 11-14 GB of memory to process the lossless images, but I can't test that because I don't have that much free RAM. :unsure::(
 

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
Well, I got 32 GB RAM! So, actually it shouldn't be a problem in my case...
I'll try it with: "-Xms11264m -Xmx14336M" then?
But what about these values? -XX\:MaxHeapSize\=32g -XX:NewSize=512M
 
Last edited:

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,064
-Xms and -Xmx are the more relevant settings it seems, so I'd say just adjust them first. If it still fails possibly adjust -XX:NewSize=512M to -XX:NewSize=1024M. NewSize is the size of the garbage collection, which was part of the error when I updated Ren'py to the current version.
 

Lust&Passion

Member
Game Developer
Oct 22, 2017
175
2,219
Alright, I finally did it! I reduced all images with xnconverter to 60% smaller webp files (pracitally without any quality loss) and everything worked fine! Thanks!
 
  • Like
Reactions: Epadder