Re: Occasionally getting wrong-type-argument for semantic overlays

Eric Ludlam <[email protected]> Sat, 25 Feb 2017 18:16:42 -0500
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Based on the way the error text is laid out, I suspect this is coming 
from semantic--tag-run-hooks which does error handling, but also reports 
the error using that format.

This is used when linking/unlinking tags to a buffer which happens 
during timers and in after-change-hooks, so errors need to be ignored or 
the system starts falling apart.

The hook is used primarily by the tag decoration system.  Unfortunately, 
it didn't occur to me to add more diagnostic like which hook was being 
run since I never ran into this problem.

Adding a call to (debug) in the catch block would show a stack that 
would be helpful in determining what the problem is.

Eric

On 02/24/2017 06:06 PM, Lee Hinman wrote:
> Semantic is working fine a lot of the time, however, sometimes it gets
> into a state where whenever I open any file where semantic is active, I
> get spammed with thousands of these messages, for every other buffer
> that's already open with semantic enabled:
>
> Error: (wrong-type-argument symbolp #<overlay from 832 to 890 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 891 to 924 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 925 to 990 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 991 to 1047 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1048 to 1096 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1097 to 1153 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1154 to 1229 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1230 to 1301 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1302 to 1343 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1344 to 1402 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1403 to 1454 in IndexRequest.java>)
> Error: (wrong-type-argument symbolp #<overlay from 1455 to 1496 in IndexRequest.java>)
> ... etc etc etc hundreds more ...
>
> I tried `debug-on-error` but it never shows a backtrace, is there some
> way I can debug what's causing this? Usually I have to restart Emacs and
> then it works okay for a while, then goes back to failing.
>
> --
> ;; Lee
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Cedet-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cedet-devel
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot