Android, StageWebView. Fatal crash, reboot required.
steps:
1) set rendermode gpu or rendermode direct, enable android:hardwareaccelerated="true" in app-descriptor (to see videos @ all).
2) use simple html (body head div iframe) play youtube-videos in stagewebview.
the os-video-player "inspects" html-code , replaces youtube-flash-player (almost newer devices so).
3) (about 1 in 15) video upside down <- when rest of bug occurs.
4) call function changes stagewebview-location:
stagewebview.loadstring(), stagewebview.loadurl(), stagewebview.historyback() or call stagewebview.dispose().
5) crash:
air-app crashes, youtube-audio keeps playing -until device if powered off-
android>settings>apps>"force close" not help, hell, uninstalling doesnt shut audio.
==============================
step (3) tricky:
it not happen every time, happen often enougth (average 1/15 times) reproducable in 1-2 minutes. have start process several times trigger it.
because not reproduce bug reliably, first assumption has rest of apps state/code. so, made isolated test project, 2 buttons + stagewebview: same results.
things not matter:
- html-embed-method not matter. tried: new (iframe), old (embed), youtube-js-api (fill div) , several other variations.
- youtube-player parameters , stuff fs, rel, flip(not working anyway) etc...
- stagescale, ratio, tried stagescalemode no_scale, show_all...
- stagewebview.viewport size / position.
- video size / ratio in embed code, tried ones youtube embed suggests , custom sizes.
- orientation mode, auto, landscape, portrait.
things matter:
- rendermode must gpu/direct, never happens in rendermode cpu or auto.
- youtube-flash-player must replaced android-os-player, youtube-player never shows videos upside down nor causes crash.
observations:
when os-player replaces youtube player , shows preloader/spinning wheel thing:
for first fractions of second, small, empty "youtube-player-ui" spinning instead of wheel.
what outlandish bug. think thats why bug onyl happens sometimes, depending on how long video takes load , how far "mini-youtube-player" rotated (i still cant believe this).
test-devices:
nexus 7 (4.2.2) <- crashes often
samsung gt-n7100 (4.1.2)
htc 1 (4.1.2)
xperia lt30p (4.1.2)
any ideas ?
can adobe confirm bug ?
cs6, air sdk 3.5/6/7
message edited by: verdave, typo, details
hi,
i tried mentioned steps unfortunately crash not reproducable. please share source files , packaging command @ nimitja@adobedotcom, can give try again , reproduce issue.
regards,
nimit
More discussions in AIR Development
adobe
Comments
Post a Comment