nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
08/27/13 07:46 AM (12 years ago)

AT53 Video Player error in Android

Greetings. I am using the AT53 video player in my app and when I'm trying to view the videos while debugging on an Android device I get an error message that says "Unfortunately My App has stopped." Below is the LogCat output for this event. Has anyone had a similar issue? Is there a way around this? Does this mean that the videos will not play when the app is installed from the marketplace? 08-27 10:40:53.281: W/ZZ(3031): WB_screen_menuImage:handleItemTap loads screen with itemId: "24DB7C402FBC44842604297" 08-27 10:40:53.281: W/ZZ(3031): BT_application:getScreenDataByItemId with itemId: = "24DB7C402FBC44842604297" 08-27 10:40:53.281: W/ZZ(3031): BT_application:getScreenDataByItemId with itemType: "WB_screen_menuImage" with nickname: "Menu - Videos" 08-27 10:40:53.291: W/ZZ(3031): BT_act_controller:loadScreenObject for screen with itemId: "24DB7C402FBC44842604297" and itemNickname: "Menu - Videos" and itemType: "WB_screen_menuImage" 08-27 10:40:53.381: W/ZZ(3031): WB_screen_menuImage:onPause (BASE CLASS) 08-27 10:40:53.391: W/ZZ(3031): BT_activity_base:onCreate (BASE CLASS) 08-27 10:40:53.391: D/libc(3031): pt_debug : pthread_create->start_routine=0x40b79065, tls=0x6ade2f00, arg=0x6611fac8 08-27 10:40:53.391: D/libc(3031): pt_debug : __thread_entry->func=0x40b79065 08-27 10:40:53.391: D/libc(3031): , tls=0x6ade2f00, arg=0x6611fac8 08-27 10:40:53.391: W/ZZ(3031): BT_activity_base:Device owner has rejected Push Notifications 08-27 10:40:53.401: W/ZZ(3031): WB_screen_menuImage:onCreate 08-27 10:40:53.401: W/ZZ(3031): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Menu - Videos" 08-27 10:40:53.401: W/ZZ(3031): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#FFFFFF" 08-27 10:40:53.401: D/libc(3031): pt_debug : pthread_create->start_routine=0x40b79065, tls=0x6ade2f00, arg=0x65f900d0 08-27 10:40:53.401: D/libc(3031): pt_debug : __thread_entry->func=0x40b79065 08-27 10:40:53.401: D/libc(3031): , tls=0x6ade2f00, arg=0x65f900d0 08-27 10:40:53.401: W/ZZ(3031): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Menu - Videos" 08-27 10:40:53.401: W/ZZ(3031): BT_viewUtilities:getNavBarForScreen Hiding nav. bar for screen with nickname: "Menu - Videos" 08-27 10:40:53.401: W/ZZ(3031): BT_fileManager:deleteFile 24DB7C402FBC44842604297_screenData.txt 08-27 10:40:53.411: W/ZZ(3031): WB_screen_menuImage:backgroundWorkerThread this screen does not use a background image 08-27 10:40:53.411: W/ZZ(3031): WB_screen_menuImage: header image exists in resources folder: "ausmenuheadertwo.png" 08-27 10:40:53.441: I/dalvikvm-heap(3031): Grow heap (frag case) to 58.312MB for 4423696-byte allocation 08-27 10:40:53.601: I/dalvikvm-heap(3031): Grow heap (frag case) to 95.800MB for 39813136-byte allocation 08-27 10:40:53.681: W/ZZ(3031): WB_screen_menuImage:setHeaderDrawble 08-27 10:40:53.681: W/ZZ(3031): WB_screen_menuImage:onStart (BASE CLASS) 08-27 10:40:53.681: W/ZZ(3031): WB_screen_menuImage: start GPS is set to NO in the applications configuration data, not starting GPS 08-27 10:40:53.681: W/ZZ(3031): WB_screen_menuImage:onStart using data from app's configuration file 08-27 10:40:53.681: W/ZZ(3031): WB_screen_menuImage:parseScreenData 08-27 10:40:53.691: W/ZZ(3031): WB_screen_menuImage:onResume (BASE CLASS) 08-27 10:40:53.761: D/memalloc(3031): ion: Mapped buffer base:0x6ace3000 size:7798784 offset:0 fd:54 08-27 10:40:53.761: D/memalloc(3031): ion: Mapped buffer base:0x40038000 size:4096 offset:0 fd:59 08-27 10:40:53.801: D/memalloc(3031): ion: Mapped buffer base:0x6d17e000 size:7798784 offset:0 fd:62 08-27 10:40:53.801: D/memalloc(3031): ion: Mapped buffer base:0x4003e000 size:4096 offset:0 fd:64 08-27 10:40:53.841: D/memalloc(3031): ion: Mapped buffer base:0x6d8ee000 size:7798784 offset:0 fd:78 08-27 10:40:53.841: D/memalloc(3031): ion: Mapped buffer base:0x40045000 size:4096 offset:0 fd:80 08-27 10:40:53.871: D/memalloc(3031): ion: Unmapping buffer base:0x6b753000 size:7798784 08-27 10:40:53.871: D/memalloc(3031): ion: Unmapping buffer base:0x40001000 size:4096 08-27 10:40:53.871: D/memalloc(3031): ion: Unmapping buffer base:0x6ca0e000 size:7798784 08-27 10:40:53.871: D/memalloc(3031): ion: Unmapping buffer base:0x40016000 size:4096 08-27 10:40:53.871: D/memalloc(3031): ion: Unmapping buffer base:0x6c29e000 size:7798784 08-27 10:40:53.871: D/memalloc(3031): ion: Unmapping buffer base:0x40010000 size:4096 08-27 10:40:55.333: W/ZZ(3031): WB_screen_menuImage:onStop (BASE CLASS) 08-27 10:40:57.835: W/ZZ(3031): WB_screen_menuImage:handleItemTap loads screen with itemId: "8C30DDE50B1958455882B4D" 08-27 10:40:57.835: W/ZZ(3031): BT_application:getScreenDataByItemId with itemId: = "8C30DDE50B1958455882B4D" 08-27 10:40:57.835: W/ZZ(3031): BT_application:getScreenDataByItemId with itemType: "At53_video_player" with nickname: "Video - Educating the Whole Child" 08-27 10:40:57.835: W/ZZ(3031): BT_act_controller:loadScreenObject for screen with itemId: "8C30DDE50B1958455882B4D" and itemNickname: "Video - Educating the Whole Child" and itemType: "At53_video_player" 08-27 10:40:57.886: W/ZZ(3031): WB_screen_menuImage:onPause (BASE CLASS) 08-27 10:40:57.896: W/ZZ(3031): BT_activity_base:onCreate (BASE CLASS) 08-27 10:40:57.896: D/libc(3031): pt_debug : pthread_create->start_routine=0x40b79065, tls=0x6b552f00, arg=0x65f89ae8 08-27 10:40:57.896: D/libc(3031): pt_debug : __thread_entry->func=0x40b79065 08-27 10:40:57.896: D/libc(3031): , tls=0x6b552f00, arg=0x65f89ae8 08-27 10:40:57.896: W/ZZ(3031): BT_activity_base:Device owner has rejected Push Notifications 08-27 10:40:57.906: W/ZZ(3031): At53_video_player:onCreate 08-27 10:40:57.906: W/ZZ(3031): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Video - Educating the Whole Child" 08-27 10:40:57.906: D/libc(3031): pt_debug : pthread_create->start_routine=0x40b79065, tls=0x6b552f00, arg=0x66a7a618 08-27 10:40:57.906: D/libc(3031): pt_debug : __thread_entry->func=0x40b79065 08-27 10:40:57.906: D/libc(3031): , tls=0x6b552f00, arg=0x66a7a618 08-27 10:40:57.906: W/ZZ(3031): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Video - Educating the Whole Child" 08-27 10:40:57.906: W/ZZ(3031): At53_video_player:backgroundWorkerThread using image from project bundle: "ausbacklarge.png" 08-27 10:40:57.946: I/dalvikvm-heap(3031): Grow heap (frag case) to 99.701MB for 12582928-byte allocation 08-27 10:40:58.056: I/dalvikvm-heap(3031): Forcing collection of SoftReferences for 113246224-byte allocation 08-27 10:40:58.086: E/dalvikvm-heap(3031): Out of memory on a 113246224-byte allocation. 08-27 10:40:58.086: I/dalvikvm(3031): "Thread-978" prio=5 tid=12 RUNNABLE 08-27 10:40:58.086: I/dalvikvm(3031): | group="main" sCount=0 dsCount=0 obj=0x411cf250 self=0x66a7a618 08-27 10:40:58.086: I/dalvikvm(3031): | sysTid=3112 nice=0 sched=0/0 cgrp=apps handle=1710792528 08-27 10:40:58.086: I/dalvikvm(3031): | schedstat=( 0 0 0 ) utm=12 stm=3 core=3 08-27 10:40:58.086: I/dalvikvm(3031): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 08-27 10:40:58.086: I/dalvikvm(3031): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:626) 08-27 10:40:58.086: I/dalvikvm(3031): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:473) 08-27 10:40:58.086: I/dalvikvm(3031): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781) 08-27 10:40:58.086: I/dalvikvm(3031): at android.content.res.Resources.loadDrawable(Resources.java:1963) 08-27 10:40:58.086: I/dalvikvm(3031): at android.content.res.Resources.getDrawable(Resources.java:670) 08-27 10:40:58.086: I/dalvikvm(3031): at com.myapp.BT_fileManager.getDrawableByName(BT_fileManager.java:263) 08-27 10:40:58.086: I/dalvikvm(3031): at com.myapp.BT_activity_base$BackgroundImageWorkerThread.run(BT_activity_base.java:701) 08-27 10:40:58.086: E/dalvikvm(3031): Out of memory: Heap Size=106759KB, Allocated=93847KB, Limit=196608KB 08-27 10:40:58.086: E/dalvikvm(3031): Extra info: Footprint=106759KB, Allowed Footprint=106759KB, Trimmed=5792KB 08-27 10:40:58.086: D/skia(3031): --- Unable to allocate space, reportSizeToVM = true 08-27 10:40:58.086: W/dalvikvm(3031): threadid=12: thread exiting with uncaught exception (group=0x40d4c540) 08-27 10:40:58.086: E/AndroidRuntime(3031): FATAL EXCEPTION: Thread-978 08-27 10:40:58.086: E/AndroidRuntime(3031): java.lang.OutOfMemoryError: (Heap Size=106759KB, Allocated=93847KB) 08-27 10:40:58.086: E/AndroidRuntime(3031): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 08-27 10:40:58.086: E/AndroidRuntime(3031): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:626) 08-27 10:40:58.086: E/AndroidRuntime(3031): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:473) 08-27 10:40:58.086: E/AndroidRuntime(3031): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781) 08-27 10:40:58.086: E/AndroidRuntime(3031): at android.content.res.Resources.loadDrawable(Resources.java:1963) 08-27 10:40:58.086: E/AndroidRuntime(3031): at android.content.res.Resources.getDrawable(Resources.java:670) 08-27 10:40:58.086: E/AndroidRuntime(3031): at com.myapp.BT_fileManager.getDrawableByName(BT_fileManager.java:263) 08-27 10:40:58.086: E/AndroidRuntime(3031): at com.myapp.BT_activity_base$BackgroundImageWorkerThread.run(BT_activity_base.java:701) 08-27 10:40:58.156: W/ZZ(3031): At53_video_player:onStart (BASE CLASS) 08-27 10:40:58.156: W/ZZ(3031): At53_video_player: start GPS is set to NO in the applications configuration data, not starting GPS 08-27 10:40:58.156: W/ZZ(3031): At53_video_player:onResume (BASE CLASS) 08-27 10:40:58.166: W/ZZ(3031): At53_video_player:onPause (BASE CLASS) 08-27 10:40:58.196: W/ZZ(3031): WB_screen_menuImage:onStart (BASE CLASS) 08-27 10:40:58.196: W/ZZ(3031): WB_screen_menuImage: start GPS is set to NO in the applications configuration data, not starting GPS 08-27 10:40:58.196: W/ZZ(3031): WB_screen_menuImage:onResume (BASE CLASS) 08-27 10:40:58.196: W/ZZ(3031): WB_screen_menuImage:reportToCloud 08-27 10:40:58.196: D/libc(3031): pt_debug : pthread_create->start_routine=0x40b79065, tls=0x6b852f00, arg=0x65fe3b18 08-27 10:40:58.206: D/libc(3031): pt_debug : __thread_entry->func=0x40b79065 08-27 10:40:58.206: D/libc(3031): , tls=0x6b852f00, arg=0x65fe3b18 08-27 10:40:58.206: W/ZZ(3031): WB_screen_menuImage:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA1B08B86182FFFB734545586&apiKey=323A660EE52880600017571&apiSecret=C78FF990D10E9050F658B76&deviceId=355972053595840&deviceLatitude=&deviceLongitude=&deviceModel=tmous-HTC One&userId=&currentMode=Design 08-27 10:40:58.206: W/ZZ(3031): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA1B08B86182FFFB734545586&apiKey=323A660EE52880600017571&apiSecret=C78FF990D10E9050F658B76&deviceId=355972053595840&deviceLatitude=&deviceLongitude=&deviceModel=tmous-HTC One&userId=&currentMode=Design 08-27 10:40:58.206: D/libc(3031): [NET] getaddrinfo hn 17, servname NULL, ai_family 0+ 08-27 10:40:58.206: D/libc(3031): [NET] ht 0x7777772e62757a 08-27 10:40:58.206: D/libc(3031): [NET] getaddrinfo-exit,err=8 08-27 10:40:58.206: D/libc(3031): [NET] getaddrinfo hn 17, servname NULL, ai_family 0+ 08-27 10:40:58.206: D/libc(3031): [NET] ht 0x7777772e62757a 08-27 10:40:58.206: D/libc(3031): [NET] android_getaddrinfo_proxy+ 08-27 10:40:58.206: D/libc(3031): [NET]android_getaddrinfo_proxy+ 08-27 10:40:58.206: D/libc(3031): [NET]android_getaddrinfo_proxy-,1 08-27 10:40:58.206: D/libc(3031): [NET] getaddrinfo-exit 1 08-27 10:40:58.226: D/memalloc(3031): ion: Mapped buffer base:0x6b853000 size:7798784 offset:0 fd:71 08-27 10:40:58.226: D/memalloc(3031): ion: Mapped buffer base:0x40001000 size:4096 offset:0 fd:73 08-27 10:40:58.276: D/memalloc(3031): ion: Mapped buffer base:0x6c29e000 size:7798784 offset:0 fd:75 08-27 10:40:58.276: D/memalloc(3031): ion: Mapped buffer base:0x40010000 size:4096 offset:0 fd:77 08-27 10:40:58.306: D/memalloc(3031): ion: Unmapping buffer base:0x6b853000 size:7798784 08-27 10:40:58.306: D/memalloc(3031): ion: Unmapping buffer base:0x40001000 size:4096 08-27 10:40:58.306: D/memalloc(3031): ion: Unmapping buffer base:0x6ace3000 size:7798784 08-27 10:40:58.306: D/memalloc(3031): ion: Unmapping buffer base:0x40038000 size:4096 08-27 10:40:58.306: D/memalloc(3031): ion: Unmapping buffer base:0x6d17e000 size:7798784 08-27 10:40:58.316: D/memalloc(3031): ion: Unmapping buffer base:0x4003e000 size:4096 08-27 10:40:58.316: D/memalloc(3031): ion: Unmapping buffer base:0x6d8ee000 size:7798784 08-27 10:40:58.316: D/memalloc(3031): ion: Unmapping buffer base:0x40045000 size:4096 08-27 10:40:58.316: W/ZZ(3031): WB_screen_menuImage:onStop (BASE CLASS) 08-27 10:40:58.316: W/ZZ(3031): WB_screen_menuImage:onDestroy (BASE CLASS) 08-27 10:40:58.326: W/ZZ(3031): At53_video_player:onStop (BASE CLASS) 08-27 10:40:58.326: W/ZZ(3031): At53_video_player:onDestroy (BASE CLASS) 08-27 10:40:58.406: D/libc(3031): [NET] getaddrinfo hn 17, servname NULL, ai_family 0+ 08-27 10:40:58.406: D/libc(3031): [NET] ht 0x7777772e62757a 08-27 10:40:58.406: D/libc(3031): [NET] getaddrinfo-exit,err=8 08-27 10:40:58.636: W/ZZ(3031): WB_screen_menuImage:handleReportToCloudResults appLastModifiedOnServer (value on server): Tue, 27 Aug 2013 14:32:52 -0700 08-27 10:40:58.636: W/ZZ(3031): BT_fileManager: readTextFileFromCache: "appModified.txt" 08-27 10:40:58.636: W/ZZ(3031): WB_screen_menuImage:handleReportToCloudResults previousModified (value on device): Tue, 27 Aug 2013 14:32:52 -0700 08-27 10:40:58.646: W/ZZ(3031): BT_fileManager: saveTextFileToCache: appModified.txt 08-27 10:40:58.646: W/ZZ(3031): WB_screen_menuImage:handleReportToCloudResults server data not changed, no refresh needed 08-27 10:41:00.909: W/ZZ(3031): WB_screen_menuImage:onConfigurationChanged to landscape 08-27 10:41:00.919: W/ZZ(3031): BT_device:updateDeviceOrientation Setting to: landscape 08-27 10:41:00.919: W/ZZ(3031): BT_device:updateDeviceSize This device has a screen size of: 1080 (width) x 1794 (height). 08-27 10:41:00.919: W/ZZ(3031): BT_device:updateDeviceSize This application considers this to be a "large device" 08-27 10:41:00.919: W/ZZ(3031): BT_device:updateDeviceSize This device is in "landscape" orientation. 08-27 10:41:00.989: D/memalloc(3031): ion: Mapped buffer base:0x6b753000 size:7938048 offset:0 fd:59 08-27 10:41:00.989: D/memalloc(3031): ion: Mapped buffer base:0x40001000 size:4096 offset:0 fd:62 08-27 10:41:17.346: W/ZZ(3031): WB_screen_menuImage:onPause (BASE CLASS) 08-27 10:41:17.446: W/ZZ(3031): WB_screen_menuImage:onConfigurationChanged to portrait 08-27 10:41:17.446: W/ZZ(3031): BT_device:updateDeviceOrientation Setting to: portrait 08-27 10:41:17.446: W/ZZ(3031): BT_device:updateDeviceSize This device has a screen size of: 1080 (width) x 1776 (height). 08-27 10:41:17.446: W/ZZ(3031): BT_device:updateDeviceSize This application considers this to be a "large device" 08-27 10:41:17.446: W/ZZ(3031): BT_device:updateDeviceSize This device is in "portrait" orientation. 08-27 10:41:17.546: D/memalloc(3031): ion: Mapped buffer base:0x6ca0e000 size:8355840 offset:0 fd:64 08-27 10:41:17.546: D/memalloc(3031): ion: Mapped buffer base:0x40016000 size:4096 offset:0 fd:67
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
08/27/13 07:54 AM (12 years ago)
Have you tried it on a device? Did you download the sample video to rule out conversion problems? I don't think the videos in my App played on the emulator but worked fine on a device. The other problem I had with video was the mp4 I used for iOS did not work on my android phone. Selected an Android codex in Media Encoder and it worked fine. Good luck. Mike
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/27/13 07:57 AM (12 years ago)
I agree with @0z2000tv! Also what's the name of your images? Make sure they are lowercase and no special characters. LA
 
nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
like
08/27/13 09:58 AM (12 years ago)
Thank you. I am testing it on an actual device with plenty of RAM and memory and the file names are all formatted in the particular way of Android, but I think it may be the .mp4 file type incompatibility. I'm going to give that a try and will do a follow up post (hopefully with the solution).
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/27/13 10:40 AM (12 years ago)
If any app does not work properly on your emulator then it surely not work on any device in most of the case given emulator supports all the features of real device. So if you upload the apk file of an app that you tested on emulator which did not work on emulator will surely be of no use. The problem of crashing of your app is not because of the at53 plugin but because of images that you have included in your project. Your app is crashing because your app is out of memory for the device to handle. It means you have added lot of bitmap images which makes it hard to the device memory to handle it and thats the reason it crashes. Check out the following lines of your error logs--- --- 08-27 10:40:58.086: E/dalvikvm(3031): Out of memory: Heap Size=106759KB, Allocated=93847KB, Limit=196608KB and --- 08-27 10:40:58.086: E/AndroidRuntime(3031): java.lang.OutOfMemoryError: (Heap Size=106759KB, Allocated=93847KB) The above error logs show that your app has either lot of images in it or the images in your app are of large size. The only solution is to either reduce the size of your images by compressing those images or to refer those images from url. Hope you get what i am saying here and this solves your problem.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/27/13 10:46 AM (12 years ago)
Do you have some very hi res images in wb_menu_image and at_video player? You're getting out of memory errors from images. (although that might be a symptom rather than a cause). Try reducing the file size of the images. 8bit, 128 color, flattened png's are a safe-ish bet. You can use something like http://tinypng.org/ to crunch images.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/27/13 10:48 AM (12 years ago)
What Sandeep said! I'm too slow..
 
