Platform Unity 2019.4.8.f1
Apk tested on Android devices
Api lvl 21+
Test failure on some devices that have 2gb memory.
Our team has implemented a unity project and we use agora for video call. Our streaming configs are very low, 15fps, 65bit. But when we test the app on phones that have 2gb memory, some times later(about 5-10min) app crashes. We try to find out the problem and according to diagnostic tools agora uses lots of memory, We cannot find any limitation from agora sdk and cannot reduce memory usage, is there any idea about this. Thanks.
First, did you make sure if this is an Application level memory management issue? e.g., you created instance of renderers but did not release in time?
If it is SDK level issue, you probably won't find a solution from the public. I suggest you to create a ticket to ask the question directly to the Agora support team. Please provide your quantified analysis and the crash log when you submit that.
Related
I've been playing around with Microsoft Mesh (a remote AR/VR/MR collaboration solution for Teams) for a few days. The thing I want to know is if it’s possible to log some performance/system indicators when using the application. For example, frames per second, network I/O, CPU/Memory usage.
Since it runs on only HoloLens 2 (for now), whose OS is a modified version of Windows and CPU is ARM-based, it seems difficult to grab detailed information as in Linux where almost everything is open-sourced (I'm a newbie in Windows-related development).
I'm wondering if there are some APIs for these logs (whether system level or application level). Thank you all!
You can use the Performance Tracking in the device portal, refer to Using the Windows Device Portal - Mixed Reality | Microsoft Docs, you can refer to Performance tracing and analysis with WPA - Mixed Reality | Microsoft Docs for further analysis of this data, and you can also get this data via Device portal API reference - Mixed Reality | Microsoft Docs.
I am using react-native 0.52.0 and react- 16.2.0 . My react-native application runs slowly. I want to optimize its performance. Can anyone tell me what are the ways in which we can make react native app faster and how to measure its performance and memory usage? Is there any tool to measure its overall performance
1) (reactotron) https://github.com/infinitered/reactotron
It streams to you information about your app’s state, API calls, benchmarks, exceptions, and other stuff.
2) https://facebook.github.io/react-native/docs/performance.html
This page contains all you need to check for performance in the app.
You can use Android Studio Profiler to monitor memory usage on Android. Take into account that you will need Android 10 for the profileable tag in Android Manifest to work.
I made a custom apple TV app in Xcode and installed it on an apple TV. It works fine for a few days, then it crashes and becomes unavailable.
Is this because something is wrong with the code or expected behavior for apps manually installed on apple TV?
Any help is appreciated!
Have you tried using Apple's Leaks instrument to check for some sort of memory leak? If your app is crashing after a few days, this would suggest a possible memory leak so would be worth looking into.
https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/FindingLeaks.html#//apple_ref/doc/uid/20001883-SW2
The Leaks instrument provides leak-detection capabilities identical to those in the leaks command-line tool. The Leaks instrument records all allocation events that occur in your application and then periodically searches the application’s writable memory, registers, and stack for references to any active memory blocks. If it does not find a reference to a block in one of these places, it deems the block a “leak” and displays the relevant information in the Detail pane.
The culprit of the crash is the lack of appropriate licensing.
Once I registered as an Apple Developer and paid the subscription fee, the app stopped crashing after a few days.
We have an existing cross-platform Mobile Application, that also has an accompanying web application, that uses AWS as a back end (RDS for Database, Four server instances, and a Load Balancer to distribute traffic). APK and IPA files are packaged and sent to the stores, while components are retrieved from our server per request, which enables us to reduce the number of store builds, and make the process easier for getting changes out to clients.
We are at the stage of Development that we need to move to another platform to better facilitate our fast growing client base.
Due to the conditions upon our clients, these things must be considered.
must be cross platform (Android / iOS).
must be offline based (users need to be able to access without an internet connection)
must be able to sync with an existing database when there is a connection
requires Authentication
Cloud based (? may not be the right term, but meaning the ability for us to store components on a server and have a device check for updates and download a local copy - enabling us to work and distribute fixes faster)
Ideally compatible with AWS
We are currently looking at Xamarin to facilitate us for this move, however there is a lot of documentation and plugins out there to do all sorts of different things.
As developers, we all have some .net / c# experience, however none particularly with Xamarin.
We have a particular timeline that we need to adhere to (and need to ramp up in the next couple of weeks), and right now are essentially stuck in Limbo in a research phase, as we can't afford to get some things right. We are unable to move forward until we know Xamarin (or some other framework) is able to do everything that we need it to do.
It's hard to escape from the 'code it all ourselves' mentality - especially as we don't know where to start looking in terms of third party packages for Xamarin, and their documentation itself.
A lot of documentation mentions various systems of Azure - we would not be against moving to Azure over AWS if it _had to be done*, but because of the existing infrastructure with AWS - staying with AWS is obviously the preferred option (users need to access the current system whilst we build the new system)
This stack overflow post is to ask for recommendations, comments, or other observations on anything and everything involved with the process in regards to choosing frameworks, design patterns, methodologies, third party packages, etc.
Obviously we would like to use best practises for everything moving forward for optimum scalability and cleaner, more robust code. It's just hard to know where to start!
Any input will be highly appreciated.
Cheers!
edit: I am aware that this is 'asking for recommendations' which is 'specifically off-topic'. I have read the posting guidelines about open ended discussion, and am quite confident that this case is different. There is an underlying problem here, in that we are seeking advice on combinations of frameworks and plugins that are fully compatible with all of the items in the list (above)
Let's try to breakdown each of your requirement and constraint mentioned in the question.
1. You need a offline first architecture (With Sync mechanism)
Xamarin + Azure would make a good comdo for you, as it would support offline storage out of box (With a simple PullAsync call).
Albeit there are AWS SDK available for Xamarin. Here it goes http://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/setup.html
So the call is yours. There are few other ways to achieve caching offline storage in Xamarin, you can build upon those strategy in your logic. Alternatively there is a very interesting C# library Akavache for caching and offline storage.
2. OAuth 2.0 Authentication
Xamarin has a very good library named Xamarin.Auth. Though I would not say it is very easily extendible at this but there has been some serious work going on from Xamarin on this library.
But I would say it is very easy to use. The apps I have developed so far that includes - Google OAuth, Facebook integration, Microsoft account integration. It worked fine for all of them.
3. Cloud based distribution
There are nice tools available with Microsoft. Which makes the distribution easy. Have a look at https://mobile.azure.com . Also hockeyApp is good for distribution I found.
Where to start:
A very good starting point for you would be https://channel9.msdn.com . Just go there search with keyword "Xamarin" and view some videos. May be all these cross platform dynamics will be much easier for you.
Overall I found Xamarin a cool product to work with. Because anything that can be done in native Objective C/Swift or Java can very well be done in Xamarin using C#.
Maybe I have't looked hard enough, but I spent yesterday googling for a bit and found no relevant projects on hacking the DJI Phantom Drone in order to create new coordinating apps. This is besides the app for coordination DJI currently uses for their drone. I'm trying to see if there's a way to communicate with the Drone with a specific protocol in order to accept a set of procedures.
Any help would be awesome,
Thanks.
Great News for you and all us Droneys! DJI has launched their SDK since you asked this question. They released it last November and you can now apply for a license and write your own apps for the Phantom2 Vision+ using their SDK.
Check it out at https://developer.dji.com/
I am already building a project using the SDK - you can follow my progress on my blog / product site. I will also try to update it with good DJI related development links and tips.
This post is old but I think it is good to leave a foot print for others :)
There is this new company called NVdrones, which created a peace of hardware that you can attach to any drone (you need physical access to the flight controller), and once you do that you can use their SDK (Arduino, Java, Android and Javascript) to write your app without the need of hacking, soldering or anything else. It is just plug and play.
Another benefit is that you are not locked with a specific drone (DJI SDK or 3DRobotics SDK), you can use the board on anything you want. Which gives lots of flexibility.
The developer site is http://developers.NVdrones.com
Hope this helps.
This is a great topic!
You could check how to hack your copter here: https://github.com/flyver/Flyver-SDK/wiki/-2.2--How-To:-Flyver-Hack-a-Copter
By opening the drone, taking out the original controller, soldering a few wires and sticking an Android phone to it, you will have the ability to program your Phantom in a modern manner with an open source SDK and application based development. This means that you could add computer vision to it, automation or additional hardware. You could also use smartphones, web and other interactive devices for remote controlling the copter instead of using the standard remote controls.
The Phantom, however, is offcenter balanced due to the fact that most people use gimbal with it. Without the gimbal is a lot less stable from my experiments so you will have to put some extra work in center balancing it.