I pushed a fix for this last night. I don't totally understand why it happens and the fix is to not run the advice in the agenda buffer. 

On Wednesday, March 16, 2016, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

britt@uwaterloo.ca writes:

> This message just started appearing today when I open an agenda view
> "C-c a a". It is not obvious to me what I am doing or have done
> differently, and I would appreciate some advice how to diagnose the
> problem:
> Emacs: 24.5.1
> Orgmode: 8.3.4-5 (20160229 elpa)
>
> Thank you, -- Britt
>
> The error trace follows:
>
> Debugger entered--Lisp error: (args-out-of-range #<buffer *Org Agenda*> 1372 1409)
>   match-string(1)
>   (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end
> (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re
> (format "^\\(%s:\\)" (regexp-opt (-sort (function (lambda ... ...))
> org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re s))
> (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg
> end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list (quote :foreground) org-ref-cite-color))))))
>   (progn (let ((s (match-string 1)) (s-begin (match-beginning 1))
> (s-end (match-end 1)) (beg (match-beginning 0)) (end (match-end 0))
> (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort (function ...)
> org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re s))
> (progn (setq cite-type (match-string 1 s)) (remove-text-properties beg
> end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list (quote :foreground) org-ref-cite-color)))))))
>   (unwind-protect (progn (let ((s (match-string 1)) (s-begin
> (match-beginning 1)) (s-end (match-end 1)) (beg (match-beginning 0))
> (end (match-end 0)) (cite-re (format "^\\(%s:\\)" (regexp-opt (-sort
> ... org-ref-cite-types)))) cite-type) (if (and s (string-match cite-re
> s)) (progn (setq cite-type (match-string 1 s)) (remove-text-properties
> beg end (quote (invisible))) (add-text-properties beg end (list (quote
> face) (list ... org-ref-cite-color))))))) (set-match-data
> save-match-data-internal (quote evaporate)))
>   (let ((save-match-data-internal (match-data))) (unwind-protect
> (progn (let ((s (match-string 1)) (s-begin (match-beginning 1)) (s-end
> (match-end 1)) (beg (match-beginning 0)) (end (match-end 0)) (cite-re
> (format "^\\(%s:\\)" (regexp-opt ...))) cite-type) (if (and
> s (string-match cite-re s)) (progn (setq cite-type (match-string 1 s))
> (remove-text-properties beg end (quote ...)) (add-text-properties beg
> end (list ... ...)))))) (set-match-data save-match-data-internal
> (quote evaporate))))
>   org-ref-make-org-link-cite-key-visible(416)

This looks like an org-ref issue. I'm Cc'ing John Kitchin.

Regards,

--
Nicolas Goaziou


--
John

-----------------------------------
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu