App freezes at splash screen on mobile device, not on FlashBuilder's emulator - apache-flex

I want to include Mobile AutoCompleteCombobox made by Flextras (http://www.Flextras.com), into my project to give to user a rapid way to fill some textInput. So I integrated it sucessfully in my code, I can tell that because the result is nice when I launch FlexBuilder's mobile device simulator : It launch my app code to test it including the component (I used the sample code provided into sources).
After that test, I wanted an apk file to test this app under a real mobile device. So I builded successfully the swf and finally the apk files ! But my app fails when I launch it under mobile device : It freezed at my splash picture for unlimited time ! Have you ever seen this problem and have you even resolved this one ? Because I searched in the big exchange forum which is named Stackoverflow.com, but I can't find any similar issue !
Please could you give me a way to be efficient ?
This following lines are here to explain two parts of my method : firstly to compile swf Flex file, secondly to build the apk Android package.
1) Launched with cmd.exe console, to compile :
ant -buildfile Build_myAppProject.xml actionCompiler
2) Launched with cmd.exe console, to build the app file :
adt -package -target apk -storetype pkcs12 -keystore [MyCertificateFile.p12] -storepass hyebiell1234 [MyOutputFile.apk] [MyAppInfoDescriptor.xml] [MyAppCompiledFile.swf] -extdir [MyANEAndLibrariesFolder] -C src\assets -C src\assets\img -e src[MySqliteFileToCopyIntoPackage] [MySqliteFileToCopyIntoPackage] -e src\icone50x50.png icone50x50.png -e src\icone72x72.png icone72x72.png -e src\icone128x128.png icone128x128.png -e src\icone144x144.png icone144x144.png -e src\icone512x512.png icone512x512.png
ant_build_myAppProject.xml :
<?xml version="1.0" encoding="utf-8"?>
<project name="Build_avec_4.11_AIR_4.0" basedir=".">
<property name="FLEX_HOME" value="c:/Program Files/Adobe/Adobe Flash Builder 4.5/sdks/4.11_AIR_4.0"/>
<property name="APP_ROOT" value="src"/>
<property name="ANE_DIR" value="extensions"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/Ant/lib/flexTasks.jar"/>
<target name="actionCompiler">
<mxmlc
file="${APP_ROOT}/myAppProject.mxml"
output="${APP_ROOT}/myAppProject.swf"
locale="fr_FR"
static-rsls="true"
accessible="true"
configname="airmobile"
debug="false"
failonerror="true"
optimize="true"
maxmemory="512m"
swf-version="16"
>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<source-path path-element="${APP_ROOT}"/>
<compiler.external-library-path dir="${ANE_DIR}" includes="*.swc" append="true"/>
<library-path dir="${ANE_DIR}" includes="*.swc,*ane" append="true"/>
<library-path dir="${FLEX_HOME}/frameworks/locale/fr_FR" includes="*.swc" append="true"/>
<define name="CONFIG::device" value="false"/>
<define name="CONFIG::iphone" value="false"/>
<define name="CONFIG::android" value="true"/>
</mxmlc>
</target>
</project>
Lately I launched the app with LogCat and I get this :
12-11 16:19:51.087: D/action(2224): android.intent.action.MAIN
12-11 16:19:51.158: D/cym(2224): cancelUnReadCount(ComponentInfo{air.PlanifVisites/air.PlanifVisites.AppEntry})
12-11 16:19:51.168: D/cym(2224): onInvokeApp(0)
12-11 16:19:51.188: I/ActivityManager(376): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=air.PlanifVisites/.AppEntry bnds=[129,38][240,197] u=0} from pid 2224
12-11 16:19:51.288: D/dalvikvm(376): GC_FOR_ALLOC freed 1533K, 37% free 9768K/15495K, paused 72ms, total 80ms
12-11 16:19:51.338: I/ActivityManager(376): Start proc air.PlanifVisites for activity air.PlanifVisites/.AppEntry: pid=4942 uid=10087 gids={3003, 1015, 1028}
12-11 16:19:51.398: I/Adreno200-EGLSUB(118): <CreateImage:893>: Android Image
12-11 16:19:51.398: I/Adreno200-EGLSUB(118): <GetImageAttributes:1158>: RGBX_8888
12-11 16:19:51.438: E/Trace(4942): error opening trace file: No such file or directory (2)
12-11 16:19:51.518: I/StartupTime1(4942): :1449847191530
12-11 16:19:51.538: D/dalvikvm(4942): Debugger has detached; object registry had 1 entries
12-11 16:19:51.698: D/dalvikvm(4942): Trying to load lib /data/data/com.adobe.air/lib/libstlport_shared.so 0x40e213e0
12-11 16:19:51.728: D/dalvikvm(4942): Added shared lib /data/data/com.adobe.air/lib/libstlport_shared.so 0x40e213e0
12-11 16:19:51.728: D/dalvikvm(4942): No JNI_OnLoad found in /data/data/com.adobe.air/lib/libstlport_shared.so 0x40e213e0, skipping init
12-11 16:19:51.728: D/dalvikvm(4942): Trying to load lib /data/data/com.adobe.air/lib/libCore.so 0x40e213e0
12-11 16:19:51.968: D/dalvikvm(4942): Added shared lib /data/data/com.adobe.air/lib/libCore.so 0x40e213e0
12-11 16:19:52.078: V/Sensors(376): int poll__setDelay(sensors_poll_device_t*, int, int64_t)
12-11 16:19:52.078: V/Sensors(376): int sensors_poll_context_t::setDelay(int, int64_t)
12-11 16:19:52.078: V/Sensors(376): int poll__setDelay(sensors_poll_device_t*, int, int64_t)
12-11 16:19:52.078: V/Sensors(376): int sensors_poll_context_t::setDelay(int, int64_t)
12-11 16:19:53.470: D/dalvikvm(4942): GC_CONCURRENT freed 3257K, 52% free 4080K/8451K, paused 3ms+2ms, total 62ms
12-11 16:19:53.520: D/StartupTime2(4942): :1449847193331
12-11 16:19:53.520: I/__BUILD_NO(4942): #15.0.0.349
12-11 16:19:53.780: I/Choreographer(4942): Skipped 104 frames! The application may be doing too much work on its main thread.
12-11 16:19:53.820: I/Adreno200-EGLSUB(118): <CreateImage:893>: Android Image
12-11 16:19:53.820: I/Adreno200-EGLSUB(118): <GetImageAttributes:1102>: RGBA_8888
12-11 16:19:53.820: I/ActivityManager(376): Displayed air.PlanifVisites/.AppEntry: +2s529ms
12-11 16:19:54.471: D/dalvikvm(4942): GC_FOR_ALLOC freed 468K, 55% free 3833K/8451K, paused 17ms, total 18ms
12-11 16:19:54.471: I/dalvikvm-heap(4942): Grow heap (frag case) to 13.438MB for 1463056-byte allocation
12-11 16:19:54.491: I/Choreographer(4942): Skipped 42 frames! The application may be doing too much work on its main thread.
12-11 16:19:54.501: I/Adreno200-EGLSUB(118): <CreateImage:893>: Android Image
12-11 16:19:54.501: I/Adreno200-EGLSUB(118): <GetImageAttributes:1158>: RGBX_8888
12-11 16:19:54.501: I/ggheart(2224): onStop
12-11 16:19:54.501: I/Test(2224): onStop
12-11 16:20:00.036: I/Adreno200-EGLSUB(118): <CreateImage:893>: Android Image
12-11 16:20:00.036: I/Adreno200-EGLSUB(118): <GetImageAttributes:1102>: RGBA_8888
Thank you for your help.

Related

Xamarin.Forms.Android black screen in release mode playing back HLS video with linking set to "SDK assemblies only"

In my Xamarin.Forms.Android app I'm trying to playback a HLS video encoded with azure media services.
This works in debug mode.
But when I run in release mode I see the following problem:
the video does seem to load, and it starts playback (the slider moves) but the screen remains black.
Since my video did not have audio i'm not sure if audio worked.
I tried to fix release mode by setting my android project linker settings from "Sdk Assemblies Only" to "none" and this seemed to do the trick, playback worked in release mode when pushing it to an attached device.
To reproduce the problem in debug mode I had to both
set the linker to "SDK assemblies only"
set the Code shrinker to r8
I then saw the following output:
[VLC] [00000074f8240e90/4256] libvlc window: AndroidNativeWindow jni init failed
[VLC] [00000074f8240e90/4256] libvlc window: InitJNIFields failed
[VLC] [00000075175fdc90/4258] libvlc vout display: parent window not available
[VLC] [00000074f385e990/4256] libvlc video output: video output creation failed
[VLC] [00000074edff459003-04 13:35:46.832 E/VLC (15716): [00000075001e6890/4256] libvlc decoder: failed to create video output
[VLC] [00000075001e6890/4256] libvlc decoder: Opaque Vout request failed
[VLC] [00000074f8241750/4259] libvlc window: AndroidNativeWindow jni init failed
[VLC] [00000074f8241750/4259] libvlc window: InitJNIFields failed
[VLC] [000000751fe4ba90/4260] libvlc vout display: parent window not available
[VLC] [0000007517212f90/4259] libvlc video output: video output creation failed
[VLC] [00000075001e6890/4259] libvlc decoder: failed to create video output
[VLC] [00000074fcef7590/425a] libvlc window: AndroidNativeWindow jni init failed
[VLC] [00000074fcef7590/425a] libvlc window: InitJNIFields failed
[VLC] [00000075175fe890/4261] libvlc vout display: parent window not available
This leads me to the conclusion that there is code that is stripped out by the linker that the vlc media player needs in order to playback my stream. However the the documentation does not state anything is needed to fix the linker.
I am using
Windows 10
Visual studio 16.9.0
LibVLCSharp.Forms v3.4.9 in my XF android and master XF project
VideoLAN.LibVLC.Android v3.2.0 in my XF android project
when searching for the error codes I came across this issue https://code.videolan.org/videolan/LibVLCSharp/-/issues/255 which seems to address the problem. Will post an update if this fixes the problem
yes, the solution was as mentioned in the issue to:
Add a file to your Xamarin.Android app root named "r8.cfg"
in the properties set Build Action to "ProguardConfiguration".
In this file add lines:
-keep class org.videolan.** { *; }
-dontwarn org.videolan.**

Azerothcore worldserver won't start win10

Worldserver crash after :
AC>worldserver process priority class set to HIGH
Starting up Auction House Listing thread...
Max allowed socket connections 1024
Calendar deletion of old events.
Guild Daily Cap reset.
AzerothCore rev. fcaf91b8b2af 2020-07-30 12:35:45 +0200 (master branch) (Win64, Debug) (worldserverdaemon) ready...
Calendar deletion of old events.
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\xtree(182) : Assertion failed: cannot dereference end map/set iterator
same problem in Visual studio 15/16 only different row xtree(222)/xtree(182) enter image description here
I had the same problem and managed to solve it by reconfiguring CMake CMAKE_AR from
C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/**Hostx84**/x64/lib.exe
to
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/**Hostx64**/x64/lib.exe
I then recompiled and everything worked like a charm. Hope this can help you.

Why m2e retrieving architypes causes out of memory error?

Can you help me please.
I have Eclipse Java EE IDE Kepler
M2E: version 1.4.0
eclipse.ini:
...
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
-Xms256m
-Xmx512m
By creating a new Maven project i keep getting:
- long "Retrieving artifacts" pause
- then strange out of memory error:
An internal error occurred during: "Retrieving archetypes:".
GC overhead limit exceeded
How can it take so mutch memory?

While deploying under release I get "LinkAssemblies failed" error

Just created a new project, Haven't touched anything yet except create some custom classes. Haven't touched the UI part, tried to deploy in release and I get this error:
The "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Android.Support.V4.Widget.DrawerLayout::AddDrawerListener(Android.Support.V4.Widget.DrawerLayout/IDrawerListener)' (defined in 'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Android.Support.V4.Widget.DrawerLayout::AddDrawerListener(Android.Support.V4.Widget.DrawerLayout/IDrawerListener)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
--- End of inner exception stack trace ---
at Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() TakeAm.Droid C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1571
I really don't know what I've done wrong I've tried changing the target and compile versions to the latest versions but still nothing. My Forms Nuget is Updated also.
This is a known bug.
Bug 48014 - blank xaml app (xamarin.forms portable) release build fails
The bug was fixed in an alpha release:
Jose Gallardo 2016-12-02 19:54:01 UTC
.../...
We're going to replace the old cross-platform templates with a new set of templates where this issue is fixed.
That new version will be out in the next XVS 4.3 preview (which will be available in the Alpha channel probably next week).
To add to my answer, there's other issues that may need to be addressed with that update.
Taken from Xamarin Android no longer builds release after Xamarin Update, John Miller:
Check that you have the following installed:
XVS 4.2.0.703
Android SDK Tools 25.2.2
Android Platform-tools 24.0.3
Android
Build-tools 24.0.3
Android support repository 38
Java 1.8 (8u101) 64 bit (Remove Java 1.7 if you have it, see more info
here:
https://developer.xamarin.com/releases/android/xamarin.android_7/xamarin.android_7.0/)
Make sure you have API 23 or 24 installed to compile the Android
project against.

issue when building NPanday Building a web application

[UPDATE]
the clean goal runs smoothely all over the projects of the solution, the problem now while running the compile goal, below the error message:
[INFO] Total time: 19.427s
[INFO] Finished at: Fri Jun 29 11:46:28 WEST 2012
[INFO] Final Memory: 15M/306M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.npanday.plugins:maven-aspx-plugin:1.4.0-incubating:compile (default-compile) on project B3GMcsInterface: NPANDAY-900-006: Unable to Compile: Language = ASP, Vendor = null, ArtifactType = asp, Source Directory = C:\Users\CASA-WS001\Desktop\Gateway\ProjectName: NPANDAY-040-001: Could not execute: Command = cmd.exe /X /C "aspnet_compiler -v " /MyArtifactId" -p C:\Users\CASA-W~1\AppData\Local\Temp\maven-aspx-plugin-3088047295012139775\src -u -f C:\Users\CASA-W~1\AppData\Local\Temp\maven-aspx-plugin-3088047295012139775\dest -nologo -fixednames", Result = 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :B3GMcsInterface
NPanday Execution Failed!, with exit code: 1
[END OF UPDATE]
i'm trying to make the build of simple web application using NPanday, i am using the incubating 1.4.0 plugin for VS2010, i have successfully built C# Console or Libraries Projects using maven, but when i tried to clean a web application i encounter this kind of error
Below is the error output.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.628s
[INFO] Finished at: Tue Jun 26 17:53:56 WET 2012
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'npanday.plugin:maven-aspx-plugin' from the repositories [local (C:\Users\user1.m2\repository), central (http://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException
any help is appreciated.
Thank You.
The problem is the "npanday.plugin" in "npanday.plugin:maven-aspx-plugin"... It must be wrongly stated in one of the life cycles.
Things have moved to "org.apache.npanday.plugins": http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22maven-aspx-plugin%22
Try using 1.5.0-SNAPSHOT from the following repository. It contains a mass of improvements! I'm using it in production.
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>false</enabled>
</releases>
<id>npanday.snapshots</id>
<name>NPanday Snapshot Repository</name>
<url>http://vmbuild.apache.org/archiva/repository/npanday-snapshots</url>
</pluginRepository>
</pluginRepositories>
I think you have to use a repository manager and define a supplemental repository which contains the given dependencies / plugins.
Error is related plugins order in pom.xml:
If maven-compile-plugin is before maven-aspx-plugin, you get the error.
But if the order is maven-aspx-plugin and then maven-compile-plugin, mvn compile works
Snip of the correct pom.xml:
....
<plugins>
<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-aspx-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<frameworkVersion>4.0</frameworkVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-compile-plugin</artifactId>
<version>1.4.0-incubating</version>
<extensions>true</extensions>
....

Resources