Memory Exception - Swift/iOS/macOS Entwicklung - Two objects RAMmed together

Error Log from iTunesconnect Debugging Tool - They RAMmed together
Error Log from iTunesconnect Debugging Tool - They RAMmed together

In Itunesconnect und im Bundle Uploader von Xcode befinden sich Debuging Tools mit denen du Fehler bzw. Crashes von deiner App überprüfen kannst. Dies klappt nur bei Geräten, die Analysedaten an Apple übertragen (kann bei der Geräteinstallation ausgewählt werden). Die Überprüfung von den betreffenden Daten kann insbesondere in Kombination mit den Power Reports sehr aufschlussreich sein, da damit die Folgen des Fehlers abgeschätzt werden können. Mithilfe von dem Xcode Tool kannst du des Weiteren die die genau Stelle im Code anzeigen lassen, bei der der Fehler aufgetreten ist. Ich nutze das online Debugging Tool auch, um meine bereits deployten Apps auf Fehler zu überprüfen. Mancher Entwickler wird überrascht sein, wie viele Fehler seine App aufweisen kann, denn es handelt sich ja nicht mehr um eine testing Simulation. Kurz gesagt: Es können hunderte verschiedene Fehler auftreten.


Gerade Memory Expections können häufig passieren, da diese meist einfach nur durch eine Überlastung bzw. einen vollen Arbeitsspeicher verursacht werden. In dem Bild oben und bei dem Debug Log unten, kann man einen solchen Memory-Fehler sehen. Beim Start einer NSURL Session muss diese zuerst durch den Guard genehmigt werden und es erfordert eine Zwischenspeicherung von den NSURLRequest Daten, welche im Arbeitsspeicher gespeichert werden.  Der Fehler der passiert ist, ist eigentlich relativ einfach: Die App wollte die betreffenden Daten in den RAM schreiben, damit diese vom Guard verwendet werden könnten, doch dieser war voll bzw. das Schreiben schlug fehl, was automatisch zur Folge hat, dass der Guard den NSURL Prozess beendete. Und da die App abhängig ist von dem Prozess, stürzte sie ab. Aus den Energy-Logs kann ich eine hohe Aktivität sowie grosse Temperaturen auslesen.


Also kam zu der Memory Exception auch noch eine Security-Exception dazu.



fehler 14:16:55.280183 +0200 coreduetd Couldn't find matching content UTI: current: com.apple.safari.history

fehler 14:17:02.165525 +0200 com.apple.Safari.SearchHelper TIC Read Status [202:0x0]: 1:57

fehler 14:17:02.165564 +0200 com.apple.Safari.SearchHelper TIC Read Status [202:0x0]: 1:57

fehler 14:17:03.844746 +0200 sandboxd Sandbox: fseventsd(70) System Policy: deny file-read-metadata /private/var/folders/nd/m79dxb6j0wlc2k608w49pnd80000gn/0/com.apple.nsurlsessiond/5C191B41B85964975463638FAD57F73CB1F3418D/6EB8557D128019BE18C5E033539027206163D3DC/Uploads

Violation:       System Policy: deny file-read-metadata /private/var/folders/nd/m79dxb6j0wlc2k608w49pnd80000gn/0/com.apple.nsurlsessiond/5C191B41B85964975463638FAD57F73CB1F3418D/6EB8557D128019BE18C5E033539027206163D3DC/Uploads 

MetaData: {"build":"Mac OS X 10.13.3 (17D47)","action":"deny","target":["private","var","folders","nd","m79dxb6j0wlc2k608w49pnd80000gn","0","com.apple.nsurlsessiond","5C191B41B85964975463638FAD57F73CB1F3418D","6EB8557D128019BE18C5E033539027206163D3DC","Uploads"],"hardware":"Mac","platform_binary":"yes","profile":"unknown","process":"fseventsd","op":"file-read-metadata"}


Process:         fseventsd [70]

Path:            /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Support/fseventsd

Load Address:    0x101cb6000

Identifier:      fseventsd

Version:         ??? (???)

Code Type:       x86_64 (Native)

Parent Process:  launchd [1]

Responsible:     /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Support/fseventsd [70]

User ID:         0


