Android app crash without CompanionClickThrough link

44 vues
Accéder directement au premier message non lu

Mala

non lue,
14 juin 2016, 22:11:3614/06/2016
à Interactive Media Ads SDK,Graham Head
Hello,

I get app crash everytime there is a companion ad without click through link.

SDK - Android platform

Error :
com.google.ads.interactivemedia.v3.samples.videoplayerapp E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #4
                                                                                                           Process: com.google.ads.interactivemedia.v3.samples.videoplayerapp, PID: 17593
                                                                                                           java.lang.RuntimeException: An error occured while executing doInBackground()
                                                                                                               at android.os.AsyncTask$3.done(AsyncTask.java:304)
                                                                                                               at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
                                                                                                               at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
                                                                                                               at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                                                                               at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                                                                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                                               at java.lang.Thread.run(Thread.java:818)
                                                                                                            Caused by: java.lang.NullPointerException: uriString
                                                                                                               at android.net.Uri$StringUri.<init>(Uri.java:470)
                                                                                                               at android.net.Uri$StringUri.<init>(Uri.java:460)
                                                                                                               at android.net.Uri.parse(Uri.java:432)
                                                                                                               at com.google.ads.interactivemedia.v3.impl.x$1.a(IMASDK:674)
                                                                                                               at com.google.ads.interactivemedia.v3.impl.x$1.doInBackground(IMASDK:671)
                                                                                                               at android.os.AsyncTask$2.call(AsyncTask.java:292)
                                                                                                               at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                                               at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
                                                                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                                                               at java.lang.Thread.run(Thread.java:818) 


Tested on the Advanced example with the following AdResponse, instead of adTagURL

<?xml version="1.0" encoding="UTF-8"?>




<VAST version="2.0.1">

    <Ad id="Y206YWQ9NTM3ODE5MSZjcz0zNjE5NTIxJnR1PTA">

        <InLine>

            <AdSystem version="3.0"><![CDATA[TritonDigitalCampaignManager]]></AdSystem>

            <AdTitle><![CDATA[Advertisement]]></AdTitle>


                                                    <Impression id="ImpressionConfirmationURL">

                    <![CDATA[http://cmod410.live.streamtheworld.com/ondemand/impression?cat=cm-ondemand-midroll&cid=Y206YWQ9NTM3ODE5MSZjPTM2MTk1MzEmYT0yNTU4ODYxJmNzPTM2MTk1MjEmdHU9MQ&stid=99103&lsid=app:3101049&cb=1600950319]]>

                </Impression>  

                          

                                        

            <Creatives>

                <Creative sequence="1">

                    <Linear>

                        <Duration>00:00:02.037</Duration>                        

                        <MediaFiles>

                                                            <MediaFile delivery="progressive" type="audio/mpeg" width="0" height="0">

                                    <![CDATA[http://cmodmedia410.live.streamtheworld.com/media/cm-audio/cm:807a6466-8853-4db6-9c1d-722a0abaed9a.mp3]]>

                                </MediaFile>

                                                    </MediaFiles>

                        

                                                 

                                                                        </Linear>

                </Creative>

    <Creative sequence="1">              

           

     <CompanionAds>

                                 <Companion height="300" width="300">

    <StaticResource creativeType="image/jpeg">

        <![CDATA[http://cmodmedia410.live.streamtheworld.com/media/cm-image/cm:0bbec5d9-b5dc-4087-8f2d-fc1fd7427106.jpg]]>

    </StaticResource>


        <TrackingEvents>

            

                        

                    <Tracking event="creativeView">

                <![CDATA[http://cmod410.live.streamtheworld.com/ondemand/viewtrack?cat=cm-ondemand-midroll&cid=Y206YWQ9NTM3ODE5MSZjPTM2MTk1NDEmYT0yNTU4ODcxJmNzPTM2MTk1MjEmdHU9MA&stid=99103&lsid=app:3101049&cb=1600950319]]>

            </Tracking>

                                                    

    </TrackingEvents>

        

        

    <AltText>

        <![CDATA[]]>

     </AltText>

</Companion>

<Companion height="300" width="300">

    <HTMLResource>

        <![CDATA[


                

            

            <img alt='' src="http://cmod410.live.streamtheworld.com/ondemand/viewtrack?cat=cm-ondemand-midroll&amp;cid=Y206YWQ9NTM3ODE5MSZjPTM2MTk1NDEmYT0yNTU4ODcxJmNzPTM2MTk1MjEmdHU9MA&amp;stid=99103&amp;lsid=app:3101049&amp;cb=1600950319&amp;redir=http://cmodmedia410.live.streamtheworld.com/media/cm-image/cm:0bbec5d9-b5dc-4087-8f2d-fc1fd7427106.jpg"/>

    ]]>

   </HTMLResource>

</Companion>

<Companion height="300" width="300">

    <IFrameResource>

                     <![CDATA[http://cmod410.live.streamtheworld.com/ondemand/creative?cat=cm-ondemand-midroll&cid=Y206YWQ9NTM3ODE5MSZjPTM2MTk1NDEmYT0yNTU4ODcxJmNzPTM2MTk1MjEmdHU9MA&fmt=htmlPage&stid=99103&lsid=app:3101049&cb=1600950319]]>

             </IFrameResource>

</Companion>


         </CompanionAds>                    

    </Creative>

            </Creatives>

        </InLine>

    </Ad>         

</VAST>



Found the same issue posted in the group, but I see there has not been any update past 2 years, has anything been done. 

https://groups.google.com/forum/#!search/StringUri$20crash$20android$20NullPointerException/ima-sdk/YI3suHDnDCY/Z0UZmmnGjGoJ


Unfortunately I cannot control the client vast data and they expect to handle the ad clicks in device. Is there something that I could do to prevent the crash from happening.


Thanks,

Mala

Vu Chau (IMA SDK Team)

non lue,
15 juin 2016, 14:15:0315/06/2016
à Interactive Media Ads SDK,graha...@tunedglobal.com
Hi Mala,

Thanks for the crash report.  I'm able to reproduce this as well in our sample, so I have raised this with the rest of the team.  I will give an update once I have further news!

Vu Chau
IMA SDK Team

Vu Chau (IMA SDK Team)

non lue,
19 juil. 2016, 14:36:0819/07/2016
à Interactive Media Ads SDK,graha...@tunedglobal.com
Hi all,

The team has identified and fixed the bug originally reported in this thread.  The fix is scheduled to be in production in the next SDK release, so monitor our release notes for an update!

Vu Chau
IMA SDK Team

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message