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 maruhaxx · Mar 30, 2021 at 10:20 AM · androidwebcamtexture

Crashes when calling "WebCamTexture.devices".

Crashes when calling "WebCamTexture.devices". Only the actual device with the built apk installed crashes with the following error. Please let me know if there is a solution.

Unity 2020.2.7f1 Unity 2020.3.0f1

03-22 15:28:22.501 12912 12959 I CameraManagerGlobal: Connecting to camera service 03-22 15:28:22.510 12912 12959 I Unity : Camera2: focal length5.11 03-22 15:28:22.510 12912 12959 I Unity : Camera2: sensor size 7.344 x 5.9904 03-22 15:28:22.510 12912 12959 I Unity : Camera2: focal length equivalent 25 03-22 15:28:22.517 12912 12959 I Unity : Camera2: focal length2.47 03-22 15:28:22.517 12912 12959 I Unity : Camera2: sensor size 3.6825602 x 2.82464 03-22 15:28:22.517 12912 12959 I Unity : Camera2: focal length equivalent 24 03-22 15:28:22.521 12912 12959 I Unity : Camera2: focal length5.11 03-22 15:28:22.521 12912 12959 I Unity : Camera2: sensor size 7.344 x 5.9904 03-22 15:28:22.521 12912 12959 I Unity : Camera2: focal length equivalent 25 03-22 15:28:22.527 12912 12959 I Unity : Camera2: focal length6.95 03-22 15:28:22.527 12912 12959 I Unity : Camera2: sensor size 4.2368 x 3.1936002 03-22 15:28:22.527 12912 12959 I Unity : Camera2: focal length equivalent 59 03-22 15:28:22.530 12912 12959 I Unity : Camera2: focal length2.67 03-22 15:28:22.530 12912 12959 I Unity : Camera2: sensor size 5.6671996 x 4.4351997 03-22 15:28:22.530 12912 12959 I Unity : Camera2: focal length equivalent 16 03-22 15:28:22.533 12912 12959 I Unity : Camera2: focal length2.15 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] JNI DETECTED ERROR IN APPLICATION: JNI CallBooleanMethodV called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method 'float android.util.SizeF.getWidth()' on a null object reference 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at int com.unity3d.player.b.d(android.content.Context, int) ((null):-1) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at int com.unity3d.player.Camera2Wrapper.getCamera2FocalLengthEquivalent(int) ((null):-1) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at void android.os.Looper.loop() (Looper.java:368) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] at void com.unity3d.player.UnityPlayer$e.run() ((null):-1) 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] in call to CallBooleanMethodV 03-22 15:28:22.533 12912 12959 F system.templat: java_vm_ext.cc:577] from boolean com.unity3d.player.UnityPlayer.nativeRender() 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] Runtime aborting... 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] Dumping all threads without mutator lock held 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] All threads: 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] DALVIK THREADS (36): 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] "UnityMain" prio=5 tid=28 Runnable 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] | group="" sCount=0 dsCount=0 flags=0 obj=0x13e44808 self=0x77a641e0f0 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] | sysTid=12959 nice=0 cgrp=default sched=0/0 handle=0x75c13b9cc0 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] | state=R schedstat=( 2854168693 775561030 12711 ) utm=205 stm=80 core=4 HZ=100 03-22 15:28:22.648 12912 12959 F system.templat: runtime.cc:655] | stack=0x75c12b6000-0x75c12b8000 stackSize=1043KB

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by maruhaxx · Mar 31, 2021 at 07:54 AM

After some research, I found the cause. It seems to be a problem with Xperia 1 II.

WebCamTexture.devices is retrieving "CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE". CameraID = 5 on Xperia 1 II had a return value of null.

It seems to require a fix on the Unity side to resolve this. Thank you in advance for your help.

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

258 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

Related Questions

WebCamTexture resolution and cropping problem on Android 0 Answers

WebCamTexture.devices.Length returning 0 in Unity 2020.3.8f1 0 Answers

WebCamTexture crashes on android 0 Answers

WebcamTexture stretching too much 1 Answer

WebCamTexture rotated 90 degrees 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