qt webassembly empty web page - qt

Till now i have installed the qt webassembly, emscripten and build an qml example app with webassembly sucessfully. What my problem is when i run the webassembly app in browser, the page is empty.
The warning message i see when inspecting the web page in chromium browser is:
DevTools failed to load SourceMap: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.preload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
similary the warning msg in firefox borwser is:
unreachable code after return statement
I am using qt 5.14.1 with emscripten version 1.38.27 as suggested by qt documentation itself.
I'm testing the chartthems example from the qt creator ide itself just to test the webassembly working. But i'm getting this problem. i am using ubuntu 18 to develop qt web app.

Related

Debug libcef.dll while running a host app that uses cefsharp

We did a custom DEBUG build for cef version 84.1.1 to add codec support, and I am able to add a debug point to the libcef code (e.g. to file \cef\libcef_dll\libcef_dll2.cc) and attach the visual studio debugger to the sample cefclient.exe.
We have a .Net application, which uses CefSharp nuget 84.1.1, we just replace the cef dlls with the dlls that we built. When I run my host app, and I add a breakpoint, I keep getting the message that no matching assemblies were loaded. I tried attaching to all browsersubprocess instances, and I tried attaching to my app host process with no result.

Android Debugging Failing With "Couldn't connect to logcat, GetProcessId returned: 0" FFImageLoading.Platform.dll.so Not Found

I am having issue debugging Android project. I can deploy to device and run it, all works fine but if I try to debug, the app gets deployed to the device and very briefly opened, splash screen shows up but the app then closes.
I am using Xamarin Forms on Visual Studio 2015.
Device is running Android Oreo (8.0.0). Another device running Android 6.0.1 is debugging fine.
The output shows following:
InspectorDebugSession(11): StateChange: Start -> EntryPointBreakpointRegistered
InspectorDebugSession(11): Constructed
Android application is debugging.
InspectorDebugSession(11): HandleTargetEvent: TargetExited
InspectorDebugSession(11): Disposed
Couldn't connect to logcat, GetProcessId returned: 0
I checked Logcat and it seem to be having issues finding FFImageLoading library:
Time Device Name Type PID Tag Message
09-18 14:35:52.361 Huawei Nexus 6P Debug 1560 Mono AOT:
image '/usr/local/lib/mono/aot-cache/arm/FFImageLoading.Platform.dll.so'
not found: dlopen failed: library "/data/app/myapp.android.dev-
WEb1bz8edgF7vwx6uCoZ-A==/lib/arm/libaot-FFImageLoading.Platform.dll.so" not found
I have added Nuget package for FFImageLoading to my projects and Droid project references show it as in image below:
This worked for me :-
Deselecting the 'Use Shared Runtime' in Project Properties > Android
Options > Packaging properties
I also had this issue with Android 8.1 and Visual Studio 2017 15.7.4.
There are three steps to got it working again.
Under Android Options, go to Advanced and add your device architecture, in my case it was x86_64.
Go to Tools -> Options -> Xamarin > Android Settings and enable: Provide debug symbols for shared runtime and base class libraries.
And the final step is to delete following Apps from your device:
All Xamarin.Android API Support libraries
Mono Shared Runtime
Your App
After these steps you don't need to disable "Use Shared Runtime" and can Deploy and Debug much faster.
This is a known issue with Oreo and Xamarin Android on Visual Studio for Windows. It works on Visual Studio for Mac apparently. It will be fixed in an upcoming release. In the mean time there is a work around down near the bottom of the bug link above (comment 20).
deselecting 'Use Shared Runtime' in Project Properties > Android Options
delete bin & obj files from solution
clean solution
rebuild the solution it works
One another reason for that is if you dont enable usb debugging on your device, VS 2017 still recognizes your phone and installs the app on your phone. Just after debugging starts, it will throw this error and not continue debugging. Make sure to enable Developer Mode -> Usb debugging like described here
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/set-up-device-for-development

Flash Builder 4.7 Not Air: Native methods are not allowed in loaded code

Building an app using SDK 4.5.1. (Never upgraded to 4.6 because of a bug in the way it manages runtime style changes.)
Just installed Flash Builder 4.7. Created a new workspace. Imported the existing projects, got this runtime error:
VerifyError: Error #1079: Native methods are not allowed in loaded code.
This is a Web app, not an Air app.
After I dismiss the error message and wait several seconds, I get another dialog. This one asks:
"Where is the debugger or host application running?"
I deleted the project in Flash Builder, then deleted all the project files, and created a new project in Flash Builder with the existing code. Same result. Reinstalled Flash debug player - no change.
Figured it out (with the help of this post on a Flexmojos list).
Because we're using the 4.5.1 SDK, but also using JSON, we need to import an updated playerglobal.swc. I downloaded the latest from Adobe and used it, and failed to notice that it is not named correctly.
As downloaded, the file name is playerglobabal11_7.swc.
I renamed it to playerglobal.swc (i.e. took off the "11_7") and that fixed it. Our app now compiles and runs without issue.

C++ program unable to run with interruption that "The application was unable to start correctly (0xc000000d)"

I am using visual studio 2010 in windows 7, i am running Normal distribution code which uses pcl header files. The entire code is in cpp. While debugging i am get an application error
" The application was unable to start correctly (0xc000000d). click ok to close the application " in an new window. while i click ok, the window gets closed and programs stops running. In the output tabs, shows unable to load or cannot find pdb files.
Following steps i created the Visual studio project
downloaded the pcl trunk version which only consist the header files for Normal distribution
using cmake, i created the install visual studio project for installing pcl
After creating INSTALL project, installed the pcl headers using visual studio
again using cmake, i created the Normal distribution project which make use of installed pcl headers
while running the Normal distribution project, i am getting the above mentioned application error. I am unable to find what is the problem

How can I make Flash Builder 4 launch browser on run?

I recently installed Adobe Flash Builder 4 in standalone mode on a new installation of Windows 7 x64.
I can load and build an existing Flex 4.1 project I have been working on, but when I go to run the project in the browser (Firefox 3.6.15), I get:
'Launching BensApp' has encountered a problem.
An internal error occurred during: 'Launching BensApp'
Clicking the Details >> button reveals:
java.lang.NullPointerException
My project is creating the SWF and container HTML page as expected, but fails to load the browser.
Ok. Finally nutted this out.
The problem was that Flash Builder was trying to run the ASP.NET web server at:
c:\Program Files (x86)\Microsoft
Shared\9.0\WebDevServer.exe
This is the default location if you have VS2008 installed.
I only have VS2010 installed, which places these files at ...\Shared\10.0. The solution was to copy WebDevServer20.exe to the above location.
The other solution that would work is to change Flex Server \ Application Server type to "None\Other".
Check the launch configurations located in Project>Properties>Run/Debug Settings.
To open a browser when you run the project you will need to modify the 'URL or path to launch' parameter.
See the Adobe Flex help for more info: Managing Launch Configurations.
Select "Run As" in Green Debug Button. It Fixed My Problem.

Resources