High Sierra + Python + Postgresql error: Illegal instruction: 4 - python

I can connect to Postgres via the command line no problem, however if I try to connect via Python using the psycopg2 module I get the error below. Interestingly I have just tried connecting with PSeqal.app and it crashes with the same error.
Environment:
MacOS: 10.13.3
Xcode 9.2
Python: 3.6.4
Connection module: psycopg2
Postgresql: 10.3
Script:
Here is my simple connection script which is trying to connect via Python to Postgresql:
def connect(self, params):
""" Connect to the PostgreSQL database server """
conn = None
try:
# connect to the PostgreSQL server
logging.info('Connecting to the PostgreSQL database...')
conn = psycopg2.connect(**params)
# create a cursor
self.cursor = conn.cursor()
except (Exception, psycopg2.DatabaseError) as error:
print(error)
finally:
if conn is not None:
conn.close()
logging.warning('Database connection closed.')
Error:
Script output:
$ python3 testdb.py
Illegal instruction: 4
Apple error (partial):
Process: Python [79534]
Path: /usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.6.4 (3.6.4)
Code Type: X86-64 (Native)
Parent Process: bash [657]
Responsible: Python [79534]
User ID: 501
Date/Time: 2018-03-02 15:30:27.642 +1300
OS Version: Mac OS X 10.13.3 (17D102)
Report Version: 12
Anonymous UUID: xx
Time Awake Since Boot: 21000 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [0]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libpq.5.10.dylib 0x00000001118e8d27 initPQExpBuffer + 32
1 libpq.5.10.dylib 0x00000001118dba93 PQconninfoParse + 43
2 _psycopg.cpython-36m-darwin.so 0x0000000111897cf1 psyco_parse_dsn + 113
3 org.python.python 0x000000010fd4681a _PyCFunction_FastCallDict + 463
4 org.python.python 0x000000010fdaad8e call_function + 489
5 org.python.python 0x000000010fda3c43 _PyEval_EvalFrameDefault + 4811
6 org.python.python 0x000000010fdab4f0 _PyEval_EvalCodeWithName + 1719
7 org.python.python 0x000000010fda293d PyEval_EvalCodeEx + 57
8 org.python.python 0x000000010fd2ec76 function_call + 339
9 org.python.python 0x000000010fd0e9f2 PyObject_Call + 101
10 org.python.python 0x000000010fda3eac _PyEval_EvalFrameDefault + 5428
11 org.python.python 0x000000010fdab4f0 _PyEval_EvalCodeWithName + 1719
12 org.python.python 0x000000010fda293d PyEval_EvalCodeEx + 57
13 org.python.python 0x000000010fd2ec76 function_call + 339
14 org.python.python 0x000000010fd0e9f2 PyObject_Call + 101
15 org.python.python 0x000000010fda3eac _PyEval_EvalFrameDefault + 5428
16 org.python.python 0x000000010fdabe93 _PyFunction_FastCall + 121
17 org.python.python 0x000000010fdaad65 call_function + 448
18 org.python.python 0x000000010fda3c43 _PyEval_EvalFrameDefault + 4811
19 org.python.python 0x000000010fdabe93 _PyFunction_FastCall + 121
20 org.python.python 0x000000010fd0eb71 _PyObject_FastCallDict + 196
21 org.python.python 0x000000010fd0ec94 _PyObject_Call_Prepend + 156
22 org.python.python 0x000000010fd0e9f2 PyObject_Call + 101
23 org.python.python 0x000000010fd598ae slot_tp_init + 57
24 org.python.python 0x000000010fd5683c type_call + 184
25 org.python.python 0x000000010fd0eb3c _PyObject_FastCallDict + 143
26 org.python.python 0x000000010fdaad5e call_function + 441
27 org.python.python 0x000000010fda3c43 _PyEval_EvalFrameDefault + 4811
28 org.python.python 0x000000010fdabe93 _PyFunction_FastCall + 121
29 org.python.python 0x000000010fd0eb71 _PyObject_FastCallDict + 196
30 org.python.python 0x000000010fd0ec94 _PyObject_Call_Prepend + 156
31 org.python.python 0x000000010fd0e9f2 PyObject_Call + 101
32 org.python.python 0x000000010fd598ae slot_tp_init + 57
33 org.python.python 0x000000010fd5683c type_call + 184
34 org.python.python 0x000000010fd0eb3c _PyObject_FastCallDict + 143
35 org.python.python 0x000000010fdaad5e call_function + 441
36 org.python.python 0x000000010fda3c43 _PyEval_EvalFrameDefault + 4811
37 org.python.python 0x000000010fdab4f0 _PyEval_EvalCodeWithName + 1719
38 org.python.python 0x000000010fda28fe PyEval_EvalCode + 42
39 org.python.python 0x000000010fdcb24e run_mod + 54
40 org.python.python 0x000000010fdca26f PyRun_FileExFlags + 160
41 org.python.python 0x000000010fdc994c PyRun_SimpleFileExFlags + 285
42 org.python.python 0x000000010fddd770 Py_Main + 3484
43 org.python.python 0x000000010fd01e1d 0x10fd00000 + 7709
44 libdyld.dylib 0x00007fff6c260115 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007f86c3db9200 rbx: 0x00007ffedfefe3a0 rcx: 0x0000000000000100 rdx: 0x0000000000010000
rdi: 0x0000000000000b93 rsi: 0x00000000ffff0001 rbp: 0x00007ffedfefe390 rsp: 0x00007ffedfefe380
r8: 0x000000006c3db930 r9: 0x000000000000000f r10: 0x00000000ffff0000 r11: 0x00007f86c3d00000
r12: 0x0000000110665738 r13: 0x0000000111c68510 r14: 0x0000000111cb80b0 r15: 0x00007ffedfefe3a0
rip: 0x00000001118e8d27 rfl: 0x0000000000010206 cr2: 0x00000001118ef90e
Logical CPU: 2
Error Code: 0x00000000
Trap Number: 6
What I have tried so far:
Upgraded Python to 3.6.4 from 3.5.1
Rebuilt all dependent libraries including psycopg2 to make sure they are High Sierra compatible (I hope)
Reinstalled Postgres from scratch
Upgraded Xcode + tools
So I'm at a bit of a loss as to what to try next? Has anyone else run into this? Any pointers to where to look? Anything that helps me get this working would be greatly appreciated thanks!

So it looked like the psycopg2 library was the culprit and this fixed it for me:
$pip3 uninstall psycopg2
...
Successfully uninstalled psycopg2-binary-2.7.4
$pip3 install psycopg2-binary --no-binary :all:
Collecting psycopg2-binary
Downloading psycopg2-binary-2.7.4.tar.gz (426kB)
100% |---| 430kB 649kB/s
Skipping bdist_wheel for psycopg2-binary, due to binaries being disabled for it.
Installing collected packages: psycopg2-binary
Running setup.py install for psycopg2-binary ... done
Successfully installed psycopg2-binary-2.7.4
$python3 test.py
Connecting to the PostgreSQL database...
All good.
Database connection closed.
The reason I believe is something to do with the fact I was trying to build psycopg2 on a 2010 era MBP specifically and it has a compatibility issue with the hardware - probably the 2.66 GHz Intel Core i7 processor this machine has.
Thank you #Laurenz Albe and #joop for quick replies, pointers and insights, you helped narrow me down to this answer which I hope will stay stable for the duration of this job ;) Cheers!

According to the stack trace, that error occurs in the PostgreSQL client, in this harmless piece of code:
/*
* initPQExpBuffer
*
* Initialize a PQExpBufferData struct (with previously undefined contents)
* to describe an empty string.
*/
void
initPQExpBuffer(PQExpBuffer str)
{
str->data = (char *) malloc(INITIAL_EXPBUFFER_SIZE);
if (str->data == NULL)
{
str->data = (char *) oom_buffer; /* see comment above */
str->maxlen = 0;
str->len = 0;
}
else
{
str->maxlen = INITIAL_EXPBUFFER_SIZE;
str->len = 0;
str->data[0] = '\0';
}
}
I found this and this question dealing with similar problems.
Illegal instruction should mean that execution encountered an instruction code that does not exist, which is either a compiler bug or means that the code was built for a processor with a different instruction set.
The problem is likely somewhere in the procedure with which PostgreSQL was built. You should bring this complaint to the packagers who built the binaries you are using.

