App crashes when no storage space on the device.

630 views
Skip to first unread message

Hyunjoon Ko

unread,
Mar 19, 2020, 1:47:18 AM3/19/20
to google-adm...@googlegroups.com
I am using Google-Mobile-Ads-SDK 7.56.0.
The user with the error is using iOS 10 on iPhone 5.

Error slack trace:
----
Fatal Exception: NSFileHandleOperationException
    *** -[NSConcreteFileHandle writeData:]: No space left on device.

0  CoreFoundation                 0x1d9cbb3d __exceptionPreprocess
1  libobjc.A.dylib                0x1cc53067 objc_exception_throw
2  CoreFoundation                 0x1d9cba85 -[NSException initWithCoder:]
3  Foundation                     0x1e2c21af (missing)
4  Foundation                     0x1e2c2a5f (missing)
5  Mubeat                         0xa6cd19 GADResourceBufferCanProvideByteOffset
6  libdispatch.dylib              0x1d099783 _dispatch_client_callout
7  libdispatch.dylib              0x1d0a5a35 _dispatch_barrier_sync_f_invoke
8  libdispatch.dylib              0x1d0a8b91 _dispatch_barrier_sync_f_slow
9  Mubeat                         0xa6cb6d GADResourceBufferCanProvideByteOffset
10 Mubeat                         0x77798b __InstrumentURLSessionDataTaskDidReceiveData_block_invoke
11 CFNetwork                      0x1e06fc43 __67-[NSURLSession delegate_dataTask:didReceiveData:completionHandler:]_block_invoke.243
12 Foundation                     0x1e2f1b01 (missing)
13 Foundation                     0x1e247aef (missing)
14 Foundation                     0x1e239fe7 (missing)
15 Foundation                     0x1e2f3d39 (missing)
16 libdispatch.dylib              0x1d0a659d _dispatch_queue_serial_drain
17 libdispatch.dylib              0x1d09cb71 _dispatch_queue_invoke
18 libdispatch.dylib              0x1d0a81b5 _dispatch_root_queue_drain
19 libdispatch.dylib              0x1d0a800f _dispatch_worker_thread3
20 libsystem_pthread.dylib        0x1d24e87d _pthread_wqthread
21 libsystem_pthread.dylib        0x1d24e45c start_wqthread

----

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 19, 2020, 3:47:52 AM3/19/20
to li...@vlending.co.kr, google-adm...@googlegroups.com

Hi Hyunjoon,

 

Thank you for reaching out to us.

 

Upon investigation of the crash log that you've provided, it seems that the fatal exception is stemming from a common iOS function (NSConcreteFileHandle writeData) rather than an AdMob SDK one. With this in mind, I would recommend reaching out to more iOS-centric support sites (such as StackOverflow) for further assistance on this one, as I'm afraid that we can only assist you on technical AdMob-specific concerns.

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5001UXVVkz:ref

Hyunjoon Ko

unread,
Mar 19, 2020, 4:09:01 AM3/19/20
to Google Mobile Ads SDK Developers
Thank you for the reply.
Unfortunately I don't use NSConcreteFileHandle related features.
The only clue is that "GADResourceBufferCanProvideByteOffset" was called.
I don't know what this is, but I doubt it was called from within the Google-Mobile-Ads-SDK because of the prefix "GAD".

And I've also found that the app crash occurred when the reward ad(GADRewardedAd) was called.

2020년 3월 19일 목요일 오후 4시 47분 52초 UTC+9, mobileadssdkforumadvisor 님의 말:

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 19, 2020, 5:59:16 AM3/19/20
to li...@vlending.co.kr, google-adm...@googlegroups.com

Hi Hyunjoon,

 

Thank you for providing additional context on your concern.

 

It is true that the NSConcreteFileHandle may have been called by the AdMob SDK during its operation. Could you try freeing up space on your device, and checking if the issue still happens afterwards? If the issue does still persist despite the above, you may then kindly provide the details below (via Reply privately to author) so that I can further investigate the issue:

  • AdMob SDK version
  • Copy of your project (or a modified sample project), replicating the issue
  • Steps to replicate the issue
  • Device's available storage space at the time of replicating the issue

Aster

unread,
Jul 27, 2020, 11:00:17 PM7/27/20
to Google Mobile Ads SDK Developers
our app also some crashes. But the device disk enough space with free space 1126 MB.

adMob sdk pod 'Google-Mobile-Ads-SDK','7.60.0'

and the user iPhone8,2;iPhone OS13.4.1 (17E262)

can not replicate the issue.