devapps123
Apple Fan
Profile
Posts: 50
Reg: Jul 12, 2012
Sarasota, FL
500
like
08/27/13 11:17 AM (12 years ago)
What file types are ok for Android?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/27/13 11:25 AM (12 years ago)
png and jpg are ok. png have the best file compression and are usually first choice.
 
nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
like
08/27/13 11:28 AM (12 years ago)
Hello @raveyd and @sandeep. Just to clarify, the app is in fact running on a new device with plenty of memory and storage, so it's surprising to me that the size of the app is the culprit. I'm also a little confused by the fact that this app with all it's component images runs perfectly on Apple devices with less memory than the Android device I'm currently running, is this an Android-specific issue? I'm going to try TinyPNG and see how that goes. Thanks for the advice. I appreciate your feedback as I continue to uncover the complexities of these operating systems.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/27/13 11:51 AM (12 years ago)
Hi @nmcmap, yes it's Android specific. It's to do with garbage collection processes, it doesn't necessarily help any if you have plenty of memory and storage. There are many posts on stackoverflow.com about garbage collection, it's a tricky subject with no real specific solutions. The first and easiest step is to reduce image file sizes then take it from there.
 
nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
like
08/27/13 02:56 PM (12 years ago)
UPDATE: I've changed the video file type and converted all images to compressed PNG files with the help of TinyPNG (excellent resource, thanks for that @raveyd). Unfortunately the problem remains and when I go to play any of the videos it will take me as far as the menu option and then stop functioning before it opens the video player page. I am wondering if anyone's gotten the video player working in Android with a video file as part of the package (not pulling from a URL, though consequently that version of the video player is also not working)? The app package is large but compared with the amount of storage available on the phone (a ratio of about 1:25) it really shouldn't be an issue of space. It is important that this be an "offline" app and the videos be part of the package. Any other suggestions on a workaround or tips on making the plugin function or redirect to a native player are welcome and appreciated.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/27/13 03:49 PM (12 years ago)
hmmm... not so sure it's the at53 video player, it looks like it just happens to be the last process before a crash. From the logcat it looks like the heap starts growing disproportionately in the WB_screen_menuImage plugin. I don't know if this has been encountered before, maybe try a forum search (from google to get better results - "site:buzztouch.com/forum/ search query") or contact the developer? Otherwise, you could try running the emulator in DDMS perspective in eclipse and get a heap dump. I't's quite difficult to get any meaningful information without a bit of work. There are plenty of guides on the net to: "convert a dalvik.hprof to a java.hprof". I'll try and dig some links out... What it'll show you is where and why the error is occurring. Then use that information to search stackoverflow.com - there will almost certainly be many different solutions, hopefully one should work!
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/27/13 07:13 PM (12 years ago)
@raveyd- I have encountered a lot of heap dump problem using wb screen menu image plugin in some of my apps. This usually happens whenever if referred for the images from url and the app crashes abruptly. Thats why i avoid using this plugin. @nmcapps- you too might be having the same problem. Try using simple menu as trial and then check how it goes.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
08/27/13 10:05 PM (12 years ago)
You could try the Menu Image Advanced plugin. It seems similar but manages the XML files differently. I am planning an update to the Menu with Image that will use similar logic in the Menu Image Advanced this fall, maybe October. Another thing that may help even more is the new Buzztouch Android core code. But even with this, you will need to reduce the size of your images for it to work well. Remember that some of your users will have older Android devices.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
08/28/13 07:18 AM (12 years ago)
>>> 08-27 10:40:57.906: W/ZZ(3031): At53_video_player:backgroundWorkerThread using image from project bundle: "ausbacklarge.png" I think this is the background image you are using with the plugin, not the videos causing the crash. Maybe try removing it and using just a color and see if that stops the crash?
 
nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
like
08/28/13 09:58 AM (12 years ago)
Thank you, I will give that a try.
 
nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
like
08/29/13 07:16 AM (12 years ago)
SOLUTION: "I think this is the background image you are using with the plugin, not the videos causing the crash." @ATRAIN53 Thank you very much to everyone who shared your advice. The combination of changing the video file types and removing the background image solved the problem and everything is up and running smoothly now.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/29/13 08:59 AM (12 years ago)
Excellent news! Great that it works. I'd argue that it's not a solution to the underlying cause, but rather a workaround. The app shouldn't crash with a background image but it does. The main thing's getting it to work though so that's great!
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
08/29/13 12:36 PM (12 years ago)
The new Android core will make a world of difference with how Android works for all of us.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.