360 Vid working on laptop but not mobile - google-cardboard

Hoping someone might have some wisdom: I've been doing some tests running a 360 video in a-frame (hosting on github pages currently - https://ganttmd87.github.io/ )
I've had success loading on my computers browser, but get an empty black page (w/cardboard button in lower left) when loaded on mobile. I've tried using a 360 vid both with and w/out metadata, but no luck thus far.
Would be very grateful if anyone could offer some insight or advice - thanks a ton!
mg

I had a black screen on my desktop, too, when I clicked your link.
From my experiments with even small 360 degree video files I am pretty sure that it silently fails on first attempts to load because it runs into timeouts.
After some time, the file is in the cache and gets loaded and this is more likely to happen on a desktop than on mobile.
The standard timeout for a-asset is 3 seconds, according to the docs.
You might want to increase it like so:
<a-assets timeout="10000">
(via https://aframe.io/docs/0.5.0/core/asset-management-system.html#setting-a-timeout)

Related

Chromium consuming above 50% CPU and crashes while playing a video

I have built the latest stable version of Chromium (at the time of writing 100.0.4896.88) in debug as well as in release mode.
I changed the name and logo of the browser by making changes in some files, thanks to this and this post.
Currently, I am facing issues with CPU usage. Every time I open chromium or a new tab in Chromium, CPU usage jumps above 25% and then comes back to 1 or 2%. After opening around 10 tabs, it reaches around 70-80%. I tested chromium before making any changes in files and the same thing was happening with CPU consumption.
The second issue is about playing videos. When I try to play any video like YouTube in debug mode, the browser immediately crashes. In release mode, it plays it for a few seconds before crashing.
After building the chromium, I use the following command to create a mini_installer.exe
autoninja -C out/Release mini_installer.exe
So maybe I am doing something wrong which generating the installer because for the rest of it I am following the actual documentation? Any kind of suggestion would be appreciated.

Does anyone have any recommendations for speeding up UFT 14.53 on a Windows 10 platform?

I've upgraded a laptop (Windows 10 Enterprise, Version 1803) and 2 VMs (Windows 10 Enterprise, version 1809) with MicroFocus' UFT version 14.53. The previous version of UFT was 14.02.
The performance of script execution is annoyingly slow. Here are some details about the environment:
Two AUT were developed using J2EE and Angular JS, respectively
A script that took 18 minutes to run on the laptop is now taking 20 minutes
The same script is now taking 30 minutes on the VMs
The scripts are being run in fast mode from the GUI
The windows 10 machines have been set to Best Performance
Every time the script starts, the Windows is running low on resources
popup appears
The browser on which the app is being run is IE11
RAM on the laptop is 16GB and 8GB on the VMs
Anybody else experience these pains who can offer any solutions or suggestions? Unfortunately, our support vendor has been no help.
Thank you!
1) Depending on what kind of object recognition you perform, there might be noticeable differences depending on how many windows are open on the windows desktop.
It might be that in you Windows 10 sessions, there are more windows open, maybe invisible, that UFT needs to take account when locating top-level test objects.
For example, opening four unneeded (and non-interfering) browser instances and four explorer instances greatly impacts the runtime performance of my scripts. Thus, I make sure that I always start with the same baseline state before running a test.
To verify, you could close everything you don't need, and see if runtime improves.
2) Do you use RegisterUserFunc to call your functions as methods? That API has a big performance hole: depending on how much library code you have (no matter where, and no matter what kind of code), such method calls can take more time than you expect.
I've seen scenarios where we had enough code that one call took almost a second (850 milliseconds) on a powerful machine.
Fix was to avoid calling the function as a method, which sucks because you have to rearrange all such calls, but as of today, we are still waiting for a fix, after it took us months to proof to MicroFocus that this symptom is indeed real, and really fatal because as you add library code, performance degrades further and further, in very tiny steps. (No Windows 10 dependency here, though.)
3) Disable smart identification. It might playback fine, but it might need quite some time to find out which "smart" identification variant works. If your scripts fail without smart id, you should fix them anyways because your scripts never should rely on smart identification.
4) Disable the new XPath feature where UFT builds an XPath automatically, and re-uses this XPath silently to speed up detection. It completely messes up object identification in certain cases, with the script detecting the wrong control, or taking a lot of time to detect controls.
5) Try hiding the UFT instance. This has been a performance booster for years, and I think it still is, see QTP datatable operations *extremely* slow (much better under MMDRV batch executor)? for info on this, and more.
6) Certain operations do take a lot of time, unexpectedly. For example, Why does setting a USER environment variable take 12 seconds? completely surprised me.
Here are things to consider that have been tweaked to speed up my scripts in the past, hadn't had any problems with UFT 12.x on VM machines or VDI's and using Windows 11. I'm just starting with UFT 14.53 on Windows 10. Check Windows 10 for background applications or services that are running prior to even opening UFT or executing a script. In UFT check the Test Settings and UFT Test Options for the following:
Object synchronization timeout - Sets the maximum time (in seconds) that UFT waits for an object to load before running a step in the test.
Note: When working with Web objects, UFT waits up to the amount of time set for the Browser navigation timeout option, plus the time set for the object synchronization timeout. For details on the Browser navigation timeout option, see the HP Unified Functional Testing Add-ins Guide.
Browser navigation timeout - Sets the maximum time (in seconds) that UFT waits for a Web page to load before running a step in the test.
When pointing at a window, activate it after __ tenths of a second - Specifies the time (in tenths of a second) that UFT waits before it sets the focus on an application window when using the pointing hand to point to an object in the application (for example, when using the Object Spy, checkpoints, Step Generator, Recovery Scenario Wizard, and so forth).
Default = 5
Add ____ seconds to page load time - Page load time is the time it takes to download and display the entire content of a web page in the browser window (measured in seconds).
Page load time is a web performance metric that directly impacts user engagement and a business’s bottom line. It indicates how long it takes for a page to fully load in the browser after a user clicks a link or makes a request.
There are many different factors that affect page load time. The speed at which a page loads depends on the hosting server, amount of bandwidth in transit, and web page design – as well as the number, type, and weight of elements on the page. Other factors include user location, device, and browser type.
Run mode - Normal -> or Fast ->
Hope some of this helps, good luck...Aimee
You can try Run a Repair UFT installation on Windows 10, see if something was wrong on installation of the uft 14.53.
This worry me a lot, since we gonna change in a couple of days for laptop with Win10.
Try see here if something can help you.
Regards

