facebook

css editor pushes cpu to 100%

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #208584 Reply

    Ivar Vasara
    Member

    When I open up a CSS file with the ME editor and it’s the active editor tab, my CPU usage basically gets pegged to 100% rendering it useless.. 🙁

    specs : 3.0RC1, ME 3.8b, win2k, 1GB RAM, 2Ghz p4, java 1.4.2..

    #208589 Reply

    Scott Anderson
    Participant

    Can you post the file you’re having trouble with so we can try to replicate it?

    #208626 Reply

    Ivar Vasara
    Member

    @support-scott wrote:

    Can you post the file you’re having trouble with so we can try to replicate it?

    ok.. here goes …

    
    body                                { background-color: #EDECE9; color: #FFF; font: 70% Verdana, Sans-serif; line-height: 1.5em; margin: 0px; }
    
    h1, h2                                { margin: 0; padding: 0; color: #7B631A;}
    h1                                    { font-size: 1.6em !important;  }
    h2                                    { font-size: 1.3em !important;  }
    h3                                    { font-size: 1em  !important; border-bottom: 2px solid #CCC; } 
    
    h4                                    { font-size: 1em  !important;  color: #666;}
    .side-panel h3                        { font-size: 1.3em !important; width: 224px; padding: 4px; margin-bottom: 5px; }
    
    .search h1, 
    .lineup h1,
    .lineup h2,
    .profile h1                            { background: url("backgrounds/h1.gif") no-repeat; padding: 8px 0 0 15px; }
                                        
    .staticPage h1, 
    .staticPage h2                        { background: url("backgrounds/h1.gif") no-repeat; }
    
    h1.form,                                
    .formPage h1,
    .staticLarge h1                        { background: url("backgrounds/h1_static.gif") repeat-x;  }
    h1.form                                { margin: 5px 5px 0px 5px; }
    .newForm h1, .editForm h1            { background: url("backgrounds/h1_static.gif") repeat-x; padding: 6px 0 0 15px; }
    
    
    
    .episodeTitle h1                    { background: #C9C0B4; }
    
    .episodeProfile h1                    { background: #C9C0B4; }
    .preview a                            { background: url("icons/arrow.gif") no-repeat; }
    
    
    .forum h2                            { background: url("backgrounds/h1.gif") no-repeat; }
    
    
    .userFeatureList h2, 
    .contentFeatureList h2, 
    .groupFeatureList h2,
    .host h2, 
    .episode-correspondent h2,
    .userList h2,
    .contentList h2, 
    .episodeList h2, 
    .groupList h2,
    .categoryList h2,
    .fileList h2,
    .infoList h2,
    .getInvolved h2, 
    .categoryFeatureList h2, 
    .episodeFeatureList h2,
    #adminPanel h2,
    .resourcesList h2                    { background: url("backgrounds/h2.gif") no-repeat; }
    
    
    
    /* links */
    a:link                                {color: #FFD684; text-decoration: none; font-weight: bold;}
    a:visited                            {color: #E69B00; text-decoration: none; font-weight: bold;}  
    a:hover                                {color: #FF9900; font-weight: bold;}   
    a:active                            {color: #FF6600; font-weight: bold;}
    
    /* search results context link */ 
    .search h1 a:link                        { color: #FFF; } /* this should be removed or become more specific */
    .search h1 a:visited                    { color: #FFF; }
    .search h1 a:active                        { color: #FFF; }
    
    #browse                                { background: url("backgrounds/browse.gif") no-repeat; font-size: 10px;}
    #browseSmall img                    { border-left: 1px solid #6A6A6A; }                /* mini nav bar in main menu */
    /* .buttons                            { background-color: #E7EBE7;   }                 background color for buttons */
    .title                                { color: #FFD684; }                                /* title formattion            */ 
    .typeID                                { background-color: #769EB4; float: right;  }    /* typeID icon background    */
    
    /* thumbnails */
    .thumbnail,                                                        
    .thumbnailMedia, 
    .iconID                                { border: 1px solid #E9E9E9; }
    .side-panel .thumbnailMedia            { margin-bottom: 30px;}  /* redo floats on thumbnails */
    
    /* search results & context navigation bar */
    .navigator, .searchFilter, .context { background: url("backgrounds/transparency.gif"); border: 1px solid #000; } 
    
    
    /* admin panel */
    #adminPanel                            { background: #4F4544; } 
    
    /* main menu */
    #main-menu                            { background: #282D35; color: #FFF; font-size: 10.8px; font-weight: bold;  }
    #main-menu .selectCategory            { background: #667B91; }
    #main-menu li                        { border-right: 1px solid #6A6A6A; }
    #main-menu a:link                    {color: #FFF; text-decoration: none;}
    #main-menu a:visited                {color: #FFF; text-decoration: none;}  
    #main-menu a:hover                    {color: #999; text-decoration: none;}   
    #main-menu a:active                    {color: #FF6600; text-decoration: none;}
    
    
    /* sub-menu (search, login ...) */
    #subMenu                            { background: #4F4544; padding: 5px; }
    #subMenu input.submit,
    input#vote                            {
                                        background: url("icons/arrow2.gif") no-repeat; color: #FFD684; padding: 0 5px 0 14px;
                                        width: 60px; height: 16px; border: none; font-weight: bold; font-size: 11px;    
                                        }
    
    /* footer */
    #footerImg                            { background:  url("backgrounds/footer.gif") no-repeat; }
    #footer #subfooter                    { background: #4F4544; text-align: center; }
    #footer #subfooter a                { font-weight: bold; }
    
    
    .episodeProfile h1, .episodeTitle h1            { color: #4F4544; font-size: 16px;}
    .episodeProfile h1 span, .episodeTitle h1 span    { color: #666; font-size: 14px;  }
    
    
    #mediaDisplay h1                    { background: url(backgrounds/h2.gif) repeat; height: 32px; padding: 6px 0 0 15px; }
    
    h1#watchTeaser span                        { font-size: 0.8em; }
    
    .episodeProfile,
    .userList,            
    .contentList, 
    .groupList, 
    .episodeList, 
    .categoryList, 
    .infoList, 
    .fileList,                
    .categoryFeature,
    .episodeFeature,
    /*.fullFeature,        */
    .side-panel .userFeatureList,
    .listing,        
    #mediaDisplay,
    .forumFullThread .threadListing, 
    .forumFullTopics .threadListing,
    .threadListing,
    .postingComplete,
    .profile,
    .staticLarge,
    .staticPage,
    .lineup#host,
    .formPage,
    .editForm,
    .newForm                            { background: url("backgrounds/transparency.gif"); border: 1px solid #000;}        
    
    .contentFeatureList,
    .groupFeatureList,
    .userFeatureList                    { background: url("backgrounds/transparency.gif"); border: 1px solid #000;}
    
    .contentFeatureList .show-more,
    .userFeatureList .show-more,
    .groupFeatureList .show-more        { border-top: 1px dotted #FFF; }
    
    
    .userFeatureList .artistFeature        { background: none; } /* overlaps otherwise */
    
    .resultsList,
    .artistSmall, 
    .contentSmall, 
    .groupSmall, 
    .episodeSmall,
    .categorySmall                        { border-bottom: 1px dotted #E9E9E9; }
    
    .featureInfo .firstName                { font-weight: bold; }    
    .featureInfo .user-login, .primaryUser-login            { font-weight: bold; }
    .artistFeature .title                { font-weight: normal; } /* extraneous */
    .artistFeature .user-login            { font-size: 1.2em; font-weight: bold;}
    .contentFeature .title                { font-size: 1.2em; }
    .groupFeature .title                { font-size: 1.2em; }
    .categorySmall .title                { font-size: 1.1em; }
    .thread .title                        { border-bottom: 1px solid #E9E9E9;     }
    
    .fullFeature .artistSmall,
    .fullFeature .contentSmall,
    .fullFeature .episodeSmall,
    .fullFeature .groupSmall            { font-weight: bold; font-size: 1.2em; }
    
    .news, .editorial                    {
                                        width: 510px; height: 210px;  overflow: auto;
                                        scrollbar-3dlight-color:#464561; 
                                        scrollbar-arrow-color: #464561;
                                        scrollbar-track-color: #DFDFDF;
                                        scrollbar-darkshadow-color:#464561;
                                        scrollbar-face-color: #CCC;
                                        scrollbar-shadow-color:#B4B4B4; 
                                        scrollbar-highlight-color:none;
                                        }
    
    .editorial #editorialBody .title    { border-bottom: 2px solid #CCC;  color: #CCC;}
    
    
    .airDate                            { font-weight: bold;}
    .ID                                    { width: 184px; border-bottom: 1px dotted #E9E9E9;  }
    .votes, 
    .createdon,
    .viewed, 
    .zedid, 
    .posts, 
    .numPostings, 
    .numViews,
    .numMembers, 
    .chatting, 
    .user-creationTime,
    .user-city,
    .user-country,
    .country,
    .city,
    .uploads,
    .numUploads, 
    .episodeNumber, 
    .episodeno, 
    .rating, 
    .season, 
    .numSubmissions                            { border-bottom: 1px dotted #E9E9E9; width: 170px;  }
    
    /* EPISODE INDEX CALENDAR */
    table#calendar                            { border-bottom: 1px solid #E9E9E9; color: #CCC; font: 13px; text-align: center;  }
    table#calendar #month                    { border-bottom: 1px solid #E9E9E9; }
    #calendar td#today                        { border: 1px solid #5A80A5;     }
    .dayItem .title                            { border-bottom: 1px solid #E9E9E9; }
    
    /* FORMS */
    .submitContenToGroup                    { margin-left: 200px;} /* temp */
    
    #avatar input                            { border: none; background-color: transparent; }
    
    /* form field names */
    #title, #description, #file, 
    #keywords, #username, #password, 
    #password2, #legal, #firstname, 
    #lastname, #email, #city, #province, 
    #country, #categories, #interests, 
    #episodeNumber, #tagline, #topic, #message,
    #to, #subject                             {font-weight: bold; text-align: right; }
    .title .label .label                     {font-weight: bold; color:#FFF; }/* default text  color */
    
    .formElement, #age, #allow-email, 
    #gender, #mailing, #rememberme, 
    #avatar, #upload-avatar, 
    #profile-image, #bio, #homepage, 
    #webcam  
                                            { text-align: right;}
    .formElement2 
                                            { text-align: center;} /* specific to positioning pull-down menus that have 2 parts */
    
    input, select, textarea                 { background: #E9E9E9; border: 1px solid #333; color: #333; 1em; font-family: verdana;}
    textarea                                { font-size: 1em; }
    
    
    #subMenu input, 
    td input                                { background: #F4F4F4; border: 1px solid #CCC; }
    
    
    
    
    
    
    /* ALL MAPPED BACKGROUND IMAGES */
    
    
    .episodeLarge .airDate,
    .episodeFeature .airDate            { background: url("icons/nav_ontv.gif") no-repeat; padding-left: 14px; margin: 10px 5px 0px 15px; }
    
    .episodeLarge #selfLink, 
    .episodeFeature #selfLink            { background: url("icons/arrow2.gif") no-repeat; }
    
    .artistSmall .user-login, 
    .artistSmall .login, 
    
    .forum    .user-login                            { background: url("icons/nav_user.gif")            no-repeat; padding-left: 15px; }
    .forum    .title                                { background: url("icons/nav_post.gif")            no-repeat; padding-left: 15px; margin: 5px 0 0 0; }
    .forum h2                                    { background: url("backgrounds/h1.gif")            no-repeat;  padding: 6px 0 0 25px; }
    .forumFullThread h1, .forumFullTopics h1    { background: url("backgrounds/h1_static.gif")  no-repeat; padding: 6px 0 0 15px; }
    
    
    .contentSmall .title                { background: url("icons/nav_content.gif") no-repeat; padding-left: 15px; }
    .groupSmall .title                    { background: url("icons/nav_group.gif")   no-repeat; padding-left: 15px; }
    .episodeSmall                        { background: url("icons/nav_ontv.gif")    no-repeat; padding-left: 15px; }
    
    .categorySmall .title                { background: url("icons/nav_category.gif") no-repeat; padding-left: 15px; }
    
    .contentLineView .title                { background: url("icons/nav_content.gif") no-repeat; padding-left: 15px; }
    .fileList .contentSmall                { background: url("icons/nav_content.gif") no-repeat; padding-left: 15px; }
    
    .viewed, div.numViews                { background: url("icons/info_viewed.gif") no-repeat; padding-left: 14px;        }
    .numPosts, div.numPostings            { background: url("icons/info_posts.gif")  no-repeat; padding-left: 14px;        }
    .numMembers                            { background: url("icons/info_user.gif")   no-repeat; padding-left: 14px;        }
    .season                                { background: url("icons/info_calendar.gif")no-repeat; padding-left: 14px;        }
    .numUploads, div.numSubmissions        { background: url("icons/info_content.gif") no-repeat; padding-left: 14px;        }
    .episodeNumber                        { background: url("icons/info_ontv.gif")    no-repeat; padding-left: 14px;        }
    
    .guestsOnline                        { background: url("icons/info_user.gif")    no-repeat;   padding-left: 14px;    }
    .peopleOnline                        { background: url("icons/nav_user.gif")        no-repeat;   padding-left: 14px;    }
    
    .searchFilter .button                { background: url("icons/arrow2.gif")        no-repeat; padding: 0 5px 0 14px;    }
    
    .threadListing .title                { background: url("icons/nav_post.gif")        no-repeat; padding-left: 14px;        }
    .postingInfo   .user-login            { background: url("icons/info_user.gif")    no-repeat; padding-left: 15px;        }
    .postingInfo   .creationTime        { background: url("icons/info_content.gif") no-repeat; padding-left: 15px;        }
    .postingComplete .button            { background: url("icons/arrow.gif")        no-repeat; padding-left: 14px; }
    
    .dayItem .title                        { background: url("icons/info_ontv.gif")        no-repeat; display:block; padding-left: 14px; }
    .normalSize, .doubleSize            { background: url("icons/arrow2.gif") no-repeat; padding: 0 5px 0 14px;   margin: 4px;            }
    .searchFooter, .forumFooter         { background: url("backgrounds/transparency.gif"); width: 508px; border: 1px solid #000;}
    
    #info-user                                { background: url("info/user.gif")        no-repeat; height: 120px;    }
    #info-rating                            { background: url("info/rating.gif")    no-repeat; height: 120px;    }
    #info-content                            { background: url("info/content.gif")    no-repeat; height: 120px;    }
    #info-groups                            { background: url("info/group.gif")        no-repeat; height: 120px;    } 
    #info-tv                                { background: url("info/episode.gif")    no-repeat; height: 120px;    }
    
    
    /* header icons */
    .content-icon                        { background: url("../shared/icons/content_header_icon.gif")    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .user-icon                            { background: url("../shared/icons/user_header_icon.gif"     )    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .group-icon                            { background: url("../shared/icons/group_header_icon.gif"  )    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .episode-icon                        { background: url("../shared/icons/episode_header_icon.gif")    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .category-icon                        { background: url("../shared/icons/category_header_icon.gif")    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .webcam-icon                        { background: url("../shared/icons/webcam_header_icon.gif"   )    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .info-icon                            { background: url("../shared/icons/info_header_icon.gif"   )    no-repeat; width:20px; padding: 0px 0 0 15px; }
    .help-icon                            { background: url("../shared/icons/help_header_icon.gif"   )    no-repeat; width:20px; padding: 0px 0 0 15px; }
    
    
    /* BULLETS */
    ul.bullet li, ul.list li            { list-style: url("icons/arrow2.gif")                    }
    #subMenu div.powerSearch            { background: url("icons/arrow2.gif")   no-repeat;        }
    li.subcat                            { list-style: url("icons/arrow2.gif")                    }
    li.info                                { list-style: url("icons/arrow2.gif")                    }
    li.resource                            { list-style: url("icons/arrow2.gif")                    }
    .searchFilter .button                { background: url("icons/arrow2.gif")   no-repeat;        }
    .show-more a                        { background: url("icons/arrow.gif")    no-repeat;        }
    div.login-box                        { background: url("icons/nav_user.gif") no-repeat;        }
    
    .corner                                { display: none; }
    /* navigation tabs */
    
     #searchNav li                        { background:url("buttons/tab_left.gif") no-repeat left top;    }
     #searchNav a, #searchNav em        { background:url("buttons/tab_right.gif") no-repeat right top;  }
     #searchNav #current                { background:url("buttons/tab_left_on.gif") no-repeat left top; }
     #searchNav #current a,     
     #searchNav #current em                { background-image:url("buttons/tab_right_on.gif");                }
    
    #searchNav #current em                { color: #CCC; }
    #searchNav span#contentOn            { background: url("icons/info_content.gif") no-repeat; width: 9px; height: 13px; }
    #searchNav span#contentOff            { background: url("icons/nav_content.gif") no-repeat; width: 9px; height: 13px;}
    
    span#contentOn            { background: url("icons/info_content.gif")    no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#contentOff            { background: url("icons/nav_content.gif")    no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#membersOn            { background: url("icons/info_user.gif")    no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#membersOff            { background: url("icons/nav_user.gif")        no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#groupsOn            { background: url("icons/info_group.gif")    no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#groupsOff            { background: url("icons/nav_group.gif")    no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#episodesOn            { background: url("icons/info_ontv.gif")    no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    span#episodesOff        { background: url("icons/nav_ontv.gif")        no-repeat; width: 9px; height: 13px; padding-left: 8px; }
    
    #208627 Reply

    Ivar Vasara
    Member

    @support-scott wrote:

    Can you post the file you’re having trouble with so we can try to replicate it?

    umm .. an URL might be more appropriate.. here’s an example of something that will kill the ME CSS editor:
    http://static.zed.cbc.ca/skins/userArt/presentation.css

    #208911 Reply

    Ivar Vasara
    Member

    @ivar wrote:

    here’s an example of something that will kill the ME CSS editor:
    http://static.zed.cbc.ca/skins/userArt/presentation.css

    Is this being looked at, or is it low priority ? any timeline indications ?

    #208941 Reply

    support-michael
    Keymaster

    Your report is in the queue as a priority 1 (P1) issue for evaluation. We rebalance resources on a daily-to-weekly rate inorder to address both propblem reports (PRs) and new planned features. I can’t say anymore about this problem until we isolate it and determine its resolution cost relative to the many other resource demands.

    #208993 Reply

    Ivar Vasara
    Member

    @support-michael wrote:

    Your report is in the queue as a priority 1 (P1) issue for evaluation.

    Excellent ! thanks for the reply..

    on this topic, any chance you could provide anonymous guest / observer access to your bug tracking database ?

    #208995 Reply

    support-michael
    Keymaster

    Sorry but PR access is restricted to only Genuitec employees. We track a lot more than just bug reports in our system.

    #209407 Reply

    Scott Anderson
    Participant

    Ivar,

    When I open up a CSS file with the ME editor and it’s the active editor tab, my CPU usage basically gets pegged to 100% rendering it useless.. 🙁

    I tried testing with your file and while I noticed that the CPU usage went to 100% upon opening, it only stayed there for about 5 seconds while the file was parsed and the outline refreshed. After that, the editor behaved normally. Occasionally after large edits a similar reparse occurred, but the editor returned to normal functionality afterward. However, I have not seen any permanent lockups of any kind. Is there a specific edit or something you can perform such that the editor ceases operation? If it’s a speed issue, you might be able to help things along by giving Eclipse more memory on startup with the -vmargs -Xms128M -Xmx512M on startup.

    #209450 Reply

    Ivar Vasara
    Member

    @support-scott wrote:

    I tried testing with your file and while I noticed that the CPU usage went to 100% upon opening, it only stayed there for about 5 seconds while the file was parsed and the outline refreshed. After that, the editor behaved normally. Occasionally after large edits a similar reparse occurred, but the editor returned to normal functionality afterward. However, I have not seen any permanent lockups of any kind. Is there a specific edit or something you can perform such that the editor ceases operation?

    The main issue is that while Eclipse is active, it appears there’s a regularly timed, automatic reparse of the CSS editors. I’m sorry my initial bug report was unclear.. the issue is that my workstation gets tied up by the CSS editor frequently (and regularly) if the editor is open. As an experiment, I opened Eclipse (and nothing else) and only the CSS file.. every 30 or so seconds, my CPU would be maxxed out for 5 seconds or so. If I added any activity (just click on the CSS editor pane) it would occasionaly throw in another parse..
    So far, my workaround has been to make any CSS edits quickly and close the editor asap.. if I try leaving it open it’s totally frustrating.

    @support-scott wrote:

    If it’s a speed issue, you might be able to help things along by giving Eclipse more memory on startup with the -vmargs -Xms128M -Xmx512M on startup.

    My startup args are currently:
    -nosplash -vmargs -Xms512M -Xmx512M -XX:MaxPermSize=512M

    any other optimizations you recommend I throw in ?

    #209458 Reply

    Scott Anderson
    Participant

    We’ll look into it further. Thanks for the clarification.

    #209506 Reply

    Scott Anderson
    Participant

    Ivar,

    We simply aren’t able to replicate this behavior. We can use the CSS editor normally and are not seeing any sort of timed reparse behavior or anything else. Could the CPU usage be caused by something else on your machine, such as virus scanning of incoming email or something? Is there anyone else out there experiencing this behavior?

    #214724 Reply

    ShagVT
    Member

    I am seeing this behavior with 3.8.1 GA when working with a large XML file (about 5000 lines long). If I open this document in the regular Eclipse text editor, the javaw.exe process in Task Manager sits at 0%. I close the document and check Task Manager again – 0%. Now I open with MyEclipse XML Editor. The processor pegs at 90% and just stays there. I try to close the editor and it takes literally minutes for the editor to close.

    90% process on a 3.0GHz box with 1.0GB of RAM is some intense calculation, especially for a document which is not changing. This is 100% reproducible for me, but this is a sensitive document that I cannot send outside the company so I’m not sure what to recommend for remediation.

    #214726 Reply

    Riyad Kalla
    Member

    Shag,
    Can you try and make a ‘similar’ looking document in size/type and send it to [email protected] with a link to this thread for us to test?

    Just to check here on my side I created a web.xml file that was ~5800 lines long and opened it up, my CPU went to about 80% for 3 seconds after opening it (reconciler) and then back to 0%. I was not able to reproduce this problem.

    #215622 Reply

    Will Glass-Husain
    Participant

    Hi,

    Just to add my two cents. I also have this problem with the CSS editor. After editing a property, it will freeze for 3-5 seconds. Very disconcerting. This happens frequently.

    Eclipse 3.0.0 build 200406251208
    MyEclipse 3.8.1
    JDK 1.4.2_04

Viewing 15 posts - 1 through 15 (of 21 total)
Reply To: css editor pushes cpu to 100%

You must be logged in to post in the forum log in