Jump to content

build failed (assets)


artiix

Recommended Posts

Hello everyone

I learned java recently and i want to create a mod but since 2 days i try to do all the setup in order to start my mod creation with eclipse. today i have this error :

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':downloadAssets'.
> Failed to get asset: icons/icon_16x16.png
  Failed to get asset: icons/icon_32x32.png
  Failed to get asset: icons/minecraft.icns
  Failed to get asset: minecraft/sounds/random/successful_hit.ogg
  Some assets failed to download or validate, try running the task again.

i try a lot of things i read on forums but i still have this error.

Is  there someone to help me ?  I just want to starting create a mod and its difficult to keep motivation when there is  lot of problems.

thanks to the personn who will help me and very sorry for my bad english.

Link to comment
Share on other sites

the begining is :


C:\Users\timot\OneDrive\Bureau\mymod\modperso>gradlew genEclipseRuns
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

> Configure project :
Java: 1.8.0_281 JVM: 25.281-b09(Oracle Corporation) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.
Copying local object: bd/bdf48ef6b5d0d23bbb02e17d04865216179f510a Asset: icons/icon_16x16.png
Copying local object: 92/92750c5f93c312ba9ab413d546f32190c56d6f1f Asset: icons/icon_32x32.png
Copying local object: 99/991b421dfd401f115241601b2b373140a8d78572 Asset: icons/minecraft.icns
Copying local object: bd/bdf48ef6b5d0d23bbb02e17d04865216179f510a Asset: minecraft/icons/icon_16x16.png
Copying local object: 92/92750c5f93c312ba9ab413d546f32190c56d6f1f Asset: minecraft/icons/icon_32x32.png
Copying local object: 99/991b421dfd401f115241601b2b373140a8d78572 Asset: minecraft/icons/minecraft.icns
Copying local object: 64/64b30ead23fbc30751af700e7bad99a22a8100f3 Asset: minecraft/lang/af_za.json
Copying local object: d1/d1624bb06f01316d29081e65e733a333968c6a23 Asset: minecraft/lang/ar_sa.json
minecraft/icons/icon_16x16.png Failed.
minecraft/icons/icon_32x32.png Failed.
Copying local object: 3c/3c5ff0f463db8396c298ce92e0db15209ee559ef Asset: minecraft/lang/ast_es.json
minecraft/icons/minecraft.icns Failed.
java.nio.file.FileSystemException: C:\Users\timot\.gradle\caches\forge_gradle\assets\objects\bd\bdf48ef6b5d0d23bbb02e17d04865216179f510a: Le processus ne peut pas accÚder au fichier car ce fichier est utilisÚ par un autre processus.

        at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
Copying local object: 2b/2bf592d2cf6ac59516f8dae2c9b96c2d0ce1695d Asset: minecraft/lang/az_az.json
        at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
        at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
        at sun.nio.fs.WindowsFileCopy.copy(Unknown Source)
        at sun.nio.fs.WindowsFileSystemProvider.copy(Unknown Source)
        at java.nio.file.Files.copy(Unknown Source)
        at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1392)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:885)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:835)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:802)
        at net.minecraftforge.gradle.common.task.DownloadAssets.lambda$run$0(DownloadAssets.java:65)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Copying local object: fc/fc7f69b07820f0950828ed7aba7178b6886029b9 Asset: minecraft/lang/ba_ru.json
java.io.IOException: Failed to copy full contents from 'C:\Users\timot\AppData\Roaming\.minecraft\assets\objects\99\991b421dfd401f115241601b2b373140a8d78572' to 'C:\Users\timot\.gradle\caches\forge_gradle\assets\objects\99\991b421dfd401f115241601b2b373140a8d78572' Expected length: 114786 Actual: 0
        at org.apache.commons.io.FileUtils.checkEqualSizes(FileUtils.java:262)
        at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1395)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:885)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:835)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:802)
        at net.minecraftforge.gradle.common.task.DownloadAssets.lambda$run$0(DownloadAssets.java:65)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
java.nio.file.FileSystemException: C:\Users\timot\.gradle\caches\forge_gradle\assets\objects\92\92750c5f93c312ba9ab413d546f32190c56d6f1f: Le processus ne peut pas accÚder au fichier car ce fichier est utilisÚ par un autre processus.
Copying local object: 2d/2dd06d19647d762ac7175a04dd48263c41024efc Asset: minecraft/lang/bar.json

