I updated my project to 4.0.0a1 and I have started seeing an assertion when I call wx.LogMessage(msg). I am running on Python3.5 and Ubuntu 17.04 in a virtualenv,
Traceback:
Traceback (most recent call last):
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/kiblast.py”, line 1091, in OnTimer
dbReloaded = self.TestAndReloadDatabase(configReloaded)
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/kiblast.py”, line 999, in TestAndReloadDatabase
self.dbcache = DBCache()
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/dbcache.py”, line 299, in init
self.ReloadCSVData()
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/dbcache.py”, line 310, in ReloadCSVData
changed = self.populate_equivalents()
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/dbcache.py”, line 605, in populate_equivalents
first = current_field)
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/dbcache.py”, line 365, in _process_row
str(data)))
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/logger.py”, line 80, in log
cls.logger.log(*args, **kwargs)
File “/usr/lib/python3.5/logging/init.py”, line 1346, in log
self._log(level, msg, args, **kwargs)
File “/usr/lib/python3.5/logging/init.py”, line 1416, in _log
self.handle(record)
File “/usr/lib/python3.5/logging/init.py”, line 1426, in handle
self.callHandlers(record)
File “/usr/lib/python3.5/logging/init.py”, line 1488, in callHandlers
hdlr.handle(record)
File “/usr/lib/python3.5/logging/init.py”, line 856, in handle
self.emit(record)
File “/home/steven/.virtualenvs/KiBlast/lib/python3.5/site-packages/kiblast/kiblast.py”, line 111, in emit
wx.LogMessage(msg)
wx._core.wxAssertionError: C++ assertion “Assert failure” failed at /tmp/pip-build-pok08co0/wxPython/ext/wxWidgets/src/common/strconv.cpp(1194) in FromWChar(): trying to encode undefined Unicode character
This is the message I am trying to log:
DBG OBSESS - Process Row [‘CAP’, ‘18pF 50V 5% C0G 0402’, ‘Generic’, ‘C_18pF_SMD0402’, ‘Generic’, ‘C_18pF_50V_5%_C0G_SMD0402’, ‘’, ‘’, ‘’, ‘’, ‘’, ‘’, ‘’, ‘’] : {}
and I decoded it and these are the character codes being passed in
44:42:47:20:4f:42:53:45:53:53:20:2d:20:50:72:6f:63:65:73:73:20:52:6f:77:20:5b:27:43:41:50:27:2c:20:27:31:38:70:46:20:35:30:56:20:35:25:20:43:30:47:20:30:34:30:32:27:2c:20:27:47:65:6e:65:72:69:63:27:2c:20:27:43:5f:31:38:70:46:5f:53:4d:44:30:34:30:32:27:2c:20:27:47:65:6e:65:72:69:63:27:2c:20:27:43:5f:31:38:70:46:5f:35:30:56:5f:35:25:5f:43:30:47:5f:53:4d:44:30:34:30:32:27:2c:20:27:27:2c:20:27:27:2c:20:27:27:2c:20:27:27:2c:20:27:27:2c:20:27:27:2c:20:27:27:2c:20:27:27:5d:20:3a:20:7b:7d
I cant see anything wrong with it which would yield a conversion error. Any ideas what I might be doing wrong?
Note: This is the first message which triggers this assertion. Other messages are printed by the same code without issue.