Web uploader issue using Uploadify

I am working on a website that allows my clients to upload large amount of high resolution image files to my system. I have tried couple of uploaders but they don't seem to be as reliable as I was expecting - especially on Windows.
I have tried the following:
Uploadify 2 and 3
YUI Uploader (Yahoo Uploader)
The above uploaders all relies on Adobe Flash.
One of the most noticeable problem which is common to the mentioned uploaders is that the progress does not seem to work on Windows. It either stuck on 100% or 0% until the upload is actually finished. The files seems to be uploading fine but progress bar is totally out. This isn't a problem on a MAC though. I believe the problem is not within my code because even the uploaders' demo sites suffers the same problem.
On top of that I have heard clients complain about the uploaders being "self aborted" after say 33 files or so. They just don't seem to be that reliable.
My questions are:
Is there any way around this? To improve the visual at least (make the progress bar goes under windows)
Are there any other uploaders/methods that allows my clients to deliver large amount of files to my server reliably?
Running out of ideas and my clients are getting frustrated.

Are webkit transitions slower after iOS 5 upgrade?

I'm experiencing slower webkit animations in UIWebView embedded apps after upgrading my iPad 2 to iOS 5. Two of my apps are noticeably jerky during multiple animations and transforms.
The simplest animation I have that demonstrates this is doing three things: scrolling a 2048x768 image to the left, moving a smaller image to the right and scaling it down, and playing an audio clip via AVAudioPlayer.
It's all jerky after the upgrade, even when I'm not running anything else. Memory isn't leaking or increasing in size. I did a CPU profile on the app before the upgrade, no problems there.
Is anyone else experiencing this?
Seems to be an intermittent problem - the app looks fine this morning. I suspect there's network operations occurring on the app. I have another I'm working on that has lots of transitions but doesn't require network access, so I might see if I can duplicate the problem over there.
For now, I'll just live with it and watch for it to reoccur.

How to do zooming and paging in UIScrollView with big image size(1.5)MB and 100 images?

I am making an application using UIScrollView.In this we have to do zooming and paging of images.I have about 100 images and size of each image is 1.5 MB.Currently i am using scrollview for this ,but when i load more than 10 images the app crashes giving memory warnings.
Please somebody help me as i am stuck with this crashing of app.I have tried many other things also but it does not work.My app is just like photo library of iphone.Plese somebody suggest me what i have to do.
Thanks in advance.
This sounds like you are trying to load too much data into RAM. Are you aware of how little RAM your app has available on the iPhone, and how big an image gets once it is rendered? You should probably try and load images on demand, not pre-load them. Also release them once you're done with them, and release as many cached objects as you can when your app receives a memory warning.
But until you post more information, this is all just poking around in the dark.
Just try to debug your code and find where the app is crashing. So you can get the reason of crash.
xCode debuging is very strong and helpful.
put your crashing code here. so someone may tell you what you are doing wrong.

Resources