Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
avatar image
0
Question by Funzo247 · Mar 04, 2021 at 08:17 AM · buildcrashlaunch

App Crashes on Launch

I've posted this in a few other places, but have not gotten a response.

So, if I build and run my app, it will run the app for about 5 seconds, title screen visible and all, before crashing. If I install the apk and try and run it, it will crash immediately without displaying the title screen.

I cannot for the life of me figure out what's wrong, this is an app I've built with no issues a hundred times, I am pretty certain I never changed any player settings since then, I did, however, reinstall the unity version as I had an issue with the android SDK because it didn't install properly. However, I'm certain that has been fixed. I've even tried reinstalling Unity multiple times...

I ran logcat in the Android Studio, and the only errors of note I could find are

2021-03-02 16:53:02.664 13320-13349/com.DefaultCompany.FishFeud E/vulkan: invalid vkGetInstanceProcAdd

and

2021-03-02 16:53:02.418 13320-13349/com.DefaultCompany.FishFeud E/Unity: Socket: connect failed, error: Operation now in progress(115)

2021-03-02 16:53:02.419 13320-13349/com.DefaultCompany.FishFeud E/Unity: Connect failed for direct socket. Ip=192.168.1.38, port=34999

2021-03-02 16:53:02.419 13320-13349/com.DefaultCompany.FishFeud E/Unity: Connecting to host time out, player connection will be disabled.

However, it does seem to initialize the app on my phone through Android studio.

Here is a pastebin of my logcat, filtered to only include unity related issues.

https://pastebin.com/buRGfjXa

I've been trying for days to figure it out, the only issue I could sift from the logcat was Vulkan, so I tried disabling Vulkan, but it still crashes...

Thanks in advance.

Edit: apologies for the formatting, I'm not sure why it automatically deleted my spacing between lines, but I can't seem to fix it even after adding 2 spaces lol

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Funzo247 · Mar 07, 2021 at 08:03 AM

Okay, this is kinda embarrassing , I found out the issue lol

I had a switch statement that either loaded the game or quit the game depending on which button was pressed. I realized the default was set to quit game, and I forgot to only count down the timer if the button had been pressed, so it was counting down the timer and then quitting right off the bat...

Not sure who this will help, but I hope it'll at least encourage people to look beyond a crash error if they see this...

Comment
Add comment · Show 2 · 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 UnityM0nk3y · Mar 07, 2021 at 12:42 PM 1
Share

LUL!! Monkey says he wouldn't have been able to guess that!!! :D

avatar image Funzo247 UnityM0nk3y · Mar 08, 2021 at 07:53 AM 0
Share

I'm so confused, I had this menu programmed long before and this never happened lol. It seemed like a crash because the menu would just freeze halfway through then exit lol

avatar image
2

Answer by UnityM0nk3y · Mar 04, 2021 at 12:35 PM

Heey!!

I have been developing for Android for over 3 years...

I ran into similar issues many times!! Here is some advice: (Please make a backup before trying).

Try these settings:

[Android Settings]

[Player >> Other Settings]

  • Color Space - Gamma

  • Auto Graphics API - ❌

  • Choose: "Vulkan + OpenGLES3".

  • Multithreaded Rendering - ✅

  • Static Batching - ✅

  • Dynamic Batching - ✅

  • Lightmap Streaming Enabled - ✅

  • Scripting Backend - IL2CPP

  • Target Architectures:

  • ARMv7 ✅

  • ARM64 ✅

This is the "Player Settings" I used for my last app, and it worked like a charm. :)

Best of luck!!

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 Funzo247 · Mar 04, 2021 at 02:42 PM 0
Share

Thanks for your response. I just tried it with all these settings most were already set to these. The only one I can't find is dynamic batching.

But, it still seems to crash :(

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

132 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

Related Questions

Distribute terrain in zones 3 Answers

build crashes 1 Answer

Unity3D 4.6.2 Build Crash Out Of Memory 1 Answer

Endless Highway script CRASHES Unity!? 1 Answer

Steamworks.NET steam_api.dll not found 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