Related

Mac m1 pyodbc.connect causes zsh: abort

When I run pyodbc.connect(...) my python crashes and I get zsh: abort error in terminal.
Running:
Mac M1 Pro Monterey
Python 3.8.9
Installed MS ODBC drivers (tried 17 and 18).
Tried running in base Python and virtual environments.
In base python, I get the following system error:
Translated Report (Full Report Below)
Process: Python [1869]
Path: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Identifier: com.apple.python3
Version: 3.8.9 (3.8.9)
Build Info: python3-103000000000000~1538
Code Type: ARM-64 (Native)
Parent Process: zsh [611]
Responsible: Terminal [80951]
User ID: 501
Date/Time: 2022-03-08 17:42:55.3063 +0200
OS Version: macOS 12.2.1 (21D62)
Report Version: 12
Anonymous UUID: 919246FC-3C09-6151-CCAB-05C65A4A9B63
Sleep/Wake UUID: 4CFF985F-843A-4C63-ABC8-97435300AADE
Time Awake Since Boot: 370000 seconds
Time Since Wake: 2014 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:
stack buffer overflow
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x18ff659b8 __pthread_kill + 8
1 libsystem_pthread.dylib 0x18ff98eb0 pthread_kill + 288
2 libsystem_c.dylib 0x18fed63a0 __abort + 128
3 libsystem_c.dylib 0x18fec818c __stack_chk_fail + 96
4 pyodbc.cpython-38-darwin.so 0x102c4f5d4 GetErrorFromHandle(Connection*, char const*, void*, void*) + 1024
5 pyodbc.cpython-38-darwin.so 0x102c4f188 RaiseErrorFromHandle(Connection*, char const*, void*, void*) + 16
6 pyodbc.cpython-38-darwin.so 0x102c48cf0 Connection_New(_object*, bool, bool, long, bool, _object*, Object&) + 1324
7 pyodbc.cpython-38-darwin.so 0x102c54b34 mod_connect(_object*, _object*, _object*) + 1468
8 Python3 0x103185968 cfunction_call_varargs + 140
9 Python3 0x103185368 _PyObject_MakeTpCall + 372
10 Python3 0x1032523fc call_function + 448
11 Python3 0x10324f800 _PyEval_EvalFrameDefault + 23692
12 Python3 0x1032532e4 _PyEval_EvalCodeWithName + 3048
13 Python3 0x103249ae0 PyEval_EvalCode + 60
14 Python3 0x10328f384 PyRun_InteractiveOneObjectEx + 712
15 Python3 0x10328e92c PyRun_InteractiveLoopFlags + 156
16 Python3 0x10328e84c PyRun_AnyFileExFlags + 72
17 Python3 0x1032ac808 Py_RunMain + 2120
18 Python3 0x1032acb1c pymain_main + 340
19 Python3 0x1032acb98 Py_BytesMain + 40
20 dyld 0x1029ed0f4 start + 520
(this is just a small extract of the report because I can't figure out how to "embed" the full report in a scrollable object in my post)
I have tried zsh: abort python error when I try to run the app in venv
Any help is appreciated.

Python - build application for mac with pyqt5

Welcome, I have a written program in Python with using PyQt5, a problem lies in that I want to build him to form of one file EXE for Windows which I was able to make with a help of pyinstaller and everything is working well on freshly installed system without any additional installations, but I have a problem with MacOS when I'm trying to do it with pyInstaller or py2app I'm getting errors during the opening of file .app
I've tried those commands:
PyInstaller:
pyinstaller --windowed --onefile filename.spec
(Link to file .spec is under)
When starting application (after a while) is closing without any error
Py2App:
python setup.py py2app
(Link to file setup.py is under)
During performing this command we can see that all libraries of type PyQt5 are added and application have weight of 196 MB so they're there but at startup I'm getting a error report (Link to this report under)
If I use command "python setup.py py2app -A' then application is working but it's taking only 222kb and I can assume that on this computer which an application will be running there has to be all libraries. And I want to avoid it.
I want to get one file which I'm sending to 1 person and without any installations of additional libraries application is starting up.
Setup.py:
from setuptools import setup
APP=['nazwa_pliku.py']
OPTIONS = {
'argv_emulation': True,
'includes': [
'PyQt5', 'PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtWidgets',
'getmac', 'requests', 'shutil', 'zipfile', 'hashlib'
]
}
DATA_FILES = [('', ['resources'])]
setup(
app=APP,
options={'py2app': OPTIONS},
data_files=DATA_FILES,
setup_requires=['py2app']
)
PyInstaller (.spec):
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['nazwa_pliku.py'],
pathex=['PyQt5', 'PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtWidgets', 'getmac', 'requests', 'shutil', 'zipfile', 'hashlib'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='nazwa_pliku',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )
app = BUNDLE(exe,
name='nazwa_pliku.app',
icon=None,
bundle_identifier=None)
Problem report:
Process: nazwa_pliku [1657]
Path: /Users/USER/Downloads/*/nazwa_pliku.app/Contents/MacOS/nazwa_pliku
Identifier: org.pythonmac.unspecified.nazwa_pliku
Version: 0.0.0 (0.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: nazwa_pliku [1657]
User ID: 501
Date/Time: 2022-01-27 08:27:10.807 -0800
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Anonymous UUID: B619491E-F16C-B54A-87DC-CEF880698C90
Time Awake Since Boot: 1200 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
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff202f8462 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff20326610 pthread_kill + 263
2 libsystem_c.dylib 0x00007fff20279720 abort + 120
3 QtCore 0x0000000106d19529 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 9
4 QtCore 0x0000000106d1ac74 QMessageLogger::fatal(char const*, ...) const + 202
5 QtGui 0x00000001067273d9 QGuiApplicationPrivate::createPlatformIntegration() + 7193
6 QtGui 0x00000001067273fb QGuiApplicationPrivate::createEventDispatcher() + 27
7 QtCore 0x0000000106ef91af QCoreApplicationPrivate::init() + 1599
8 QtGui 0x0000000106721b59 QGuiApplicationPrivate::init() + 57
9 QtWidgets 0x000000010613cada QApplicationPrivate::init() + 26
10 QtWidgets.abi3.so 0x0000000105db55d8 0x105c6a000 + 1357272
11 sip.cpython-310-darwin.so 0x000000010735175b 0x10734b000 + 26459
12 org.python.python 0x0000000104e2cdf5 0x104d1b000 + 1121781
13 org.python.python 0x0000000104da1fe7 _PyObject_MakeTpCall + 135
14 org.python.python 0x0000000104ee322d 0x104d1b000 + 1868333
15 org.python.python 0x0000000104ed8635 _PyEval_EvalFrameDefault + 19717
16 org.python.python 0x0000000104ed1fe2 0x104d1b000 + 1798114
17 org.python.python 0x0000000104ee316f 0x104d1b000 + 1868143
18 org.python.python 0x0000000104ed8635 _PyEval_EvalFrameDefault + 19717
19 org.python.python 0x0000000104ed1fe2 0x104d1b000 + 1798114
20 org.python.python 0x0000000104ecc2db 0x104d1b000 + 1774299
21 org.python.python 0x0000000104e08ca6 0x104d1b000 + 973990
22 org.python.python 0x0000000104ee316f 0x104d1b000 + 1868143
23 org.python.python 0x0000000104ed8635 _PyEval_EvalFrameDefault + 19717
24 org.python.python 0x0000000104ed1fe2 0x104d1b000 + 1798114
25 org.python.python 0x0000000104ee316f 0x104d1b000 + 1868143
26 org.python.python 0x0000000104ed8635 _PyEval_EvalFrameDefault + 19717
27 org.python.python 0x0000000104ed1fe2 0x104d1b000 + 1798114
28 org.python.python 0x0000000104f4736d 0x104d1b000 + 2278253
29 org.python.python 0x0000000104f46b2d _PyRun_SimpleFileObject + 365
30 org.python.python 0x0000000104f4a5cd PyRun_SimpleFileExFlags + 109
31 org.pythonmac.unspecified.nazwa_pliku 0x0000000102fbbec5 0x102fb7000 + 20165
32 org.pythonmac.unspecified.nazwa_pliku 0x0000000102fba357 main + 257
33 libdyld.dylib 0x00007fff20341631 start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff20322458 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00007fff20322458 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00007fff20322458 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000112224e00 rcx: 0x00007ffeecc45348 rdx: 0x0000000000000000
rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffeecc45370 rsp: 0x00007ffeecc45348
r8: 0x00000000000130a8 r9: 0x00007fff88a9fe68 r10: 0x0000000112224e00 r11: 0x0000000000000246
r12: 0x0000000000000307 r13: 0x0000000107283658 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff202f8462 rfl: 0x0000000000000246 cr2: 0x00007fc002ca6000
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Thread 0 instruction stream not available.
Thread 0 last branch register state not available.
Binary Images:
0x102fb7000 - 0x102fbefff +org.pythonmac.unspecified.nazwa_pliku (0.0.0 - 0.0.0) <ABECB05C-E91D-336E-81D6-4A467D071EE8> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/MacOS/nazwa_pliku
0x104d1b000 - 0x105092fff +org.python.python (3.10.1, [c] 2001-2021 Python Software Foundation. - 3.10.1) <1071A8DD-3E3D-3958-95BF-BA33F1F82BE5> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Frameworks/Python.framework/Versions/3.10/Python
0x105304000 - 0x10530bfff +zlib.cpython-310-darwin.so (0) <87FA5122-1EC5-3030-B8B6-D9F6A4EE2EA8> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Resources/zlib.cpython-310-darwin.so
0x105417000 - 0x10542afff +_ctypes.so (0) <A0E1A89B-9D11-36E4-9D58-393EBF9F0D8A> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Resources/lib/python3.10/lib-dynload/_ctypes.so
0x105438000 - 0x10543ffff +_struct.so (0) <9399186E-C4E1-3BC6-9DB3-FB26E3BF1AA3> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Resources/lib/python3.10/lib-dynload/_struct.so
0x105acc000 - 0x105ae7fff +_pickle.so (0) <FDD8E805-90D8-39A2-838D-B1EFCE959BD7> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Resources/lib/python3.10/lib-dynload/_pickle.so
0x105af5000 - 0x105b04fff +_socket.so (0) <92B8B527-7B8F-318E-B2A5-7DF9472FD531> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Resources/lib/python3.10/lib-dynload/_socket.so
0x105b11000 - 0x105b1cfff +math.so (0) <66D1DAE5-3559-30ED-826D-9B2143C1BB28> /Users/USER/Downloads/*/nazwa_pliku.app/Contents/Resources/lib/python3.10/lib-dynload/math.so
0x105b28000 - 0x105b2ffff +select.so (0) <988B1C8F-D008-3880-8A84-32E5B631D225>
Thanks in advance

on macOS, application bundle zipped up using python shutil make_archive() crashes when unzipped

I was trying to zip up an application bundle using shutil.make_archive using zip format, like this
app_pkg = '/path/to/my.app'
shutil.make_archive(app_pkg, 'zip', '/path/to/installer')
The produced zip file extracts to /path/to/installer without issues.
But the app inside the installer folder, i.e., /path/to/installer/my.app, crashes when double-clicked.
The full crash log looks like this
Process: mia [32751]
Path: /Users/USER/Desktop/*/mia.app/Contents/MacOS/mia
Identifier: com.example.mia
Version: 1.0.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: mia [32751]
User ID: 527235363
Date/Time: 2021-06-06 20:20:49.763 +0800
OS Version: macOS 11.3.1 (20E241)
Report Version: 12
Bridge OS Version: 5.3 (18P4556)
Anonymous UUID: 3D0E276C-DA9D-1DF6-7059-6A3AACF3A73D
Time Awake Since Boot: 1000000 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:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff208c798b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff205ffd92 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2097d32a _CFThrowFormattedException + 202
3 CoreFoundation 0x00007fff2097b581 -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x00007fff207d0230 -[__NSPlaceholderArray initWithObjects:count:] + 154
5 CoreFoundation 0x00007fff2082a793 +[NSArray arrayWithObjects:count:] + 40
6 FlutterMacOS 0x00000001055b1b14 -[FlutterEngine loadAOTData:] + 148
7 FlutterMacOS 0x00000001055b1766 -[FlutterEngine runWithEntrypoint:] + 1526
8 FlutterMacOS 0x00000001055be487 -[FlutterViewController launchEngine] + 87
9 FlutterMacOS 0x00000001055be0c5 -[FlutterViewController viewWillAppear] + 101
10 AppKit 0x00007fff23194320 -[NSViewController _sendViewWillAppear] + 40
11 AppKit 0x00007fff231941e0 -[NSViewController _windowWillOrderOnScreen] + 98
12 AppKit 0x00007fff238e91fe -[NSView _windowWillOrderOnScreen] + 67
13 AppKit 0x00007fff238e9294 -[NSView _windowWillOrderOnScreen] + 217
14 AppKit 0x00007fff23194071 -[NSWindow _doWindowWillBeVisibleAsSheet:] + 59
15 AppKit 0x00007fff2319201f -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1319
16 AppKit 0x00007fff231917a0 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 135
17 AppKit 0x00007fff23190797 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 289
18 AppKit 0x00007fff23190614 -[NSWindow orderWindow:relativeTo:] + 155
19 AppKit 0x00007fff2302675f -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 2033
20 AppKit 0x00007fff2301abb8 loadNib + 392
21 AppKit 0x00007fff2301a1c4 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 693
22 AppKit 0x00007fff23019e1a -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
23 AppKit 0x00007fff23019bf8 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 394
24 AppKit 0x00007fff2300c762 NSApplicationMain + 566
25 mia 0x000000010559b759 main + 9
26 libdyld.dylib 0x00007fff2076ff3d start + 1
27 ??? 0x0000000000000001 0x0 + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff20725946 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff20754615 pthread_kill + 263
2 libsystem_c.dylib 0x00007fff206a9411 abort + 120
3 libc++abi.dylib 0x00007fff20717ef2 abort_message + 241
4 libc++abi.dylib 0x00007fff207095fd demangling_terminate_handler() + 266
5 libobjc.A.dylib 0x00007fff2060258d _objc_terminate() + 96
6 libc++abi.dylib 0x00007fff20717307 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff20719beb __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
8 libc++abi.dylib 0x00007fff20719bb2 __cxa_throw + 116
9 libobjc.A.dylib 0x00007fff205ffec0 objc_exception_throw + 350
10 com.apple.CoreFoundation 0x00007fff2097d32a _CFThrowFormattedException + 202
11 com.apple.CoreFoundation 0x00007fff2097b581 -[__NSPlaceholderArray initWithObjects:count:].cold.3 + 38
12 com.apple.CoreFoundation 0x00007fff207d0230 -[__NSPlaceholderArray initWithObjects:count:] + 154
13 com.apple.CoreFoundation 0x00007fff2082a793 +[NSArray arrayWithObjects:count:] + 40
14 io.flutter.flutter-macos 0x00000001055b1b14 -[FlutterEngine loadAOTData:] + 148
15 io.flutter.flutter-macos 0x00000001055b1766 -[FlutterEngine runWithEntrypoint:] + 1526
16 io.flutter.flutter-macos 0x00000001055be487 -[FlutterViewController launchEngine] + 87
17 io.flutter.flutter-macos 0x00000001055be0c5 -[FlutterViewController viewWillAppear] + 101
18 com.apple.AppKit 0x00007fff23194320 -[NSViewController _sendViewWillAppear] + 40
19 com.apple.AppKit 0x00007fff231941e0 -[NSViewController _windowWillOrderOnScreen] + 98
20 com.apple.AppKit 0x00007fff238e91fe -[NSView _windowWillOrderOnScreen] + 67
21 com.apple.AppKit 0x00007fff238e9294 -[NSView _windowWillOrderOnScreen] + 217
22 com.apple.AppKit 0x00007fff23194071 -[NSWindow _doWindowWillBeVisibleAsSheet:] + 59
23 com.apple.AppKit 0x00007fff2319201f -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1319
24 com.apple.AppKit 0x00007fff231917a0 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 135
25 com.apple.AppKit 0x00007fff23190797 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 289
26 com.apple.AppKit 0x00007fff23190614 -[NSWindow orderWindow:relativeTo:] + 155
27 com.apple.AppKit 0x00007fff2302675f -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 2033
28 com.apple.AppKit 0x00007fff2301abb8 loadNib + 392
29 com.apple.AppKit 0x00007fff2301a1c4 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 693
30 com.apple.AppKit 0x00007fff23019e1a -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
31 com.apple.AppKit 0x00007fff23019bf8 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 394
32 com.apple.AppKit 0x00007fff2300c762 NSApplicationMain + 566
33 com.example.mia 0x000000010559b759 main + 9 (AppDelegate.swift:5)
34 libdyld.dylib 0x00007fff2076ff3d start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff20750484 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00007fff20750484 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00007fff20750484 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00007fff20750484 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010c7eae00 rcx: 0x00007ffeea664318 rdx: 0x0000000000000000
rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ffeea664340 rsp: 0x00007ffeea664318
r8: 0x00007ffeea6641e0 r9: 0x0000000000000000 r10: 0x000000010c7eae00 r11: 0x0000000000000246
r12: 0x0000000000000103 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff20725946 rfl: 0x0000000000000246 cr2: 0x00007fff87442fd0
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Thread 0 instruction stream not available.
Thread 0 last branch register state not available.
Binary Images:
0x105599000 - 0x10559cfff +com.example.mia (1.0.0 - 1) <6FDB6C75-DD8C-3E3A-AC4E-B7DE513EB0F5> /Users/USER/Desktop/*/mia.app/Contents/MacOS/mia
0x1055ad000 - 0x106014fff +io.flutter.flutter-macos (1.0 - 1.0) <E04597C4-4CD7-3C8C-9387-DE1D1C021257> /Users/USER/Desktop/*/mia.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/FlutterMacOS
0x1099c1000 - 0x1099d0fff libobjc-trampolines.dylib (824) <443A76FC-45AB-380A-98BF-EF0466708A33> /usr/lib/libobjc-trampolines.dylib
0x10a810000 - 0x10ab23fff +App (0) <7CF9C6C2-B0CB-33AD-B315-07BAFEA054D7> /Users/USER/Desktop/*/mia.app/Contents/Frameworks/App.framework/App
0x10c713000 - 0x10c7aefff dyld (851.27) <7EAA668B-F906-3BAA-A980-139BBE6E8766> /usr/lib/dyld
0x7fff2048c000 - 0x7fff2048dfff libsystem_blocks.dylib (79) <1C8538C3-F2BE-3F02-89AE-E7052DE66D51> /usr/lib/system/libsystem_blocks.dylib
0x7fff2048e000 - 0x7fff204c3fff libxpc.dylib (2038.100.48) <CFB56DA8-7462-3E8F-9CFB-20926C6A2BB5> /usr/lib/system/libxpc.dylib
0x7fff204c4000 - 0x7fff204dbfff libsystem_trace.dylib (1277.100.21) <1AAE1F8F-9F9D-3327-8A95-3A6887CED713> /usr/lib/system/libsystem_trace.dylib
0x7fff204dc000 - 0x7fff20579fff libcorecrypto.dylib (1000.100.38) <96A88875-7771-394E-A88E-389DCD02A935> /usr/lib/system/libcorecrypto.dylib
0x7fff2057a000 - 0x7fff205a6fff libsystem_malloc.dylib (317.100.9) <029B5632-62B4-39F6-981C-BCA99C1FBF1D> /usr/lib/system/libsystem_malloc.dylib
0x7fff205a7000 - 0x7fff205ebfff libdispatch.dylib (1271.100.5) <6B7B23E3-2FD4-3EA2-8A89-CE06244CCA98> /usr/lib/system/libdispatch.dylib
0x7fff205ec000 - 0x7fff20625fff libobjc.A.dylib (824) <929E3040-4605-3C14-885B-D742EF02F2CB> /usr/lib/libobjc.A.dylib
0x7fff20626000 - 0x7fff20628fff libsystem_featureflags.dylib (28.60.1) <FEA91919-A5BB-3606-9445-F2077D90BF87> /usr/lib/system/libsystem_featureflags.dylib
0x7fff20629000 - 0x7fff206b1fff libsystem_c.dylib (1439.100.3) <DF45CDEC-6B7E-3586-94B4-F3679A762661> /usr/lib/system/libsystem_c.dylib
0x7fff206b2000 - 0x7fff20707fff libc++.1.dylib (905.6) <B027735F-B398-381C-84A7-606D7BBE4997> /usr/lib/libc++.1.dylib
0x7fff20708000 - 0x7fff2071dfff libc++abi.dylib (905.6) <22AFC7FC-2DB6-3EF0-9CC0-EFFB9B65D5E2> /usr/lib/libc++abi.dylib
0x7fff2071e000 - 0x7fff2074dfff libsystem_kernel.dylib (7195.101.2) <62A19DE4-50C5-3866-B5B2-43220E379C3B> /usr/lib/system/libsystem_kernel.dylib
0x7fff2074e000 - 0x7fff20759fff libsystem_pthread.dylib (454.100.8) <52F807B1-41A0-3D1E-AE89-115CA570863F> /usr/lib/system/libsystem_pthread.dylib
0x7fff2075a000 - 0x7fff20795fff libdyld.dylib (851.27) <9F95C644-D1BD-38D9-9612-6188FE9EA53C> /usr/lib/system/libdyld.dylib
0x7fff20796000 - 0x7fff2079ffff libsystem_platform.dylib (254.80.2) <03429519-EBEA-3549-84A6-0FD426CB7373> /usr/lib/system/libsystem_platform.dylib
0x7fff207a0000 - 0x7fff207cbfff libsystem_info.dylib (542.40.3) <C189F0D7-A430-328D-BD7F-7EB0FA023736> /usr/lib/system/libsystem_info.dylib
0x7fff207cc000 - 0x7fff20c69fff com.apple.CoreFoundation (6.9 - 1775.118.101) <895AFD1C-0307-32B3-81CB-BA33DA368DE1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff20c6a000 - 0x7fff20e9cfff com.apple.LaunchServices (1122.33 - 1122.33) <CBFF2714-646C-3DDB-906D-672E420683E6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff20e9d000 - 0x7fff20f70fff com.apple.gpusw.MetalTools (1.0 - 1) <CD0A257C-70F9-3C42-A13E-76FD54BEFD96> /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
0x7fff20f71000 - 0x7fff211cdfff libBLAS.dylib (1336.101.1) <28ABAD61-A323-33C6-8674-8A14118D4C20> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff211ce000 - 0x7fff2121afff com.apple.Lexicon-framework (1.0 - 86.1) <27959773-C4F4-33BC-9A68-39EF2037F1E5> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
0x7fff2121b000 - 0x7fff21289fff libSparse.dylib (106) <A666D9B0-8979-3C9C-83D6-1C0B535B8B0F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
0x7fff2128a000 - 0x7fff21307fff com.apple.SystemConfiguration (1.20 - 1.20) <BEDC3BFB-D680-3E56-9A3A-2FAB181C52A9> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff21308000 - 0x7fff2133cfff libCRFSuite.dylib (50) <E49A8F87-3F3A-3A0F-853E-65FA6FB33E77> /usr/lib/libCRFSuite.dylib
0x7fff2133d000 - 0x7fff21575fff libmecabra.dylib (929.9) <87ACCBB5-FD09-3044-B6FF-1A94A7129DDF> /usr/lib/libmecabra.dylib
0x7fff21576000 - 0x7fff218d3fff com.apple.Foundation (6.9 - 1775.118.101) <5B112EDB-35C1-31A7-BFDA-E185D1B49D93> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff218d4000 - 0x7fff219bcfff com.apple.LanguageModeling (1.0 - 247.3) <81DEF845-C1A0-3BD0-9820-D1C308AFBE09> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff219bd000 - 0x7fff21af3fff com.apple.CoreDisplay (236.4 - 236.4) <C1F98CC6-5C02-372D-BFC8-420DEF159C9D> /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
0x7fff21af4000 - 0x7fff21d64fff com.apple.audio.AudioToolboxCore (1.0 - 1180.90) <EB4DE2B5-7947-3422-8151-9E1BDA2B3183> /System/Library/PrivateFrameworks/AudioToolboxCore.framework/Versions/A/AudioToolboxCore
0x7fff21d65000 - 0x7fff21f49fff com.apple.CoreText (677.4.0.4 - 677.4.0.4) <F65330BD-9D48-3DE5-9E6B-1232B5BDB656> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff21f4a000 - 0x7fff225dafff com.apple.audio.CoreAudio (5.0 - 5.0) <68667A4E-B4BC-3DF4-9D34-1E3ECECF7E0F> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff225db000 - 0x7fff2292ffff com.apple.security (7.0 - 59754.100.106) <E9261CB0-E729-3F58-98B7-172F243D4427> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff22930000 - 0x7fff22b8ffff libicucore.A.dylib (66112) <478D57C3-FFF8-35E1-A64F-8490A616AB37> /usr/lib/libicucore.A.dylib
0x7fff22b90000 - 0x7fff22b99fff libsystem_darwin.dylib (1439.100.3) <28AB0CBC-61F6-3A01-BCE2-A53DA1AECB0F> /usr/lib/system/libsystem_darwin.dylib
0x7fff22b9a000 - 0x7fff22e85fff com.apple.CoreServices.CarbonCore (1307.2 - 1307.2) <C43BE82A-9E75-39C3-807F-2E87B97B7A78> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff22e86000 - 0x7fff22ec4fff com.apple.CoreServicesInternal (476.1 - 476.1) <65BD8E8C-2F23-3790-B9CB-C04671BE34EE> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x7fff22ec5000 - 0x7fff22efffff com.apple.CSStore (1122.33 - 1122.33) <209D2E9A-FC95-3E51-A0DC-4F32C21B2266> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
0x7fff22f00000 - 0x7fff22faefff com.apple.framework.IOKit (2.0.2 - 1845.100.19) <99034CC2-EC1B-38C0-A8DE-CE37672DF139> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff22faf000 - 0x7fff22fbafff libsystem_notify.dylib (279.40.4) <1AA89769-E07F-37CD-BBCF-6DBD345862EB> /usr/lib/system/libsystem_notify.dylib
0x7fff22fbb000 - 0x7fff23008fff libsandbox.1.dylib (1441.101.1) <EC86BFE6-4909-356F-BBEF-DDB1C886D38E> /usr/lib/libsandbox.1.dylib
0x7fff23009000 - 0x7fff23d50fff com.apple.AppKit (6.9 - 2022.44.151) <10AFBC3A-E9A4-3E62-B9F5-97DF579B7A84> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff23d51000 - 0x7fff23f9ffff com.apple.UIFoundation (1.0 - 728.6) <C815FD3F-C0F0-31F6-B60D-C544D807384F> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff23fa0000 - 0x7fff23fb2fff com.apple.UniformTypeIdentifiers (636.9 - 636.9) <5F110054-A401-34EA-B789-F62B6B152DC4> /System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/UniformTypeIdentifiers
0x7fff23fb3000 - 0x7fff2413dfff com.apple.desktopservices (1.19 - 1346.4.7) <A3CAC396-18DC-3B13-9505-54BE001014CE> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff2441d000 - 0x7fff24a9cfff libnetwork.dylib (2288.100.111) <8D567D13-AE70-34BF-834D-9A65C702A8EA> /usr/lib/libnetwork.dylib
0x7fff24a9d000 - 0x7fff24f3bfff com.apple.CFNetwork (1237 - 1237) <347078F9-34AC-3AD5-AA02-B7E5E1D11FB6> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff24f3c000 - 0x7fff24f4afff libsystem_networkextension.dylib (1295.101.1) <33F45B5A-D346-3E7F-AB34-DFC4387E5A3C> /usr/lib/system/libsystem_networkextension.dylib
0x7fff24f4b000 - 0x7fff24f4bfff libenergytrace.dylib (22.100.1) <C6283CA4-26A1-352B-B678-C81D0E5E02D6> /usr/lib/libenergytrace.dylib
0x7fff24f4c000 - 0x7fff24fa8fff libMobileGestalt.dylib (978.100.37) <1B957D3E-C0F7-36AF-98E4-8897F8633BEA> /usr/lib/libMobileGestalt.dylib
0x7fff24fa9000 - 0x7fff24fbffff libsystem_asl.dylib (385) <4D4E0D4F-8B40-3ACC-85E1-16375966D6CC> /usr/lib/system/libsystem_asl.dylib
0x7fff24fc0000 - 0x7fff24fd7fff com.apple.TCC (1.0 - 1) <10E022E6-5939-32DF-80E7-11BEA294F987> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff24fd8000 - 0x7fff2533bfff com.apple.SkyLight (1.600.0 - 585) <5DB42D5D-CF51-3433-96E6-B2987E0C33C8> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
0x7fff2533c000 - 0x7fff259c5fff com.apple.CoreGraphics (2.0 - 1463.14.2) <E16063AD-03D6-3DC7-A1D4-7103D3721A5A> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff259c6000 - 0x7fff25abcfff com.apple.ColorSync (4.13.0 - 3473.4.3) <69831124-C7EE-3E6E-AC2E-6DCF8A96DB02> /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff25abd000 - 0x7fff25b18fff com.apple.HIServices (1.22 - 715) <7F4A58B2-2A3A-321D-BD82-536D0E37A759> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff25ebf000 - 0x7fff262defff com.apple.CoreData (120 - 1048) <E44CC602-AE8E-3AC0-A3D4-37E9A5AA949F> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff262df000 - 0x7fff262f4fff com.apple.ProtocolBuffer (1 - 285.24.10.20.1) <B83422A6-FA4A-3E24-891F-15851A8D8265> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x7fff262f5000 - 0x7fff264a8fff libsqlite3.dylib (321.3) <39129A81-0E78-3130-85AD-5FA0BFBCC6FA> /usr/lib/libsqlite3.dylib
0x7fff264a9000 - 0x7fff26525fff com.apple.Accounts (113 - 113) <928FC136-F5E1-3865-8384-AB5B7A626C7C> /System/Library/Frameworks/Accounts.framework/Versions/A/Accounts
0x7fff26526000 - 0x7fff2653dfff com.apple.commonutilities (8.0 - 900) <951F55FB-F13F-30E6-AB97-1CEEBE0E78DE> /System/Library/PrivateFrameworks/CommonUtilities.framework/Versions/A/CommonUtilities
0x7fff2653e000 - 0x7fff265bdfff com.apple.BaseBoard (526 - 526) <E88C7B2A-5372-3E8C-B719-AAC35B0F4E91> /System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard
0x7fff265be000 - 0x7fff26606fff com.apple.RunningBoardServices (1.0 - 505.100.7.0.1) <2E2672F5-C9F1-36E4-B3BA-D3561D7D8BEC> /System/Library/PrivateFrameworks/RunningBoardServices.framework/Versions/A/RunningBoardServices
0x7fff26607000 - 0x7fff2667bfff com.apple.AE (918.4 - 918.4) <5377134F-CCA8-3610-8888-8598115A8E8F> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff2667c000 - 0x7fff26682fff libdns_services.dylib (1310.100.10) <CCC9994C-9A07-3740-98AE-908617A67CA5> /usr/lib/libdns_services.dylib
0x7fff26683000 - 0x7fff2668afff libsystem_symptoms.dylib (1431.100.22) <226C631F-5380-395A-AA20-D686AEA05B9B> /usr/lib/system/libsystem_symptoms.dylib
0x7fff2668b000 - 0x7fff2680ffff com.apple.Network (1.0 - 1) <E70D5387-9843-34AB-B8C4-F468EB7EB1EF> /System/Library/Frameworks/Network.framework/Versions/A/Network
0x7fff26810000 - 0x7fff2683ffff com.apple.analyticsd (1.0 - 1) <356D0732-7AC4-3579-A96E-640FD4C9AB56> /System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics
0x7fff26840000 - 0x7fff26842fff
If I zip up the /path/to/installer folder using macOS's own zip utility, the app works fine.
I made a binary comparison between both results and couldn't find obvious differences, except for the .DS_Store file. But I never had issues with .DS_Store before in this sort of scenarios, so I don't believe that's the cause.
Where am I wrong?
Found the issue. shutil.make_archive() does not follow symlinks as of python 3.9.5. So the symlinks are not included in the zips.
This corrupts the lib and executable bundles such as *.framework's.
A workaround I round is to use gztar instead of zip, which preserves the essential symlinks.
shutil.make_archive(app_pkg, 'gztar', '/path/to/installer')

opencv throwing an error in macOS - Mojave

macOS - mojave
,
opencv-python = 4.1.0.25
, python = 3.5.6
When I try to open the webcam to capture the image through opencv in macOS-Mojave, I am constantly getting this error.
But running the same script in ubuntu and windows, there is no error I encounter.
Here is my test code
'''
detector = cv2.CascadeClassifier(cascade)
window_name = "Capture"
cv2.namedWindow(window_name, cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty(window_name, cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
vs = cv2.VideoCapture(0)
vs.set(3, 1280)
vs.set(4, 720)
time.sleep(2.0)
total = 0
msg = "Enter your Name"
title = "Siamese Network Training Module"
fieldNames = ["Name"]
fieldValues = []
**fieldValues = multenterbox(msg,title, fieldNames)**
folder_names = fieldValues[0]
new_output_folder = output + folder_names
print(new_output_folder)
'''
and this is the error at bold line highlighted above
'''
First throw call stack:
(
0 CoreFoundation 0x00007fff4a599a7d __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff74c6aa17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff4a613886 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff4a53b8ef ___forwarding___ + 1485
4 CoreFoundation 0x00007fff4a53b298 _CF_forwarding_prep_0 + 120
5 libtk8.6.dylib 0x000000012717d31d TkpInit + 413
6 libtk8.6.dylib 0x00000001270d517e Initialize + 2622
7 _tkinter.cpython-35m-darwin.so 0x00000001171799f6 _tkinter_create + 1174
8 python 0x000000010b84455e PyCFunction_Call + 62
9 python 0x000000010b90bec7 PyEval_EvalFrameEx + 18583
.
.
.
.
42 python 0x000000010b957eee PyRun_SimpleFileExFlags + 382
43 python 0x000000010b97cd86 Py_Main + 3622
44 python 0x000000010b7be861 main + 497
45 libdyld.dylib 0x00007fff764383d5 start + 1
46 ??? 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
'''
Please let me know what can be done. Thanks

osx 10.10.5 Python 2.7 "Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6" error

I am using homebrew python 2.7 and I installed nupic
$ pip install nupic
Then I get error when i try to import nupic
$ python
Python 2.7.11 (default, Jan 22 2016, 08:28:37)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nupic.bindings.algorithms import SpatialPooler as SP
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
$
After I get the error:
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Python exits and it asks if i want to report it to apple.
Here is the report.
Process: Python [72449]
Path: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.11 (2.7.11)
Code Type: X86-64 (Native)
Parent Process: bash [93469]
Responsible: Terminal [93466]
User ID: 501
Date/Time: 2016-02-06 17:30:50.442 +0900
OS Version: Mac OS X 10.10.5 (14F1021)
Report Version: 11
Anonymous UUID: 855D5299-1DD9-879D-F358-9483D5CA0033
Sleep/Wake UUID: A2948A3A-B3AB-4F3C-8214-250AAC8AB13F
Time Awake Since Boot: 75000 seconds
Time Since Wake: 7800 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff85532286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff932e79b3 abort + 129
2 org.python.python 0x000000010a8fa2a3 Py_FatalError + 49
3 org.python.python 0x000000010a8f9785 PyThreadState_Get + 28
4 org.python.python 0x000000010a8f6522 Py_InitModule4_64 + 62
5 _algorithms.so 0x000000010a0d7c7c init_algorithms + 796
6 org.python.python 0x0000000108fdb98b _PyImport_LoadDynamicModule + 140
7 org.python.python 0x0000000108fdb422 imp_load_module + 243
8 org.python.python 0x0000000108fc5be5 PyEval_EvalFrameEx + 26858
9 org.python.python 0x0000000108fc9745 fast_function + 264
10 org.python.python 0x0000000108fc5b0b PyEval_EvalFrameEx + 26640
11 org.python.python 0x0000000108fbf109 PyEval_EvalCodeEx + 1583
12 org.python.python 0x0000000108fbead4 PyEval_EvalCode + 54
13 org.python.python 0x0000000108fd7f0f PyImport_ExecCodeModuleEx + 241
14 org.python.python 0x0000000108fdac27 load_source_module + 1089
15 org.python.python 0x0000000108fda689 import_submodule + 267
16 org.python.python 0x0000000108fda24f load_next + 284
17 org.python.python 0x0000000108fd946b PyImport_ImportModuleLevel + 1195
18 org.python.python 0x0000000108fba70a builtin___import__ + 135
19 org.python.python 0x0000000108f45ef0 PyObject_Call + 99
20 org.python.python 0x0000000108fc9087 PyEval_CallObjectWithKeywords + 165
21 org.python.python 0x0000000108fc438a PyEval_EvalFrameEx + 20623
22 org.python.python 0x0000000108fbf109 PyEval_EvalCodeEx + 1583
23 org.python.python 0x0000000108fbead4 PyEval_EvalCode + 54
24 org.python.python 0x0000000108fe2eb9 run_mod + 53
25 org.python.python 0x0000000108fe2f5c PyRun_FileExFlags + 133
26 org.python.python 0x0000000108fe2aab PyRun_SimpleFileExFlags + 698
27 org.python.python 0x0000000108ff445d Py_Main + 3137
28 libdyld.dylib 0x00007fff9331a5c9 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff56ccd9f8 rdx: 0x0000000000000000
rdi: 0x0000000000000713 rsi: 0x0000000000000006 rbp: 0x00007fff56ccda20 rsp: 0x00007fff56ccd9f8
r8: 0x00007fff56ccda10 r9: 0x00007fff75557300 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x0000000109d92e94 r13: 0x000000010a4a9010 r14: 0x00007fff75557300 r15: 0x000000010906c310
rip: 0x00007fff85532286 rfl: 0x0000000000000206 cr2: 0x00007fff75ea9fd8
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x108f31000 - 0x108f32fff +org.python.python (2.7.11 - 2.7.11) <798BC1F6-00F9-31F0-81E0-2B45D55E8D9B> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x108f3b000 - 0x109031ff7 +org.python.python (2.7.11, [c] 2001-2015 Python Software Foundation. - 2.7.11) <006A4B30-6420-3484-A665-DA24EC4C7EC0> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Python
0x10924f000 - 0x109251fff +_locale.so (0) <20687CD8-F52A-3BAD-88FB-9BE03FEFC81C> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
0x1092d4000 - 0x1092d7ff7 +math.so (0) <C55F5074-AC08-3B15-B4F8-84DFBD1ADDC0> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
0x1092dc000 - 0x109433fff +multiarray.so (???) <5B71DE58-9764-3D6B-A574-757C96F5F7F7> /usr/local/lib/python2.7/site-packages/numpy/core/multiarray.so
0x1094ed000 - 0x1094f6ff7 +datetime.so (0) <C56B55F8-7D34-3234-88BA-AF4C61C763B3> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
0x1094ff000 - 0x10955eff7 +umath.so (???) <73DFD541-C165-3D3E-BBD1-C90CFB6E3D3D> /usr/local/lib/python2.7/site-packages/numpy/core/umath.so
0x1095cb000 - 0x1095cefff +_collections.so (0) <CD07A4D1-4505-353A-8D97-466AF00273AC> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
0x1095d3000 - 0x1095d6fff +operator.so (0) <7AFEBDE5-555B-326F-B651-76D5E736B62C> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
0x1095dc000 - 0x1095e1fff +itertools.so (0) <828A4F03-17C4-3640-AE55-740BFC4409CF> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
0x1095ea000 - 0x1095ebfff +_heapq.so (0) <1AEE9933-BC4F-3E4E-8AB5-4D9BBB76636A> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
0x1095ef000 - 0x1095fafff +cPickle.so (0) <7085F368-7F9B-311E-AC2B-2ECF506FE4FA> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
0x109640000 - 0x109641fff +cStringIO.so (0) <106617DC-C0B4-367F-AE02-790002237B0A> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
0x109646000 - 0x10964bff7 +_dotblas.so (???) <809BDF78-123C-38FC-863D-9D82F05D21A9> /usr/local/lib/python2.7/site-packages/numpy/core/_dotblas.so
0x10964f000 - 0x109650fff +_functools.so (0) <9F51DD89-251B-32CB-B020-FC70B28C090B> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
0x109653000 - 0x10967aff7 +scalarmath.so (???) <C15C5850-42F0-3586-B8F6-A666A343561F> /usr/local/lib/python2.7/site-packages/numpy/core/scalarmath.so
0x1097cc000 - 0x1097ceff7 +time.so (0) <6EC635F4-E9F9-3DF4-8F22-313F7D892629> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
0x109813000 - 0x109814fff +grp.so (0) <2DF43676-F9A0-3C6A-8EF2-8E19A6416BF8> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
0x109817000 - 0x109826fff +_io.so (0) <5614CD2E-13DF-30CC-A724-4D7D8E37F9B5> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
0x109838000 - 0x10983bfff +binascii.so (0) <A61ACC22-2A70-39A5-B30D-0436E6A38AAF> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
0x10983e000 - 0x109840fff +_hashlib.so (0) <6705DEE4-D957-3140-9FFA-B93C5EFBBBAF> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
0x109844000 - 0x109882fff +libssl.1.0.0.dylib (0) <733D4350-77AD-3504-ABFC-E1C41261B9D2> /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
0x10989e000 - 0x109a0d8df +libcrypto.1.0.0.dylib (0) <87599B7D-0474-3047-8362-3279DAB41455> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
0x109a85000 - 0x109a86fff +_random.so (0) <09D7F46C-1C20-34AD-A904-5973542C197A> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
0x109a89000 - 0x109a8afff +fcntl.so (0) <0B4E0194-4046-32FB-B2E9-726CBE47D07E> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
0x109acd000 - 0x109ad1ff7 +_compiled_base.so (???) <5D442C0C-6B62-3A70-968E-2670052500AB> /usr/local/lib/python2.7/site-packages/numpy/lib/_compiled_base.so
0x109b15000 - 0x109b17fff +lapack_lite.so (???) <6C3A7FF9-1A79-3146-B70C-E69A67999400> /usr/local/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
0x109b1b000 - 0x109b30fff +_umath_linalg.so (???) <E242EBAE-3418-38E6-896F-CCD1C52F22BF> /usr/local/lib/python2.7/site-packages/numpy/linalg/_umath_linalg.so
0x109b3c000 - 0x109b3cfff +future_builtins.so (0) <D6C14BF6-23BB-3C57-A53D-5BE766837860> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/future_builtins.so
0x109b7f000 - 0x109b87fff +fftpack_lite.so (???) <2F049C9E-E682-30A2-B732-FC7A036D13AF> /usr/local/lib/python2.7/site-packages/numpy/fft/fftpack_lite.so
0x109bcb000 - 0x109c3bff7 +mtrand.so (???) <DE2327A6-D66E-3B85-A7D1-DD5F868D2ED6> /usr/local/lib/python2.7/site-packages/numpy/random/mtrand.so
0x109ccf000 - 0x109cdefff +_ctypes.so (0) <D6A61F6C-676E-3B72-B8DF-8C7B3C094E0C> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
0x109ce9000 - 0x109cecfff +_struct.so (0) <6AA070ED-02B7-3DE3-9851-0FA49DB24FA9> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
0x109de8000 - 0x109debff7 +strop.so (0) <E355E7B8-570F-30A6-AE38-ECD08FCE1C8D> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
0x109def000 - 0x109df2fff +zlib.so (0) <FCB3E46D-4B9C-3A51-8F99-A2720E72AD75> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
0x109e36000 - 0x109e3efff +_socket.so (0) <1D54A3B9-A146-3B52-A2EC-A531CB2815B1> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
0x109e48000 - 0x109e52fff +_ssl.so (0) <67DA7263-C866-3DFF-836E-659C527E0494> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
0x109edc000 - 0x109eddfff +_scproxy.so (0) <3E573FA0-10A0-3614-AD54-07320FFC3452> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
0x109f60000 - 0x109f68fff +parser.so (0) <1EA858FF-78CC-3A56-B732-E870DF04287E> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/parser.so
0x109fac000 - 0x109fcafff +pyexpat.so (0) <A2CE4072-E964-3DBD-AB26-E989C7395BA6> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/pyexpat.so
0x10a0d5000 - 0x10a51ffff +_algorithms.so (0) <B32F93B6-B3D0-3EEC-A802-D6376794C564> /usr/local/lib/python2.7/site-packages/nupic/bindings/_algorithms.so
0x10a857000 - 0x10a949fff org.python.python (2.7.10 - 2.7.10) <E4356925-959C-36B1-9991-1D925E7B6C94> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
0x7fff68d9b000 - 0x7fff68dd1887 dyld (353.2.3) <B1B370A5-479F-3533-8AD7-97B687D4F989> /usr/lib/dyld
0x7fff83936000 - 0x7fff83947ff7 libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib
0x7fff83eab000 - 0x7fff83eabff7 liblaunch.dylib (559.40.1) <4F81CA3A-D2CE-3030-A89D-42F3DAD7BA8F> /usr/lib/system/liblaunch.dylib
0x7fff83eac000 - 0x7fff83eb4ffb libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
0x7fff84d34000 - 0x7fff84d35ff3 libSystem.B.dylib (1213) <1866C519-C5F3-3D09-8C17-A8F703664521> /usr/lib/libSystem.B.dylib
0x7fff84ec9000 - 0x7fff84f0fff7 libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib
0x7fff8551c000 - 0x7fff85539fff libsystem_kernel.dylib (2782.50.1) <1EE815DA-FF1B-3A53-AE9B-C98BD8177A9D> /usr/lib/system/libsystem_kernel.dylib
0x7fff8555f000 - 0x7fff85561fff libsystem_configuration.dylib (699.40.2) <56F94DCE-DBDE-3615-8F07-DE6270D9F8BE> /usr/lib/system/libsystem_configuration.dylib
0x7fff85597000 - 0x7fff8559bfff libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
0x7fff856fc000 - 0x7fff856fdff7 libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
0x7fff85b55000 - 0x7fff85b71ff7 libsystem_malloc.dylib (53.30.1) <DDA8928B-CC0D-3255-BD8A-3FEA0982B890> /usr/lib/system/libsystem_malloc.dylib
0x7fff85bf7000 - 0x7fff85f12fcf com.apple.vImage (8.0 - 8.0) <1183FE6A-FDB6-3B3B-928D-50C7909F2308> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff85f2c000 - 0x7fff85f3dff3 libsystem_coretls.dylib (35.40.1) <155DA0A9-2046-332E-BFA3-D7974A51F731> /usr/lib/system/libsystem_coretls.dylib
0x7fff869cb000 - 0x7fff86b59fff libBLAS.dylib (1128) <497912C1-A98E-3281-BED7-E9C751552F61> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff86e00000 - 0x7fff86e00ff7 libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
0x7fff8798d000 - 0x7fff8799dff7 libbsm.0.dylib (34) <A3A2E56C-2B65-37C7-B43A-A1F926E1A0BB> /usr/lib/libbsm.0.dylib
0x7fff87b8e000 - 0x7fff87bbefff libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
0x7fff87be9000 - 0x7fff87bebff7 libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
0x7fff87bec000 - 0x7fff87beefff libquarantine.dylib (76.20.1) <7AF90041-2768-378A-925A-D83161863642> /usr/lib/system/libquarantine.dylib
0x7fff88c2f000 - 0x7fff88ca7ff7 com.apple.SystemConfiguration (1.14.4 - 1.14) <3DFFD7F7-BD23-3F4C-A209-C4A0D99F6573> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff899a0000 - 0x7fff899f4fff libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
0x7fff89a03000 - 0x7fff89a03ff7 libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
0x7fff8a39f000 - 0x7fff8a3a0ffb libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
0x7fff8a3a1000 - 0x7fff8a3b8ff7 libLinearAlgebra.dylib (1128) <E78CCBAA-A999-3B65-8EC9-06DB15E67C37> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x7fff8a3b9000 - 0x7fff8a3e1fff libsystem_info.dylib (459.40.1) <2E16C4B3-A327-3957-9C41-143911979A1E> /usr/lib/system/libsystem_info.dylib
0x7fff8a5b8000 - 0x7fff8a5bdfff libsystem_stats.dylib (163.30.2) <D0E96837-3CF6-323D-B711-6DF6F660E530> /usr/lib/system/libsystem_stats.dylib
0x7fff8ad36000 - 0x7fff8ad3efff libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
0x7fff8ad93000 - 0x7fff8b1a0ff7 libLAPACK.dylib (1128) <F9201AE7-B031-36DB-BCF8-971E994EF7C1> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff8b327000 - 0x7fff8b32eff7 libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib
0x7fff8bda2000 - 0x7fff8bdb8ff7 libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
0x7fff8bdf2000 - 0x7fff8bdf4fff libsystem_sandbox.dylib (358.20.5) <3F5E973F-C702-31AC-97BC-05F5C195683C> /usr/lib/system/libsystem_sandbox.dylib
0x7fff8c836000 - 0x7fff8ca3046f libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib
0x7fff8cb22000 - 0x7fff8cb5afff libsystem_network.dylib (412.20.3) <6105C134-6722-3C0A-A4CE-5E1261E2E1CC> /usr/lib/system/libsystem_network.dylib
0x7fff8cbcb000 - 0x7fff8cbccfff libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
0x7fff8cbcd000 - 0x7fff8cbd6ff7 libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
0x7fff8ccbc000 - 0x7fff8ccbcfff com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <9D749502-A228-3BF1-B52F-A182DEEB2C4D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff8d03e000 - 0x7fff8d044fff libsystem_trace.dylib (72.20.1) <840F5301-B55A-3078-90B9-FEFFD6CD741A> /usr/lib/system/libsystem_trace.dylib
0x7fff8dd5f000 - 0x7fff8dd65ff7 libsystem_networkextension.dylib (167.40.3) <BA58B30B-8377-3B0A-8AE3-4F84021D9D4E> /usr/lib/system/libsystem_networkextension.dylib
0x7fff8dd66000 - 0x7fff8dd90ff7 libdispatch.dylib (442.50.1) <A61E703C-784A-3698-B513-75DD12AAD6DC> /usr/lib/system/libdispatch.dylib
0x7fff8e065000 - 0x7fff8e06aff7 libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
0x7fff8ef0d000 - 0x7fff8ef0dfff com.apple.Accelerate (1.10 - Accelerate 1.10) <2C8AF258-4F11-3BEC-A826-22D7199B3975> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff8ef4c000 - 0x7fff8ef55fff libsystem_pthread.dylib (105.40.1) <ACE90967-ECD0-3251-AEEB-461E3C6414F7> /usr/lib/system/libsystem_pthread.dylib
0x7fff8f9c2000 - 0x7fff8f9c3fff libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff9028b000 - 0x7fff9039dff7 libvDSP.dylib (516) <151B3CCB-77D3-3715-A3D0-7C74CD5C7FFC> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff914ff000 - 0x7fff91504ff7 libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib
0x7fff917f1000 - 0x7fff9186afe7 libcorecrypto.dylib (233.30.1) <5779FFA0-4D9A-3AD4-B7F2-618227621DC8> /usr/lib/system/libcorecrypto.dylib
0x7fff91adc000 - 0x7fff91ae4fff libsystem_dnssd.dylib (576.50.2) <9EC5AF92-D0D2-3BDE-92B6-D3730D3865C8> /usr/lib/system/libsystem_dnssd.dylib
0x7fff91eaf000 - 0x7fff91f5efe7 libvMisc.dylib (516) <6739E390-46E7-3BFA-9B69-B278562326E6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff91f5f000 - 0x7fff922f7ff7 com.apple.CoreFoundation (6.9 - 1153.18) <5C0892B8-9691-341F-9279-CA3A74D59AA0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff922fc000 - 0x7fff924e1ff7 libicucore.A.dylib (531.50) <CAA7ACE0-4012-3A13-864D-2B56B4B072FD> /usr/lib/libicucore.A.dylib
0x7fff92a54000 - 0x7fff92a7cfff libxpc.dylib (559.40.1) <5C829202-962E-3744-8B50-00D38CC88E84> /usr/lib/system/libxpc.dylib
0x7fff92acd000 - 0x7fff92af8fff libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
0x7fff92c13000 - 0x7fff92c1efff libcommonCrypto.dylib (60061.30.1) <E789748D-F9A7-3CFF-B317-90DF348B1E95> /usr/lib/system/libcommonCrypto.dylib
0x7fff9328a000 - 0x7fff93316fe7 libsystem_c.dylib (1044.40.1) <F0635E0F-FE4B-34DB-ACF9-A58C1E9070E9> /usr/lib/system/libsystem_c.dylib
0x7fff93317000 - 0x7fff9331aff7 libdyld.dylib (353.2.3) <CFBBE540-D503-3AFC-B5D6-644F1E69949B> /usr/lib/system/libdyld.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
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: 73166
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=109.5M resident=95.1M(87%) swapped_out_or_unallocated=14.4M(13%)
Writable regions: Total=53.9M written=13.3M(25%) resident=15.8M(29%) swapped_out=0K(0%) unallocated=38.1M(71%)
REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 44.8M
MALLOC (admin) 16K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 16K
__DATA 2940K
__LINKEDIT 75.9M
__TEXT 33.6M
__UNICODE 552K
shared memory 4K
=========== =======
TOTAL 221.8M
Model: MacBookPro12,1, BootROM MBP121.0167.B14, 2 processors, Intel Core i5, 2.7 GHz, 8 GB, SMC 2.28f7
Graphics: Intel Iris Graphics 6100, Intel Iris Graphics 6100, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54414C41522D4E5544
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54414C41522D4E5544
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x133), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.6f3 16238, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0256G, 251 GB
USB Device: Internal Memory Card Reader
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
The problem does not happen if I run the native python installed on my mac. The following works just fine.
$ /usr/bin/python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nupic.bindings.algorithms import SpatialPooler as SP
>>>
Any help would be greatly appreciated.

Categories

Resources