Date/Time:       2018-03-28 14:17:03.815 GMT+2

OS Version:      Mac OS X 10.13.3 (17D47)

Report Version:  8


Thread 0 (id: 616):

0   libsystem_kernel.dylib        0x00007fff742fd7c2 mach_msg_trap + 10

1   libsystem_kernel.dylib        0x00007fff742fd51c mach_msg_server + 369

2   fseventsd                     0x0000000101cb7f9e

3   libdyld.dylib                 0x00007fff741b7114 start + 0

4   fseventsd                     0x0000000000000001


Thread 1 (id: 681):

0   libsystem_kernel.dylib        0x00007fff74306cee __psynch_cvwait + 10

1   fseventsd                     0x0000000101cc23d8

2   fseventsd                     0x0000000101cc283a

3   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

4   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

5   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 2 (id: 682):

0   libsystem_kernel.dylib        0x00007fff74307562 __workq_kernreturn + 10

1   libsystem_pthread.dylib       0x00007fff74441c4d start_wqthread + 13

2                                 0x0000000106434b80


Thread 3 (id: 687):

0   libsystem_kernel.dylib        0x00007fff742fd7c2 mach_msg_trap + 10

1   CoreFoundation                0x00007fff4c8a1575 __CFRunLoopServiceMachPort + 341

2   CoreFoundation                0x00007fff4c8a08c7 __CFRunLoopRun + 1783

3   CoreFoundation                0x00007fff4c89ff43 CFRunLoopRunSpecific + 483

4   CoreFoundation                0x00007fff4c8de8f3 CFRunLoopRun + 99

5   fseventsd                     0x0000000101cba0b7

6   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

7   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

8   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 4 (id: 688):

0   libsystem_kernel.dylib        0x00007fff7430841a read + 10

1   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

2   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

3   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 5 (id: 689):

0   libsystem_kernel.dylib        0x00007fff74306cee __psynch_cvwait + 10

1   fseventsd                     0x0000000101cbeb39

2   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

3   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

4   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 6 (id: 3631):

0   libsystem_kernel.dylib        0x00007fff74307fca lstat$INODE64 + 10

1   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

2   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

3   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 7 (id: 3979):

0   libsystem_kernel.dylib        0x00007fff74306cee __psynch_cvwait + 10

1   fseventsd                     0x0000000101cbeb83

2   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

3   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

4   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 8 (id: 168700):

0   libsystem_platform.dylib      0x00007fff7443bf7d _platform_memmove$VARIANT$Haswell + 93

1   libsystem_c.dylib             0x00007fff74217cdc strlcpy + 53

2   libsystem_c.dylib             0x00007fff74287cba __strlcpy_chk + 39

3   fseventsd                     0x0000000101cb8aa9

4   fseventsd                     0x0000000101cbf63e

5   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

6   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

7   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Thread 9 (id: 171098):

0   libsystem_kernel.dylib        0x00007fff74306cee __psynch_cvwait + 10

1   fseventsd                     0x0000000101cbeb83

2   libsystem_pthread.dylib       0x00007fff744426c1 _pthread_body + 340

3   libsystem_pthread.dylib       0x00007fff7444256d _pthread_body + 0

4   libsystem_pthread.dylib       0x00007fff74441c5d thread_start + 13


Binary Images:

       0x101cb6000 -        0x101cc6fff  fseventsd (1239) <c44a37bf-75f0-31f0-b02e-3b32ce56f59c> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Support/fseventsd

    0x7fff4c81b000 -     0x7fff4ccbbfe7  com.apple.CoreFoundation (6.9 - 1451) <7afe9c8f-a562-3afc-8402-117aa02f57e9> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

    0x7fff741b6000 -     0x7fff741d3ff7  libdyld.dylib (519.2.2) <c50d02bc-a333-3313-b787-02f255a6783f> /usr/lib/system/libdyld.dylib

    0x7fff74206000 -     0x7fff7428fff7  libsystem_c.dylib (1244.30.3) <e0136c71-0648-36f0-9f84-82ea2748a8d7> /usr/lib/system/libsystem_c.dylib

    0x7fff742eb000 -     0x7fff74310ff7  libsystem_kernel.dylib (4570.41.2) <5155a4c3-825b-3178-ac51-0d2d2f2a6618> /usr/lib/system/libsystem_kernel.dylib

    0x7fff74437000 -     0x7fff7443eff7  libsystem_platform.dylib (161.20.1) <c049250f-8c35-314d-810f-4e28aeaed983> /usr/lib/system/libsystem_platform.dylib

    0x7fff7443f000 -     0x7fff7444afff  libsystem_pthread.dylib (301.30.1) <aba848e1-6978-3b42-a3a7-608b2c36fa93> /usr/lib/system/libsystem_pthread.dylib

