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
1
Question by unity_ngp · Jun 30, 2016 at 02:29 PM · unityeditormirrornative pluginoculusriftdesktop

Desktop Duplication results into editor crash

Hi, I am currently working on a project where I need my current desktop to be rendered in my Unity game window and later visualize the same in Oculus DK2. I have succeeded in duplicating the desktops using Desktop Duplication API and in Unity I am rendering the same duplicated desktop onto a 3D plane by using Low-level Native Plugin Interface methods. At this point I am able to see the Unity editor window itself on the plane as I am currently inside unity editor. But, when I try switch my windows or when I try open any full-screen applications or explorer window in maximized mode or even when I press the windows key(which opens the Start-metro-style ), I am experiencing Unity crash every time. The same behavior is observed in Virtual Reality Mode.

Note : I am able to open other windows or applications in windowed mode and same can be visualized in VR mode as well. But, when I switch to any full screen application or start menu it crashes.

[Environment] Unity 5.3.4f1, Oculus Runtime 0.8, Windows 8.1

And apologies if this issue isn't supposed to be reported on here as my end target is oculus. But, I felt the issue is more of Unity related as it crashes even in Non-VR mode.

Any help would be highly appreciated.

Thanks in advance!

Comment
Add comment · Show 1
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 unity_ngp · Jul 01, 2016 at 08:54 AM 0
Share

I found the cause for this issue after debugging in my native side code, i.e where the actual Desktop Duplication API's are written. Whenever I used to $$anonymous$$imize my Unity Editor or the build.exe window, the "IDXGIOutputDuplication::AcquireNextFrame " was returning "NULL". I still couldn't find the root cause for this behavior. Even when the "Run in Background" is enabled inside Unity, it still doesn't work! Is there any limitation with using Low-Level Native plugin interfaces?

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Native Rendering Plugin with Oculus Rift 0 Answers

Vuforia Image Target for mobile object 0 Answers

When I am trying to read data from a CSV file using StreamReader(C#) with unity, I am facing Invalid Id 0x00000000. error 0 Answers

Mixamo Animations not working in VR ? 0 Answers

Why does unity editor hang when play button is pressed. 5 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