Last Exception Backtrace :
0  CoreFoundation                 0x000000018ad285f0 ___exceptionPreprocess +  224
1  libobjc.A.dylib                0x000000018aa4abcc objc_exception_throw + 44
2  Foundation                     0x000000018b0b33a0 -[NSConcreteFileHandle readDataUpToLength:error:]
3  Foundation                     0x000000018b042fc0 -[NSConcreteFileHandle writeData:] +  284
4  QQKSong                        0x000000010249fb38 _GADResourceBufferCanProvideByteOffset +  6884
5  libdispatch.dylib              0x000000018a9ee524 __dispatch_client_callout +  16
6  libdispatch.dylib              0x000000018a9a10b0 __dispatch_lane_barrier_sync_invoke_and_complete +  56
7  QQKSong                        0x000000010249f96c _GADResourceBufferCanProvideByteOffset +  6424
8  CFNetwork                      0x000000018e11b01c _CFNetworkHTTPConnectionCacheSetLimit + 204964
9  Foundation                     0x000000018b0eefa0 ___NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ +  16
 +  16
10 Foundation                     0x000000018affa2c0 -[NSBlockOperation main] +  84
11 Foundation                     0x000000018b0f11fc ___NSOPERATION_IS_INVOKING_MAIN__ +  20
12 Foundation                     0x000000018aff9fc4 -[NSOperation start] +  740
13 Foundation                     0x000000018b0f1bf4 ___NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ +  20
14 Foundation                     0x000000018b0f16c0 ___NSOQSchedule_f +  180
15 libdispatch.dylib              0x000000018a9a0c8c __dispatch_block_async_invoke2 +  104
5  libdispatch.dylib              0x000000018a9ee524 __dispatch_client_callout +  16
17 libdispatch.dylib              0x000000018a996e98 __dispatch_continuation_pop$VARIANT$mp +  412
18 libdispatch.dylib              0x000000018a9965ec __dispatch_async_redirect_invoke +  656
19 libdispatch.dylib              0x000000018a9a3438 __dispatch_root_queue_drain +  376
20 libdispatch.dylib              0x000000018a9a3bf8 __dispatch_worker_thread2 +  124
21 libsystem_pthread.dylib        0x000000018aa3fb38 _pthread_wqthread + 204
22 libsystem_pthread.dylib        0x000000018aa42740 start_wqthread + 8

Exception Type: NSFileHandleOperationException(SIGABRT)
Exception Codes: *** -[NSConcreteFileHandle writeData:]: No space left on device at 0x000000018ab1dd88
Crashed Thread: 21

在 2020年3月19日星期四 UTC+8下午5:59:16,mobileadssdkforumadvisor写道:

Aster

unread,
Jul 27, 2020, 11:23:37 PM7/27/20
to Google Mobile Ads SDK Developers
have any solutions?
our app have the same problem.

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 28, 2020, 1:09:49 AM7/28/20
to ipa...@gmail.com, google-adm...@googlegroups.com

Hi there,

 

Thank you for reaching out to us and for providing the details.

 

Allow me to raise this with the rest of the team to further investigate the issue. I'll get back to this thread once an update is available.

 

Regards,

Mark Albios

Aster

unread,
Aug 19, 2020, 11:10:12 PM8/19/20
to Google Mobile Ads SDK Developers
Is there any follow up on this issue?  the issue is our top2 crash now

Mobile Ads SDK Forum Advisor Prod

unread,
Aug 20, 2020, 1:20:36 AM8/20/20
to ipa...@gmail.com, google-adm...@googlegroups.com

Hi there,

Thanks for getting back to us.

Currently, there is still no update for this; however, allow me to make a follow up with the team. We'll be updating this thread for any available feedback.



Regards,
Mark Albios
Mobile Ads SDK Team



ref:_00D1U1174p._5001UXVVkz:ref

Aster

unread,
Aug 20, 2020, 10:41:35 PM8/20/20
to Google Mobile Ads SDK Developers
Thank you for your reply.
Message has been deleted
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Jun 29, 2021, 4:28:21 AM6/29/21
to ipa...@gmail.com, google-adm...@googlegroups.com

Hello Everyone,

This is to provide an update to the issue as discussed on this thread.

"As the error states, this looks like it is due to the SDK trying to write out data with a full disk. A try/catch to prevent this was added to 8.6.0, so the publisher is encouraged to update to the latest SDK."

Regards,

Google Logo
Mark Kevin Albios
Mobile Ads SDK Team
 


ref:_00D1U1174p._5001UXVVkz:ref
Reply all
Reply to author
Forward
0 new messages