Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing fails without space at end of file #306

Closed
anden3 opened this issue Sep 9, 2016 · 9 comments
Closed

Parsing fails without space at end of file #306

anden3 opened this issue Sep 9, 2016 · 9 comments
Assignees
Labels
confirmed kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Milestone

Comments

@anden3
Copy link

anden3 commented Sep 9, 2016

On parsing of this JSON file:

{"AmbientOcclusion":false,"AnisotropicFiltering":16,"FOV":90,"FullScreen":true,"MipmapLevel":4,"RenderDistance":4,"VSync":true,"WindowResX":1920,"WindowResY":1080}

With the code:

std::ifstream file("settings.json");

if (!file.good()) {
    return;
}

nlohmann::json config = nlohmann::json::parse(file);

json::parse gives this error:

Process:               Craftmine [19600]
Path:                  /Users/USER/Documents/*/Craftmine.app/Contents/MacOS/Craftmine
Identifier:            Craftmine
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Craftmine [19600]
User ID:               501

Date/Time:             2016-09-09 08:41:00.108 +0200
OS Version:            Mac OS X 10.11.4 (15E65)
Report Version:        11
Anonymous UUID:        2D504478-6FE7-A397-01FA-0B1778B24743

Sleep/Wake UUID:       CDB74FE7-3618-451D-AC69-3B10FF4AA8BC

Time Awake Since Boot: 240000 seconds
Time Since Wake:       820 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
terminating with uncaught exception of type std::invalid_argument: parse error - unexpected end of input; expected '}'

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff9dac6f06 __pthread_kill + 10
1   libsystem_pthread.dylib         0x00007fff8b8634ec pthread_kill + 90
2   libsystem_c.dylib               0x00007fff89a9e6e7 abort + 129
3   libc++abi.dylib                 0x00007fff982f5f81 abort_message + 257
4   libc++abi.dylib                 0x00007fff9831ba2f default_terminate_handler() + 243
5   libobjc.A.dylib                 0x00007fff93c836c3 _objc_terminate() + 124
6   libc++abi.dylib                 0x00007fff9831919e std::__terminate(void (*)()) + 8
7   libc++abi.dylib                 0x00007fff98318c12 __cxa_throw + 121
8   Craftmine                       0x000000010cea25b4 nlohmann::basic_json, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>::parser::expect(nlohmann::basic_json, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>::lexer::token_type) const + 2660 (json.hpp:9241)
9   Craftmine                       0x000000010cea13d2 nlohmann::basic_json, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>::parser::parse_internal(bool) + 1266 (json.hpp:9107)
10  Craftmine                       0x000000010ce9faa6 nlohmann::basic_json, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>::parser::parse() + 70 (json.hpp:9021)
11  Craftmine                       0x000000010d01f423 nlohmann::basic_json, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>::parse(std::__1::basic_istream >&, std::__1::function, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>::parse_event_t, nlohmann::basic_json, std::__1::allocator >, bool, long long, unsigned long long, double, std::__1::allocator>&)>) + 131 (json.hpp:5964)
12  Craftmine                       0x000000010d012b13 Parse_Config() + 2707 (main.cpp:263)
13  Craftmine                       0x000000010d011a55 main + 37 (main.cpp:155)
14  libdyld.dylib                   0x00007fff92be15ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff9dac7efa kevent_qos + 10
1   libdispatch.dylib               0x00007fff94de0165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib               0x00007fff94ddfdcd _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib          0x00007fff9dac75e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8b860578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff8b85e341 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff9dac75e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8b860578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff8b85e341 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff9dac75e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8b860578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff8b85e341 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff9dac0fc6 semaphore_timedwait_trap + 10
1   libdispatch.dylib               0x00007fff94de5c67 _dispatch_semaphore_wait_slow + 149
2   libdispatch.dylib               0x00007fff94ddfd1b _dispatch_worker_thread + 148
3   libsystem_pthread.dylib         0x00007fff8b86099d _pthread_body + 131
4   libsystem_pthread.dylib         0x00007fff8b86091a _pthread_start + 168
5   libsystem_pthread.dylib         0x00007fff8b85e351 thread_start + 13

Thread 6:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib          0x00007fff9dac0f72 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff9dac03b3 mach_msg + 55
2   com.apple.audio.CoreAudio       0x00007fff92aad5ee HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned int, unsigned int, mach_msg_header_t*, bool, unsigned int) + 98
3   com.apple.audio.CoreAudio       0x00007fff92aad57c HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 42
4   com.apple.audio.CoreAudio       0x00007fff92aab939 HALC_ProxyIOContext::IOWorkLoop() + 1149
5   com.apple.audio.CoreAudio       0x00007fff92aab3ee HALC_ProxyIOContext::IOThreadEntry(void*) + 88
6   com.apple.audio.CoreAudio       0x00007fff92aab2c3 HALB_IOThread::Entry(void*) + 75
7   libsystem_pthread.dylib         0x00007fff8b86099d _pthread_body + 131
8   libsystem_pthread.dylib         0x00007fff8b86091a _pthread_start + 168
9   libsystem_pthread.dylib         0x00007fff8b85e351 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff52da3318  rdx: 0x0000000000000000
  rdi: 0x000000000000160b  rsi: 0x0000000000000006  rbp: 0x00007fff52da3340  rsp: 0x00007fff52da3318
   r8: 0x0000000000000004   r9: 0x00007fff9831ca53  r10: 0x0000000008000000  r11: 0x0000000000000206
  r12: 0x00007fff52da34a0  r13: 0x0000000000000000  r14: 0x00007fff79975000  r15: 0x00007fff52da3380
  rip: 0x00007fff9dac6f06  rfl: 0x0000000000000206  cr2: 0x00007fff7957d008
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


Binary Images:
       0x10ce5b000 -        0x10d0c8ff7 +Craftmine (0)  /Users/USER/Documents/*/Craftmine.app/Contents/MacOS/Craftmine
       0x10d1f3000 -        0x10d1faff7 +libenet.dylib (0) <9DEE11D2-1DFE-33F8-81A7-4432B9F82B91> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libenet.dylib
       0x10d205000 -        0x10d71dfff +libfreeimage.dylib (0) <59A40590-8D1F-3216-8B9B-AD644932F369> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libfreeimage.dylib
       0x10d808000 -        0x10d879ff7 +libfreetype.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libfreetype.dylib
       0x10d890000 -        0x10d8bdfff +libGLEW.2.0.0.dylib (0) <88D0700F-AD09-30C3-8D76-BD9CFC9DF859> /usr/local/opt/glew/lib/libGLEW.2.0.0.dylib
       0x10d8f8000 -        0x10d908ff7 +libglfw3.dylib (0) <05F70CDD-BF0D-3A95-88F4-7B99614E1950> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libglfw3.dylib
       0x10d91b000 -        0x10da19ff3 +libicuuc.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libicuuc.dylib
       0x10da84000 -        0x10da8dff7 +libnoise.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libnoise.dylib
       0x10da99000 -        0x10da9cfff +libogg.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libogg.dylib
       0x10daa6000 -        0x10dabefff +libSOIL.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libSOIL.dylib
       0x10dac7000 -        0x10daebfff +libvorbis.dylib (0) <137712A7-9E52-3B1C-AC00-F470A20C4C29> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libvorbis.dylib
       0x10daf7000 -        0x10dafcfff +libvorbisfile.dylib (0) <0E942679-E6DE-3154-B31F-E8CF37C0F2CB> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libvorbisfile.dylib
       0x10db03000 -        0x10db29ff7  com.apple.audio.OpenAL (1.8 - 1.8) <9C322240-9854-3114-98ED-6CAABD436EEB> /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
       0x10db41000 -        0x10db43fff +libboost_system.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libboost_system.dylib
       0x10db4d000 -        0x10db5bff7 +libboost_filesystem.dylib (0) <1982D008-B282-343B-816D-E7426BA20F9D> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libboost_filesystem.dylib
       0x10db6f000 -        0x10db92fe7 +libpng.dylib (0)  /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libpng.dylib
       0x10db9f000 -        0x10f41afff +libicudata.dylib (0) <712A2580-726D-3126-A7F9-25954F3FB07C> /Users/USER/Documents/*/Craftmine.app/Contents/Libraries/libicudata.dylib
       0x10f6e7000 -        0x10f6ebfff  com.apple.audio.AppleHDAHALPlugIn (274.7 - 274.7) <2CEBD69A-DD77-3B0F-958B-72521D9E49D4> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
       0x111912000 -        0x111a42ffb  com.apple.audio.units.Components (1.13 - 1.13) <1C4A84C5-11AE-3914-BD30-D066114778D2> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    0x7fff604b9000 -     0x7fff604f00d7  dyld (360.21)  /usr/lib/dyld
    0x7fff8939f000 -     0x7fff893b5ff7  libLinearAlgebra.dylib (1162.2)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff8947d000 -     0x7fff894e8ff7  com.apple.framework.CoreWLAN (11.0 - 1101.20) <3B35C543-7FCE-333F-80C1-432FA41DDCDE> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
    0x7fff8953a000 -     0x7fff8962afff  libJP2.dylib (1444) <27371567-A122-3217-ADA0-3A446EF6A3E9> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff89698000 -     0x7fff896c7ffb  libsystem_m.dylib (3105) <08E1A4B2-6448-3DFE-A58C-ACC7335BE7E4> /usr/lib/system/libsystem_m.dylib
    0x7fff896f7000 -     0x7fff89702fff  libGL.dylib (12.0.40.6) <4FC6D3F9-6582-3E7D-A7D1-E035F0E26697> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff89754000 -     0x7fff8976fff7  libCRFSuite.dylib (34) <078B4CD8-6A8C-3067-B2BA-0C2A0BAB8AC3> /usr/lib/libCRFSuite.dylib
    0x7fff8978c000 -     0x7fff89797fff  libkxld.dylib (3248.40.184) <6F776D34-D06C-3C48-B753-D0FB375A4A8A> /usr/lib/system/libkxld.dylib
    0x7fff89a39000 -     0x7fff89a3cff7  libCoreFSCache.dylib (119.5) <2389D7DA-B8EF-3EB4-AAAF-FBEDE01CDECA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
    0x7fff89a40000 -     0x7fff89acdfff  libsystem_c.dylib (1082.20.4)  /usr/lib/system/libsystem_c.dylib
    0x7fff89ace000 -     0x7fff89ad0ff7  libRadiance.dylib (1444)  /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff89ad1000 -     0x7fff89ad1fff  libmetal_timestamp.dylib (600.0.44.1) <6576F284-BACA-332A-A6E7-FA1C347636E3> /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
    0x7fff89dee000 -     0x7fff89fb4fe7  com.apple.ImageIO.framework (3.3.0 - 1444) <54F18254-F31B-3464-BB51-BAF9E9620419> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff89fb5000 -     0x7fff89fcfff3  liblzma.5.dylib (10)  /usr/lib/liblzma.5.dylib
    0x7fff89fd0000 -     0x7fff8a020ff7  com.apple.Symbolication (1.4 - 58044)  /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff8a335000 -     0x7fff8a336ffb  libSystem.B.dylib (1226.10.1)  /usr/lib/libSystem.B.dylib
    0x7fff8a337000 -     0x7fff8a35efff  com.apple.ChunkingLibrary (167 - 167)  /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff8a3f1000 -     0x7fff8a3f5fff  libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
    0x7fff8a919000 -     0x7fff8a9c9fff  com.apple.backup.framework (1.7.4 - 1.7.4)  /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff8a9d5000 -     0x7fff8a9daff7  libheimdal-asn1.dylib (453.40.10) <981DE40B-FA16-36F7-BE92-8C8A115D6CD9> /usr/lib/libheimdal-asn1.dylib
    0x7fff8a9db000 -     0x7fff8aa00ff7  libPng.dylib (1444) <47ACF98D-B5F1-3A03-B6FD-4107D5FAE5E9> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff8aaec000 -     0x7fff8ad82fff  libmecabra.dylib (696.5)  /usr/lib/libmecabra.dylib
    0x7fff8ad83000 -     0x7fff8b17ffff  libLAPACK.dylib (1162.2) <987E42B0-5108-3065-87F0-9DF7616A8A06> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff8b1f3000 -     0x7fff8b1fffff  com.apple.speech.synthesis.framework (5.4.12 - 5.4.12) <71DA00B8-5EA2-326B-8814-59DB25512F65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff8b4c2000 -     0x7fff8b4c6fff  libpam.2.dylib (20)  /usr/lib/libpam.2.dylib
    0x7fff8b4c7000 -     0x7fff8b4d2ff7  libcommonCrypto.dylib (60075.40.2)  /usr/lib/system/libcommonCrypto.dylib
    0x7fff8b4dc000 -     0x7fff8b4e1ff3  libunwind.dylib (35.3)  /usr/lib/system/libunwind.dylib
    0x7fff8b4e2000 -     0x7fff8b4eafff  com.apple.NetFS (6.0 - 4.0) <842A5346-24C3-3F22-9ECF-E586A10EA1F2> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff8b67b000 -     0x7fff8b69aff7  com.apple.framework.Apple80211 (11.0 - 1121.34)  /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x7fff8b75f000 -     0x7fff8b7d6feb  libcorecrypto.dylib (335.40.8) <9D300121-CAF8-3894-8774-DF38FA65F238> /usr/lib/system/libcorecrypto.dylib
    0x7fff8b83a000 -     0x7fff8b845ff7  libChineseTokenizer.dylib (16) <79B8C67A-3061-3C78-92CD-4650719E68D4> /usr/lib/libChineseTokenizer.dylib
    0x7fff8b85d000 -     0x7fff8b866ff7  libsystem_pthread.dylib (138.10.4) <3DD1EF4C-1D1B-3ABF-8CC6-B3B1CEEE9559> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8b867000 -     0x7fff8bbbbfff  com.apple.Foundation (6.9 - 1258) <51833143-6CAE-3E1C-9FBA-BCDEB48D4ADF> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff8bc4a000 -     0x7fff8bc52ffb  libsystem_dnssd.dylib (625.40.20) <86A05653-DCA0-3345-B29F-F320029AA05E> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8bcce000 -     0x7fff8bcd7ff3  libsystem_notify.dylib (150.40.1)  /usr/lib/system/libsystem_notify.dylib
    0x7fff8c569000 -     0x7fff8c56cfff  libCoreVMClient.dylib (119.5) <560D70FB-709F-3030-96C9-F249FCB7DA6D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8c97d000 -     0x7fff8c9d2fff  com.apple.AE (701 - 701)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff8ccef000 -     0x7fff8cd3bffb  com.apple.HIServices (1.22 - 549)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff8cd3c000 -     0x7fff8cd3dfff  liblangid.dylib (122) <9CC4F0D1-5C51-3B69-BC8F-EE3A51FD0822> /usr/lib/liblangid.dylib
    0x7fff8cd3e000 -     0x7fff8cd3fffb  libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
    0x7fff8cd4c000 -     0x7fff8cd58fff  com.apple.SpeechRecognitionCore (2.2.7 - 2.2.7) <6BA06290-D4A3-351C-87F9-B61EF61FF055> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
    0x7fff8cd87000 -     0x7fff8cd8cff7  libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
    0x7fff8cd8d000 -     0x7fff8cd8efff  libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8cd92000 -     0x7fff8cdeefff  libTIFF.dylib (1444) <2A22E6B7-213B-3253-838F-C3EC3C8F2727> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff8cdef000 -     0x7fff8cf14ff7  com.apple.LaunchServices (728.8 - 728.8)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff8cf15000 -     0x7fff8cf20fff  com.apple.CrashReporterSupport (10.11 - 717) <474544AD-1199-3ECC-90E5-071847BA72C6> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff8cf21000 -     0x7fff8cf23ff7  libquarantine.dylib (80) <0F4169F0-0C84-3A25-B3AE-E47B3586D908> /usr/lib/system/libquarantine.dylib
    0x7fff8cf24000 -     0x7fff8d352fff  com.apple.vision.FaceCore (3.3.1 - 3.3.1)  /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff8d353000 -     0x7fff8d35fff7  com.apple.OpenDirectory (10.11 - 194) <31A67AD5-5CC2-350A-96D7-821DF4BC4196> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff8d360000 -     0x7fff8d655fff  com.apple.HIToolbox (2.1.1 - 807.2) <871E5223-5D03-3649-98AF-9CCA3B41E307> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff8d974000 -     0x7fff8ebbffeb  com.apple.CoreGraphics (1.600.0 - 957) <8C9F8E1A-274C-36CE-93FB-49906A9B9EE2> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff8ebd5000 -     0x7fff8ec6bfff  com.apple.ColorSync (4.9.0 - 4.9.0) <8FC37E20-6579-3CB2-9D49-BC39FC38DF87> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff8f4ce000 -     0x7fff8f50cff7  libGLImage.dylib (12.0.40.6) <734B133F-E789-3A25-9DE6-1CCBA4896D4D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff8f52f000 -     0x7fff8f537fff  libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff8f56f000 -     0x7fff8f73dff3  com.apple.QuartzCore (1.11 - 410.14) <0283748A-8318-36AC-8B30-8A951FEB305A> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff8f73e000 -     0x7fff8f745ff7  libcompiler_rt.dylib (62)  /usr/lib/system/libcompiler_rt.dylib
    0x7fff8f76b000 -     0x7fff8f7b1ff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
    0x7fff8f8cb000 -     0x7fff904f4fff  com.apple.AppKit (6.9 - 1404.46) <2492D315-76B6-320B-B542-231FCA44CA48> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff90551000 -     0x7fff90596ff7  com.apple.coreservices.SharedFileList (24.4 - 24.5) <1D2AD77B-778F-3253-A295-3D0A32A8121C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff90612000 -     0x7fff90687fff  com.apple.framework.IOKit (2.0.2 - 1179.40.20)  /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff90688000 -     0x7fff90893fff  libFosl_dynamic.dylib (16.24) <5F9DB82D-FD4B-3952-8531-CE020F93ED49> /usr/lib/libFosl_dynamic.dylib
    0x7fff90ae1000 -     0x7fff90af2fff  libSparseBLAS.dylib (1162.2)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff90af3000 -     0x7fff90d8dfff  com.apple.security (7.0 - 57337.40.85) <7C5B8DEF-3D02-3410-9BD3-2B1251F84D4B> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff911e8000 -     0x7fff911e8fff  libOpenScriptingUtil.dylib (169.1)  /usr/lib/libOpenScriptingUtil.dylib
    0x7fff911e9000 -     0x7fff91367fff  com.apple.UIFoundation (1.0 - 436.1)  /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
    0x7fff913a0000 -     0x7fff91406ff7  libsystem_network.dylib (583.40.20) <269E5ADD-6922-31E2-8D55-7B777263AC0D> /usr/lib/system/libsystem_network.dylib
    0x7fff91458000 -     0x7fff9145cfff  libGIF.dylib (1444)  /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff9150e000 -     0x7fff91548fff  com.apple.QD (3.12 - 302) <0FE53180-2895-3D14-A1E7-F82DE1D106E1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff915af000 -     0x7fff915d8ff7  libxslt.1.dylib (14.1) <27DE3F2E-CE96-3327-A563-788EE3E2775B> /usr/lib/libxslt.1.dylib
    0x7fff915db000 -     0x7fff915defff  libsystem_sandbox.dylib (460.40.33) <30671DCC-265F-325A-B33D-11CD336B3DA3> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff915e4000 -     0x7fff91633ff7  com.apple.opencl (2.7.0 - 2.7.0) <307263BA-0368-38C9-A7FB-25920343D0DF> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff916ef000 -     0x7fff91729ff7  com.apple.DebugSymbols (132 - 132) <23A42C53-B941-3871-9EE2-4C87A46005B5> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff9172a000 -     0x7fff917cefff  com.apple.Bluetooth (4.4.4 - 4.4.4f4)  /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x7fff91b4f000 -     0x7fff91b66fff  libmarisa.dylib (4)  /usr/lib/libmarisa.dylib
    0x7fff91b67000 -     0x7fff91b67fff  com.apple.ApplicationServices (48 - 48)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff91b68000 -     0x7fff91b91ff7  libxpc.dylib (765.40.36) <2CC7CF36-66D4-301B-A6D8-EBAE7405B008> /usr/lib/system/libxpc.dylib
    0x7fff91b9a000 -     0x7fff91c23ff7  com.apple.PerformanceAnalysis (1.0 - 1) <608E8C50-6F59-3FEB-B822-D9B02F328716> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff91c88000 -     0x7fff91cf7fff  com.apple.datadetectorscore (7.0 - 460) <8EF4EECC-4FF1-36DF-84CF-65545555A225> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff92114000 -     0x7fff92122fff  libxar.1.dylib (302) <03207F66-2C4A-3DBD-8D81-70F4C85903C4> /usr/lib/libxar.1.dylib
    0x7fff92a58000 -     0x7fff92a6fff7  libsystem_asl.dylib (323.40.3) <007F9094-317A-33EA-AF62-BAEAAB48C0F7> /usr/lib/system/libsystem_asl.dylib
    0x7fff92a83000 -     0x7fff92ad4ff7  com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <3D62A9B3-67A8-3F8A-A102-05E310249075> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff92b4a000 -     0x7fff92b4afff  com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <054DFE32-737D-3211-9A14-0FC5E1A880E3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff92bde000 -     0x7fff92be1ffb  libdyld.dylib (360.21) <8390E026-F7DE-3C32-9486-3DFF6BD131B0> /usr/lib/system/libdyld.dylib
    0x7fff92be4000 -     0x7fff92bf3ffb  com.apple.LangAnalysis (1.7.0 - 1.7.0) <18D21123-A3E7-3851-974A-08E5D4540475> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff92c0e000 -     0x7fff92c14ff7  com.apple.speech.recognition.framework (5.1.1 - 5.1.1) <9E5A980A-F455-32D5-BBEE-3BD6018CC45E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff92d01000 -     0x7fff92e68fff  libBLAS.dylib (1162.2)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff92f6a000 -     0x7fff92f6cff7  libsystem_configuration.dylib (802.40.13) <3DEB7DF9-6804-37E1-BC83-0166882FF0FF> /usr/lib/system/libsystem_configuration.dylib
    0x7fff92f6d000 -     0x7fff92fb9fff  com.apple.print.framework.PrintCore (11.2 - 472.2) <5AE8AA6B-CE09-397D-B0D4-0F9CCBF1F77D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff92fea000 -     0x7fff9320bff7  com.apple.CoreImage (11.4.0 - 366.4.19) <6EE4A686-50C8-3D77-A036-BE8AA0F8A2FD> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff9320c000 -     0x7fff9320cfff  com.apple.Accelerate (1.10 - Accelerate 1.10) <185EC96A-5AF0-3620-A4ED-4D3654D25B39> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff93210000 -     0x7fff9321eff7  libbz2.1.0.dylib (38) <28E54258-C0FE-38D4-AB76-1734CACCB344> /usr/lib/libbz2.1.0.dylib
    0x7fff93276000 -     0x7fff93276fff  libenergytrace.dylib (10.40.1) <0A491CA7-3451-3FD5-999A-58AB4362682B> /usr/lib/libenergytrace.dylib
    0x7fff9327e000 -     0x7fff932ecff7  com.apple.ApplicationServices.ATS (377 - 394.3) <847DBFBA-8D6B-367B-99FD-C6CAA8C05C65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff932fc000 -     0x7fff933a3fff  com.apple.LanguageModeling (1.0 - 1) <58C18A47-BDE7-3CBE-81C0-797029D170A1> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff933a4000 -     0x7fff933a4fff  com.apple.Cocoa (6.11 - 22) <807787AB-D231-3F51-A99B-A9314623C571> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff933a5000 -     0x7fff933a7fff  libCVMSPluginSupport.dylib (12.0.40.6) <4AA6710A-6267-3062-BFF2-27DB5E6B5892> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff933a8000 -     0x7fff935b5fff  libicucore.A.dylib (551.51) <35315A29-E21C-3CC5-8BD6-E07A3AE8FC0D> /usr/lib/libicucore.A.dylib
    0x7fff935b6000 -     0x7fff936c4ff3  com.apple.desktopservices (1.10.3 - 1.10.3) <3A6906D4-C0B8-30D1-B589-0466E5E42B69> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff93c70000 -     0x7fff93fd2f3f  libobjc.A.dylib (680) <7489D2D6-1EFD-3414-B18D-2AECCCC90286> /usr/lib/libobjc.A.dylib
    0x7fff93fd3000 -     0x7fff940c2ffb  libxml2.2.dylib (29.5) <4096C2EA-6659-3F22-AC60-1E2F30BDD2B7> /usr/lib/libxml2.2.dylib
    0x7fff94448000 -     0x7fff944e8fff  com.apple.Metadata (10.7.0 - 972.29.1)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff944f2000 -     0x7fff9450efff  com.apple.GenerationalStorage (2.0 - 239.1) <8C821448-4294-3736-9CEF-467C93785CB9> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff946e0000 -     0x7fff94722ff7  com.apple.Metal (56.6 - 56.6) <7DCBE573-B713-3C50-A16E-2F33A84C3CFB> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
    0x7fff94723000 -     0x7fff9472cff7  com.apple.CommonAuth (4.0 - 2.0) <4B8673E1-3697-3FE2-8D30-AC7AC5D4F8BF> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff94971000 -     0x7fff9498dff7  libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
    0x7fff94c84000 -     0x7fff94d0cfff  com.apple.CoreSymbolication (3.1 - 58048.1) <4730422E-4178-34F9-8550-BB92F2A4F44B> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff94dc6000 -     0x7fff94dd7ff7  libsystem_trace.dylib (201.10.3) <25104542-5251-3E8D-B14A-9E37207218BC> /usr/lib/system/libsystem_trace.dylib
    0x7fff94dd8000 -     0x7fff94e05fff  libdispatch.dylib (501.40.12)  /usr/lib/system/libdispatch.dylib
    0x7fff94ea7000 -     0x7fff94ef8ff7  libcups.2.dylib (435.1) <4198A94D-A46C-39AA-92B6-83D0BA507D6C> /usr/lib/libcups.2.dylib
    0x7fff94f23000 -     0x7fff94f3dfff  com.apple.Kerberos (3.0 - 1) <1B4744BF-E5AE-38E2-AA56-E22D3270F2E8> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff94f3e000 -     0x7fff94f3efff  com.apple.CoreServices (728.9 - 728.9) <78CB3EAC-A66E-3FD9-A1DF-A9CF227ED3C3> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff958fb000 -     0x7fff95901fff  com.apple.IOAccelerator (205.3 - 205.3) <851B6BF8-5B7F-3FB5-9E45-10AAE3BF7438> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x7fff95902000 -     0x7fff9591fff7  com.apple.AppleVPAFramework (2.1.2 - 2.1.2)  /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
    0x7fff95920000 -     0x7fff959b5fff  com.apple.ink.framework (10.9 - 214) <1F76CF36-3F79-36B8-BC37-C540AF34B338> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff95a71000 -     0x7fff95a79fff  com.apple.CoreServices.FSEvents (1223.10.1 - 1223.10.1) <7F5B7A23-BC1D-3FA9-A9B8-D534F1E1979A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff95be7000 -     0x7fff95c03ff3  libresolv.9.dylib (60)  /usr/lib/libresolv.9.dylib
    0x7fff95c39000 -     0x7fff95c39ff7  libunc.dylib (29)  /usr/lib/system/libunc.dylib
    0x7fff95ca3000 -     0x7fff95cd4fff  com.apple.GSS (4.0 - 2.0)  /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff95cde000 -     0x7fff95d00ff7  com.apple.Sharing (442.13.6 - 442.13.6)  /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
    0x7fff95ff0000 -     0x7fff96277ff7  com.apple.CFNetwork (760.4.2 - 760.4.2) <24C4A390-3079-358A-8D51-75A3E818A6DF> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff96369000 -     0x7fff96392fff  libsystem_info.dylib (477.40.5) <6B01C09E-A3E5-3C71-B370-D0CABD11A436> /usr/lib/system/libsystem_info.dylib
    0x7fff96399000 -     0x7fff963aaff7  libz.1.dylib (61.20.1)  /usr/lib/libz.1.dylib
    0x7fff963bf000 -     0x7fff964cefe7  libvDSP.dylib (563.5) <9AB6CA3C-4F0E-35E6-9184-9DF86E7C3DAD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff96550000 -     0x7fff968e5fdb  com.apple.vImage (8.0 - 8.0) <4BAC9B6F-7482-3580-8787-AB0A5B4D331B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff968e6000 -     0x7fff968f0fff  com.apple.NetAuth (6.0 - 6.0)  /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff969b4000 -     0x7fff969b4ff7  libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
    0x7fff969b5000 -     0x7fff969e4ff7  com.apple.DictionaryServices (1.2 - 250.3) <30250542-CBAA-39C1-91AA-B57A5DE17594> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff96cdb000 -     0x7fff96d1cff7  libGLU.dylib (12.0.40.6)  /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff96d1d000 -     0x7fff96d1ffff  com.apple.xpc.ServiceManagement (1.0 - 1)  /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff96d20000 -     0x7fff96d25fff  com.apple.TCC (1.0 - 1) <50F7EC60-5B21-3B9B-BF2F-F037EA7B12FB> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff96e52000 -     0x7fff96e7dffb  libarchive.2.dylib (33.20.2) <6C370A21-63FD-3A68-B4B3-5333F24B770B> /usr/lib/libarchive.2.dylib
    0x7fff96e8b000 -     0x7fff96effff7  com.apple.Heimdal (4.0 - 2.0) <5D365381-8B5E-3259-8867-FC4A7D307BDE> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff96f51000 -     0x7fff96f5ffff  com.apple.opengl (12.0.40 - 12.0.40)  /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff96ff7000 -     0x7fff9702fff7  com.apple.RemoteViewServices (2.0 - 101)  /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff974cc000 -     0x7fff974eefff  com.apple.IconServices (68.1 - 68.1)  /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff97573000 -     0x7fff9758aff7  libsystem_coretls.dylib (83.40.5)  /usr/lib/system/libsystem_coretls.dylib
    0x7fff9776b000 -     0x7fff9777efff  com.apple.CoreBluetooth (1.0 - 1)  /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
    0x7fff97793000 -     0x7fff97793fff  com.apple.audio.units.AudioUnit (1.13 - 1.13) <93C1D642-37D4-3692-AD35-DCAD04F9610B> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff97c68000 -     0x7fff97c69fff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff97c72000 -     0x7fff980e8fff  com.apple.CoreFoundation (6.9 - 1258.1) <943A1383-DA6A-3DC0-ABCD-D9AEB3D0D34D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff9815f000 -     0x7fff981ecdd7  com.apple.AppleJPEG (1.0 - 1) <558ACADA-C41F-3EEF-82A0-C2D7B13C5428> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
    0x7fff982f5000 -     0x7fff9831efff  libc++abi.dylib (125)  /usr/lib/libc++abi.dylib
    0x7fff98323000 -     0x7fff98347fff  com.apple.MultitouchSupport.framework (304.10.2 - 304.10.2)  /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff98348000 -     0x7fff98361fff  com.apple.CFOpenDirectory (10.11 - 194) <11F95672-55E0-3F9D-9171-5E8C56AEE948> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff983b8000 -     0x7fff983bafff  com.apple.loginsupport (1.0 - 1) <9B2F5F9B-ED38-313F-B798-D2B667BCD6B5> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff984a2000 -     0x7fff98648ff7  com.apple.audio.toolbox.AudioToolbox (1.13 - 1.13) <082319FC-59F2-3D36-AC9B-94759724E302> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff9864c000 -     0x7fff98931ffb  com.apple.CoreServices.CarbonCore (1136.2 - 1136.2) <2DBAFC9A-6CD6-351D-B1F4-87D81AA6D640> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff98932000 -     0x7fff98977ff3  libFontRegistry.dylib (155.1)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff9aced000 -     0x7fff9ad4bfff  com.apple.SystemConfiguration (1.14 - 1.14) <10082F58-6190-3A7C-8B6C-C12B16DC793A> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff9b5ca000 -     0x7fff9b5cdfff  com.apple.IOSurface (108.2.1 - 108.2.1)  /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff9c350000 -     0x7fff9c358fef  libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
    0x7fff9c359000 -     0x7fff9c44bff7  libiconv.2.dylib (44)  /usr/lib/libiconv.2.dylib
    0x7fff9c49e000 -     0x7fff9c4affff  libcmph.dylib (6)  /usr/lib/libcmph.dylib
    0x7fff9c8eb000 -     0x7fff9c9e7ff7  libFontParser.dylib (158.5) <62796E99-36B7-36B6-8D33-5349F88014C3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff9cfcb000 -     0x7fff9d0f8ff3  com.apple.CoreText (352.0 - 494.11) <08E8640E-6602-3A00-BC28-94235FD311B4> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff9d326000 -     0x7fff9d35aff7  com.apple.CoreVideo (1.8 - 191.3) <1AA24A1B-CB84-3F6B-B6DE-11494542649C> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff9d35b000 -     0x7fff9d3b8fff  com.apple.CoreServices.OSServices (728.8 - 728.8) <4CE49D8A-8304-3347-9379-6075CB906419> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff9d462000 -     0x7fff9d4d6ff3  com.apple.securityfoundation (6.0 - 55126) <1F6BDF18-3CF0-3E85-8D9B-0663599B9949> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff9d544000 -     0x7fff9d549fff  com.apple.DiskArbitration (2.7 - 2.7)  /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff9d714000 -     0x7fff9d71cfff  libGFXShared.dylib (12.0.40.6) <1CDE5AEF-3E44-3547-879E-BB490EE7702C> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff9d797000 -     0x7fff9d7c5ff7  com.apple.CoreServicesInternal (248.2 - 248.2) <6E111F0A-D7F1-3738-ADE7-CF983BD4EC8B> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff9d856000 -     0x7fff9d8a9ff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff9d8aa000 -     0x7fff9d8c2fef  libcompression.dylib (28)  /usr/lib/libcompression.dylib
    0x7fff9da5c000 -     0x7fff9da5cff7  liblaunch.dylib (765.40.36) <1CD7619D-AF2E-34D1-8EC6-8021CF473D9B> /usr/lib/system/liblaunch.dylib
    0x7fff9da71000 -     0x7fff9da73fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff9da9f000 -     0x7fff9daaffff  libbsm.0.dylib (34) <7E14504C-A8B0-3574-B6EB-5D5FABC72926> /usr/lib/libbsm.0.dylib
    0x7fff9dab0000 -     0x7fff9daceff7  libsystem_kernel.dylib (3248.40.184) <88C17B7F-1CD8-3979-A1A9-F7BDB4FCE789> /usr/lib/system/libsystem_kernel.dylib
    0x7fff9dacf000 -     0x7fff9daf3fff  libJPEG.dylib (1444)  /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff9dd40000 -     0x7fff9de64fff  libsqlite3.dylib (216.4) <280D67B8-F93D-3587-A146-19F36C817548> /usr/lib/libsqlite3.dylib
    0x7fff9dec4000 -     0x7fff9dec5fff  libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib
    0x7fff9df9a000 -     0x7fff9e001fff  com.apple.framework.CoreWiFi (11.0 - 1101.20) <993592F1-B3F1-3FAD-87BD-EA83C361BCCF> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
    0x7fff9e14c000 -     0x7fff9e154fff  libcopyfile.dylib (127)  /usr/lib/system/libcopyfile.dylib
    0x7fff9e155000 -     0x7fff9e171ff7  libextension.dylib (78)  /usr/lib/libextension.dylib
    0x7fff9e19d000 -     0x7fff9e443ff7  com.apple.CoreData (120 - 641.3)  /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff9e444000 -     0x7fff9e4b3fff  com.apple.SearchKit (1.4.0 - 1.4.0)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff9f326000 -     0x7fff9f3d6fe7  libvMisc.dylib (563.5) <6D73C20D-D1C4-3BA5-809B-4B597C15AA86> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff9f3d7000 -     0x7fff9f521ff7  com.apple.coreui (2.1 - 366.1)  /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff9fa76000 -     0x7fff9fa79ffb  libScreenReader.dylib (426.42) <16FC79D1-4573-3E90-945F-CBA22D5185FD> /usr/lib/libScreenReader.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 168792
    thread_create: 0
    thread_set_state: 927

VM Region Summary:
ReadOnly portion of Libraries: Total=248.5M resident=0K(0%) swapped_out_or_unallocated=248.5M(100%)
Writable regions: Total=77.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=77.6M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                  2048K        2 
CG shared images                   144K        5 
Dispatch continuations            8192K        2 
Kernel Alloc Once                    4K        2 
MALLOC                            38.4M       15 
MALLOC guard page                   32K        7 
Memory Tag 249                     156K        2 
Process Corpse Info               2048K        2 
STACK GUARD                       56.0M        8 
Stack                             10.6M        8 
VM_ALLOCATE                         44K        6 
VM_ALLOCATE (reserved)              36K        2         reserved VM address space (unallocated)
__DATA                            17.1M      200 
__IMAGE                            528K        2 
__LINKEDIT                        94.4M       23 
__TEXT                           154.1M      198 
__UNICODE                          552K        2 
mapped file                       31.2M        5 
shared memory                     16.3M       11 
===========                     =======  ======= 
TOTAL                            431.7M      483 
TOTAL, minus reserved VM space   431.7M      483 

Model: MacBookAir6,2, BootROM MBA61.0099.B22, 2 processors, Intel Core i5, 1,3 GHz, 4 GB, SMC 2.13f15
Graphics: Intel HD Graphics 5000, Intel HD Graphics 5000, Built-In
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3230554638454455302D474E2D4620
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3230554638454455302D474E2D4620
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x117), Broadcom BCM43xx 1.0 (7.21.95.175.1a6)
Bluetooth: Version 4.4.4f4 17685, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0128F, 121,33 GB
USB Device: USB 3.0 Bus
USB Device: Card Reader
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Air, Apple Inc., 23.6

However, it succeeds when adding a space to the end of the JSON file.

Is this a bug, or something obvious that I've missed?

Here's an archive with a working file, and a broken file:
example_json_files.zip

@nlohmann
Copy link
Owner

nlohmann commented Sep 9, 2016

This surely sounds like a bug... I'll have a look.

@nlohmann nlohmann added this to the Release 2.0.4 milestone Sep 11, 2016
@nlohmann
Copy link
Owner

This is a bug in the fill_line_buffer function. It seems that the input file triggers a case that I have not thought of.

@nlohmann nlohmann self-assigned this Sep 11, 2016
@nlohmann
Copy link
Owner

I could fix the bug. The reason was that instead of checking for eof() of the stream, I checked for not operator!(). I wait for all tests to succeed and shall release version 2.0.4 with this fix today or tomorrow.

@asimonov
Copy link

asimonov commented Oct 2, 2017

I seem to experience this issues with version 2.1.1.
Using it on mac as well and see:

libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: parse error - unexpected '|'; expected end of input
Abort trap: 6

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2017

@asimonov This is strange, as we added a regression test for this and the issue has not come up until since. As your error message mentions a different character: how does your JSON file and the code that parses it looks like?

@asimonov
Copy link

asimonov commented Oct 2, 2017 via email

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2017

I'm not planning to make any fixes for 2.x.x any more, so I'm glad that changing to the develop version helps you. But it would be good to see what went wrong anyway.

@astromme
Copy link

astromme commented Nov 1, 2017

For other people who ended up here from google:

I was getting a similar error
libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: parse error - unexpected '}'; expected string literal

My issue was that I had a trailing comma after the last k:v pair before the }, which is invalid json.

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Nov 2, 2017
@nlohmann
Copy link
Owner

nlohmann commented Nov 2, 2017

I understand the error message is a bit tricky, because it describes the parser's expectation...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

4 participants