fehler 14:17:03.845364 +0200 sandboxd Sandbox: fseventsd(70) System Policy: deny file-read-metadata /private/var/folders/nd/m79dxb6j0wlc2k608w49pnd80000gn/0/com.apple.nsurlsessiond/5C191B41B85964975463638FAD57F73CB1F3418D/6EB8557D128019BE18C5E033539027206163D3DC [Duplicate; no report will be generated.]

fehler 14:17:04.662262 +0200 sandboxd Sandbox: fseventsd(70) System Policy: deny file-read-metadata /private/var/folders/nd/m79dxb6j0wlc2k608w49pnd80000gn/0/com.apple.nsurlsessiond/5C191B41B85964975463638FAD57F73CB1F3418D/6EB8557D128019BE18C5E033539027206163D3DC/tasks.plist [Duplicate; no report will be generated.]

fehler 14:17:04.801709 +0200 sandboxd Sandbox: fseventsd(70) System Policy: deny file-read-metadata /private/var/folders/nd/m79dxb6j0wlc2k608w49pnd80000gn/0/com.apple.nsurlsessiond/5C191B41B85964975463638FAD57F73CB1F3418D/6EB8557D128019BE18C5E033539027206163D3DC/Uploads [Duplicate; no report will be generated.]

fehler 14:17:05.272241 +0200 dprivacyd <private>: Disabled by D&U switch

fehler 14:17:08.418848 +0200 com.apple.WebKit.WebContent clip: empty path.

fehler 14:17:08.419227 +0200 com.apple.WebKit.WebContent clip: empty path.

fehler 14:17:09.526503 +0200 dprivacyd <private>: Disabled by D&U switch

fehler 14:17:10.372320 +0200 sharingd Trying to grab power assertion while we already have one

fehler 14:17:17.283203 +0200 coreduetd Couldn't find matching content UTI: current: com.apple.safari.history

problem 14:17:17.656118 +0200 apsd Failed entitlement check 'com.apple.private.secure-apsclient' for <private>

problem 14:17:17.656330 +0200 apsd Failed entitlement check 'com.apple.private.aps-client-cert-access' for <private>

problem 14:17:17.925662 +0200 apsd Failed entitlement check 'com.apple.private.secure-apsclient' for <private>

problem 14:17:17.925917 +0200 apsd Failed entitlement check 'com.apple.private.aps-client-cert-access' for <private>

problem 14:17:17.926218 +0200 apsd Failed entitlement check 'com.apple.private.dark-wake-push' for <private>

problem 14:17:18.714813 +0200 apsd <private>: Preferences may have changed, checking for any relevant changes

fehler 14:17:19.355835 +0200 syncdefaultsd Process with pid 14581 is not authorized to access <private>

fehler 14:17:19.803545 +0200 sharingd Trying to grab power assertion while we already have one

fehler 14:17:21.791768 +0200 syncdefaultsd Can't get application info for <private>

problem 14:17:23.658858 +0200 apsd <private>: Preferences may have changed, checking for any relevant changes

fehler 14:17:38.797531 +0200 com.apple.WebKit.Networking TIC Read Status [2820:0x7fb533562d80]: 1:57

fehler 14:17:38.797674 +0200 com.apple.WebKit.Networking TIC Read Status [2820:0x7fb533562d80]: 1:57

fehler 14:17:38.797714 +0200 com.apple.WebKit.Networking TIC Read Status [2820:0x7fb533562d80]: 1:57

fehler 14:17:48.525049 +0200 sharingd Trying to grab power assertion while we already have one

fehler 14:17:50.778320 +0200 com.apple.WebKit.Networking TIC Read Status [2826:0x7fb5335821b0]: 1:57

