Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 214882

Summary: Eclipse crashes when opening a ticket with a large number of comments
Product: z_Archived Reporter: magic.bitbucket
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: normal    
Priority: P2 CC: birdo, robert.elves, shawn.minto, steffen.pingel
Version: 2.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Eclipse log none

Description magic.bitbucket CLA 2008-01-10 07:14:46 EST
Created attachment 86550 [details]
Eclipse log

env:
jdk 1.6.0_02
Eclipse 3.3.1.1
Trac 0.10.4 (tracd standalone, tried with --auth and --basic-auth)
Using XML-RPC for the mylyn trac connector.

When opening a ticket with 1000+ comments Eclipse first hangs for ~15+ minutes and then crashes. I can open other tickets without problems.

stderr output:
The program 'Eclipse' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 377387 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Comment 1 Steffen Pingel CLA 2008-01-10 13:15:18 EST
I have seen similar crashes when using many task editors: bug 214832 .

Which Linux distribution / GTK version are you using? Have you seen these crashes with Mylyn versions earlier than 2.2?
Comment 2 magic.bitbucket CLA 2008-01-10 13:58:28 EST
I'm  using slackware-current, gtk+2-2.12.4.
I've seen the same error with Mylyn 2.1, also only with this one ticket with 1000+ comments. I didn't use Eclipse before so I can't say anything about previous versions.
Comment 3 Steffen Pingel CLA 2008-01-10 15:57:45 EST
Thanks. The recent weekly build has performance improvements for rendering tasks with many comments by delaying creation of a comment widgets until a comment is expanded. The implementation in version 2.2 created all comment widgets once the task editor was opened.

It would be great if you could try the latest build available from the weekly update site and report back if that enables you to open the task in the editor:

 http://www.eclipse.org/mylyn/downloads/
Comment 4 magic.bitbucket CLA 2008-01-11 06:35:18 EST
Now tried with 3.3 weekly build. Same problem. 
Maybe the performance improvement is useless because all comments are expanded when the ticket gets loaded? It seems this is what happens by default and I haven't found a configuration option for it.
Comment 5 magic.bitbucket CLA 2008-01-11 06:54:04 EST
Sorry, that was 2.3 not 3.3 ^^
Comment 6 Steffen Pingel CLA 2008-01-11 14:41:49 EST
That's right, all unread comments are expanded automatically. To prevent comments from expanding you can use "Mark > Read" from the context menu in the task list. 
Comment 7 magic.bitbucket CLA 2008-01-14 11:45:11 EST
Sorry, still crashes when the ticket is marked as read.
Comment 8 magic.bitbucket CLA 2008-01-29 16:13:41 EST
It seems there were more improvements in the latest weekly build - 20081025?
I can now open the ticket, and even open the comments. Now it just crashes when expanding all comments ^^
Comment 9 Steffen Pingel CLA 2008-01-29 16:44:33 EST
I am not sure that any of changes made to the editor would have fixed that. Maybe the Mylyn code has developed self-healing capabilities ;). It could be that the OS is running out of handles/resources and it depends on how many other task editors and other applications are running when the ticket is opened.
Comment 10 Roberto Scaramuzzi CLA 2009-04-22 15:03:57 EDT
The same happens for me too (doesn't hang for 15 minutes, but crashes eclipse with the same stderr output as the bug report), starting at about 30 comments. 

I'm using Eclipse 3.4.2 with Mylyn 3.1.0.
Comment 11 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn