Duga icon indicating copy to clipboard operation
Duga copied to clipboard

PatternSyntaxException: Unclosed group near index 24

Open Zomis opened this issue 8 years ago • 8 comments

No idea what this is or why this happens.

http://chat.stackexchange.com/transcript/message/25792461#25792461

Zomis avatar Nov 30 '15 18:11 Zomis

Sounds like a missing closing brace in a regex pattern...

Sent from my toaster

retailcoder avatar Nov 30 '15 18:11 retailcoder

But why would it appear now? It has never appeared before that I know of, and nothing in the code has changed.

Sent from my 418 - I'm a teapot

Zomis avatar Nov 30 '15 18:11 Zomis

Correction, first occurance at september 10: http://chat.stackexchange.com/transcript/20298?m=23994936#23994936

Also sent from my teapot

Zomis avatar Nov 30 '15 18:11 Zomis

Has the Java version been updated recently?

To me it looks like internally in the regex matcher something crashed, the error message in any case does not seem to be intended for end-users.

skiwi2 avatar Nov 30 '15 18:11 skiwi2

This is a really important issue as it might be a reason for why Duga stops working. After two of these errors recently, she went dead for 4 days. See http://chat.stackexchange.com/transcript/message/28613081#28613081

Zomis avatar Apr 03 '16 11:04 Zomis

This happened again recently and made @DugaBot be silent for several hours until I restarted her. https://chat.stackexchange.com/transcript/20298?m=45791996#45791996

Zomis avatar Jul 24 '18 20:07 Zomis

In the repo there's only a few places where Pattern or replace are used. For one that is the CommentClassification groovy task, the ChatMessageHelper as well as the ProgrammersClassification.java.

All usages of replace have regex specifiers that are shorter than 24 characters or no braces / parens at all. Accordingly something should be problematic in one of the Pattern usages...

Vogel612 avatar Jul 25 '18 09:07 Vogel612

This is really strange, but I'm kinda wondering if it might be related to not having any internet. I noticed that between 23:16 on Friday evening and until today (Sunday) at 17, I have been getting this error seemingly once every minute.

On Friday at 21:00 I had a power failure causing @DugaBot to shutdown. I started @DugaBot again at 23:14:33 on Friday I had no internet between Friday at 21:00 until today at 17:00. I restarted @DugaBot at 17:02:33 today.

Zomis avatar Jul 28 '19 20:07 Zomis