Copying local object: f2/f225eb69fa828b01743cc570df3c1b5c6ffdd439 Asset: minecraft/lang/be_by.json
        at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
        at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
        at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
        at sun.nio.fs.WindowsFileCopy.copy(Unknown Source)
        at sun.nio.fs.WindowsFileSystemProvider.copy(Unknown Source)
        at java.nio.file.Files.copy(Unknown Source)
        at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1392)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:885)
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:835)
Copying local object: 80/809c77fc85d653071b0881c4bca264bf953553be Asset: minecraft/lang/bg_bg.json
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:802)
        at net.minecraftforge.gradle.common.task.DownloadAssets.lambda$run$0(DownloadAssets.java:65)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

 

after that there is a giant list of copying things like that :

Copying local object: d7/d713df94c2dc09e6c9be5e35cae54a541a2a108c Asset: minecraft/lang/br_fr.json
Copying local object: 6b/6b34f49c797ca3166796e54d3be6c42ca3582a5d Asset: minecraft/lang/brb.json
Copying local object: b1/b1a18b5173e908ad57c17eae7c7136e9bbca4a83 Asset: minecraft/lang/bs_ba.json
Copying local object: ae/ae8567c11e184e90dcc9c81993f20955e32bef2c Asset: minecraft/lang/ca_es.json

and after all these copying things, there is the end :


> Task :downloadAssets FAILED
Downloading: https://launchermeta.mojang.com/v1/packages/3a5d110a6ab102c7083bae4296d2de4b8fcf92eb/1.16.json

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':downloadAssets'.
> Failed to get asset: minecraft/icons/icon_16x16.png
  Failed to get asset: minecraft/icons/icon_32x32.png
  Failed to get asset: minecraft/icons/minecraft.icns
  Failed to get asset: minecraft/sounds/random/orb.ogg
  Some assets failed to download or validate, try running the task again.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8m 2s
6 actionable tasks: 6 executed

C:\Users\timot\OneDrive\Bureau\mymod\modperso>   

I hope its enough for  you to find whats wrong.                                                                                                                       

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Please share a link to your crash report on https://paste.ee, as explained in the FAQ. Dumping it directly into the thread often triggers the anti-spam and makes it hard to read due to word wrapping
    • Hi all, I'm running a 1.20.1 Minecraft Forge server with a hosting website and something seems to have gone wrong. It started as an occasional crash that has now become extremely frequent and I don't know what exactly is causing it. I already tried disabling watchdog but the server crashes anyway. Oddly it only occasionally generates a crash report after a crash occurs. Based on viewing the server console's research usage it seems that the CPU spikes astronomically high (100% usage), especially when chunks are being loaded or when a new person joins the server. I downloaded Spark to create a profile (https://spark.lucko.me/bBlWe7ou29) but I lack experience with this mod and don't understand what I'm looking at/how this should help me diagnose the issue. I am using a lot of mods so I'm guessing there is some sort of issue there or a corrupted chunk (although MCRF found no chunk errors). We actually don't experience any lag until the crash occurs, so it's some sort of sudden spike in resource usage. Based on the crash report I've already tried removing Canary and Modernfix but there was no change. Thanks for any help you can provide. Specs:  4 cores x 4200MHz AMD Ryzen 9 5950X 4GB RAM Crash report:  
    • will test that once i get home, thanks
    • I am getting this exception (I am new and just trying to create an item) Caused by: java.io.FileNotFoundException: abrasmagics:models/item/ingot_test.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:69) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?]   However the directory is set up correctly and the file does exist   idk how to upload images so here is a treeview of the directories:   src ├───main │ ├───java │ │ └───net │ │ └───abrasmods │ │ └───abrasmagics │ │ ├───init │ │ ├───items │ │ └───utils │ │ ├───handlers │ │ ├───misc │ │ └───proxy │ └───resources │ └───assets │ └───abrasmagics │ ├───models │ │ ├───block │ │ └───item │ └───textures └───test ├───java └───resources   the file ingot_test.json is under models/item. The directory seems fine and the file does exist so anyone plz help.   i am using intellij and is coding for 1.12.2
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.