fehler 14:17:50.778478 +0200 com.apple.WebKit.Networking TIC Read Status [2826:0x7fb5335821b0]: 1:57

fehler 14:17:50.778521 +0200 com.apple.WebKit.Networking TIC Read Status [2826:0x7fb5335821b0]: 1:57

fehler 14:17:53.236024 +0200 com.apple.WebKit.Networking TIC Read Status [2824:0x7fb538337070]: 1:57

fehler 14:17:53.236175 +0200 com.apple.WebKit.Networking TIC Read Status [2824:0x7fb538337070]: 1:57

fehler 14:17:53.236212 +0200 com.apple.WebKit.Networking TIC Read Status [2824:0x7fb538337070]: 1:57

fehler 14:17:56.615522 +0200 com.apple.WebKit.Networking TIC Read Status [2859:0x7fb5386be250]: 1:57

fehler 14:17:56.615673 +0200 com.apple.WebKit.Networking TIC Read Status [2859:0x7fb5386be250]: 1:57

fehler 14:17:56.615709 +0200 com.apple.WebKit.Networking TIC Read Status [2859:0x7fb5386be250]: 1:57

fehler 14:17:59.074069 +0200 com.apple.WebKit.Networking TIC Read Status [2857:0x7fb5382df340]: 1:57

fehler 14:17:59.074134 +0200 com.apple.WebKit.Networking TIC Read Status [2857:0x7fb5382df340]: 1:57

fehler 14:17:59.075320 +0200 com.apple.WebKit.Networking TIC Read Status [2857:0x0]: 1:57

fehler 14:18:00.609386 +0200 com.apple.WebKit.Networking TIC Read Status [2761:0x7fb53864a880]: 1:57



PS: Die App griff auf eine interne Gerät API zurück.

Kommentar schreiben

Kommentare: 1
  • #1

    Clar34k (Freitag, 25 Mai 2018 08:42)

    Der Log sieht aber eigentlich ganz normal aus. Liegt das daran, dass die eigentliche Exceptions innerhalb der Sandbox ist? Ich denke nämlich schon.

Click the button

Chance of Elysion | Buy my book now:

Chance of Elysion | There is only one step at a time, so Cooper manages to find some relief knowing that there is only one intruder.  Still, the unknown whereabouts of O`Brien keep him at the edge, making him lean some more out of his hideout towards the
Me with my book | Chance of Elysion | There is only one step at a time, so Cooper manages to find some relief knowing that there is only one intruder. Still, the unknown whereabouts of O`Brien keep him at the edge, making him lean some more out of his hi

TRAPPIST-1 E is a new chance for humanity and scientists finally found a way how to reach that place. In Elysion town they build the first human colony outside of earths star- system. But shortly before arriving on TRAPPIST-1 E, they meet an old friend: Greed and Hate. There is an explosion on the colony ship and on the planet the colony is repeatedly attacked for no reason by traitors, the separatists. When the Separatists send an encrypted signal to Earth, the mayor of Elysion Town, Cooper, begins the rescue of the colony from which they fled from Earth. Can humanity change or is this its nature? Cooper needs to rescue his daughter Sophie from the hands of the separatists and wants to keep her, as well as her little sister Shannon, from suddenly becoming a copy of the destroyed and exploited first earth.

Chance of Elysion | An event like this was supposed to happen. A revolution is always waiting to explode. | TRAPPIST-1 E is a new chance for humanity and scientists finally found a way how to reach that place. In Elysion town they build the first human co
Chance of Elysion by Severin Kämpfer


KONTAKT

Bitte den Code eingeben:

Hinweis: Bitte die mit * gekennzeichneten Felder ausfüllen.


ADCELL

Hey! Thats me!

Severin Kämpfer Bremgarten bei Bern

17 years old trekkie.

Persönliche Webseite:

https://www.severin-kaempfer.ch

Unterstütze KKTVCAM mit 1 CHF! Bezahle mit Bitcoin!



Made with ♥ in Bern (Switzerland)!

KKTVCAM ÜBERNIMMT KEINE HAFTUNG FÜR ALLE ANGABEN AUF DIESER SEITE.