Could you run M-x toggle-debug-on-error to produce a stacktrace, this may help see where the error is coming from.
M-x toggle-debug-on-error