Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by pirottedamien · Feb 15, 2021 at 03:09 PM · androidbuildbuild-erroril2cppstuck

Android building process gets stuck on "Building native binary with IL2CPP"

When building on Android with IL2CPP enabled, the building process gets stuck on "Building native binary with IL2CPP". It stays stuck for more than two hours, I then have to kill Unity through the task manager. While it's stuck, the CPU usage of Unity is at 0%.

Restarting Unity and the machine doesn't solve it. I tried deleting the Library folder in the project files, and got it to work 2 times like that, but now even this doesn't fix the problem. Also, deleting the "Il2cppBuildCache" folder in the Library folder after killing Unity makes the file explorer stop responding, restarting it in the task manager just makes the process stop working, which kind of breaks everything in Windows. I then have to force shut down the machine and restart it.

This bug occurred on 2 different Windows 10 machines on every version since Unity 2020.2. If building works once by magic, it immediately stops working afterwards. I even tried on an old project I haven't changed anything on for some time, and the same bug occurred. Rolling back to 2020.1 solves the problem, but I really like the features of the newer versions.

Comment
Add comment · Show 9
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JoshPeterson · Feb 17, 2021 at 11:51 AM 1
Share

When the problem happens, can you use Process Explorer (https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer) to look at the processes as a tree? Although Unity it not doing anything at this moment, it is likely running a sub-process (probably the C++ compiler or linker from the Android NDK). I'd be curious to know what that process is and what its command line arguments are.

avatar image pirottedamien JoshPeterson · Feb 17, 2021 at 07:13 PM 0
Share

These are the processes in the task manager at the time where it's stuck:

https://ibb.co/cxJRFbf

And this is the Process Explorer:

https://ibb.co/V9QNfH4

This time, I have let it run for nearly 7 hours, and it's currently still stuck, so I don't think it's just a waiting thing.

avatar image JoshPeterson pirottedamien · Feb 17, 2021 at 08:27 PM 0
Share

Sorry, I cannot see the image attachments.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MaartenB · Mar 04, 2021 at 11:18 PM

@JoshPeterson I can confirm that I'm having the same issue here. Hereby an image of my process tree.

This is quite interesting though. Nothing is wrong when I'm using Unity Cloud Build. I don't know why, but it is grinding my gears.

alt text

alt text


unity-process-tree.png (117.6 kB)
taskmanager.png (57.5 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JoshPeterson · Mar 05, 2021 at 12:20 PM 0
Share

Can you submit a bug report as well? The more examples we have of this, the better chance we have to track down its cause.

avatar image
0

Answer by ClovyGames · Oct 11, 2021 at 12:10 PM

If you are using Bitdefender, it could go wrong. Try disabling Bitdefender and delete the Il2cppBuildCache file in the library file. ex) C:\UnityProjects\UnityProject\Library\Il2cppBuildCache.

Eventhough you are not using Bitdefender, you could try deleting the Il2cppBuildCache file. I hope this helps :D

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

308 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't Build with IL2CPP for Android after 2018.3.0 Update(Empty Project) 1 Answer

Assertion Fail in elf32-arm.c:7827 when building for Android with IL2CPP 1 Answer

Android app not building after switching to il2cpp 0 Answers

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 0 Answers

getting stuck at build with Il2cpp.exe, crashing everytime 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges