Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 RafaelAlcantara · Dec 26, 2016 at 09:30 PM · unity 5visual studioexceptionwindows store appwindows phone

Windows Universal 8.1 (Phone): Use of undefined keyword value 1 for event TaskScheduled

Greetings from Brazil! I'm facing the following problem: When I try to run my game on my Windows Phone 8.1 device from Visual Studio, I always get an ArgumentException on the first line of "GetSplashBackgroundColor" method (called on the constructor of the MainPage class).

alt text

I've been trying to fixthis for many days but still unsuccessful. Can anyone help?

Here's some details:

  • My PC: Windows 10 Home

  • Device: Microsoft Lumia 435 (Windows Phone 8.1 Update)

  • Unity 5.5.0f3

  • Visual Studio Community 2015 Update 3

  • The exception is thrown only on Windows Phone (on Windows Dektop it runs normally).

getsplashbackgroundcolor.png (78.0 kB)
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

Answer by Tautvydas-Zilys · Jan 03, 2017 at 05:12 AM

That is not a crash. You can continue past that exception, and if you deselect "Break when this exception type is thrown" checkbox, VS will not break when it's thrown.

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 RafaelAlcantara · Jan 04, 2017 at 11:13 AM 0
Share

@Tautvydas-Zilys thank you very much for your reply!

I tried these 2 ways:

  • Deselected all checkboxes from Exception Settings (no exception is thrown at all);

  • Selected all checkboxes from Exception Settings (System.ArgumentException is thrown and I force Visual Studio to continue - a weird thing I observed: the exception is thrown more often on the first line of the method, but once in a while it passes the first and throws on the second line);

Any of those ways the result is the same: the app is started, the splash screen is shown and the app is finished (not even that '$$anonymous$$ade with Unity' screen is shown).

Don't know if it helps, but here is the Dump file.

Again, thanks for your reply!

avatar image Tautvydas-Zilys RafaelAlcantara · Jan 04, 2017 at 11:43 AM 0
Share

This is indeed a crash: but it's not related to the place in the code that you mentioned in the original post. It's a crash in native code, and you need to set the debugger to native mode for the debugger to break on it.

The crash dump shows that the engine failed to initialize for some reason. Player log should have more information about why that happened.

avatar image
0

Answer by RafaelAlcantara · Jan 05, 2017 at 06:57 AM

@Tautvydas-Zilys after more than 10 days, IT WORKED! I got UnityPlayer.log file through Windows Phone Power Tools and the log says "PlayerInitEngineGraphics: GPU not supported; Your GPU (Qualcomm Adreno 305) or driver doesn't support linear rendering". So I went to Build Settings > Player Settings > Other Settings > Color Space and changed from Linear to Gamma, built a new Visual Studio project and it worked! Thank you very very much! :)

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Windows app Splash Screen 0 Answers

" error while installing visual studio (error code:1603) " while installing unity 5.x pro 6 Answers

The "Windows Holographic" option is missing under Virtual Reality SDK's 3 Answers

Code in void not executing 0 Answers

Opening Facebook Page from Windows Phone 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