This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233860 - OutOfMemoryError in new full remote project wizard
Summary: OutOfMemoryError in new full remote project wizard
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2013-08-02 15:23 UTC by Alexander Pepin
Modified: 2013-08-08 02:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2013-08-02 15:23:59 UTC
A lot of full remote tests fail due OutOfMemoryError occurring while project creation in "New Project" wizard.

    [junit] INFO [nativeexecution.support.logger]: [157772 ms.] java.lang.OutOfMemoryError: Java heap space
    [junit] java.lang.OutOfMemoryError: Java heap space
    [junit] 	at java.util.Arrays.copyOf(Arrays.java:2367)
    [junit] 	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
    [junit] 	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
    [junit] 	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:587)
    [junit] 	at java.lang.StringBuilder.append(StringBuilder.java:214)
    [junit] 	at org.netbeans.modules.nativeexecution.api.util.ProcessUtils.readProcessStreamLine(ProcessUtils.java:212)
    [junit] 	at org.netbeans.modules.nativeexecution.api.util.ProcessUtils.readProcessOutputLine(ProcessUtils.java:156)
    [junit] 	at org.netbeans.modules.nativeexecution.api.util.ProcessUtils$3.call(ProcessUtils.java:403)
    [junit] 	at org.netbeans.modules.nativeexecution.api.util.ProcessUtils$3.call(ProcessUtils.java:399)
    [junit] 	at org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$1.call(NativeTaskExecutorService.java:67)
    [junit] 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    [junit] Caused: java.util.concurrent.ExecutionException
    [junit] 	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
    [junit] 	at java.util.concurrent.FutureTask.get(FutureTask.java:111)
    [junit] [catch] at org.netbeans.modules.nativeexecution.api.util.ProcessUtils.execute(ProcessUtils.java:407)
    [junit] 	at org.netbeans.modules.nativeexecution.api.util.ProcessUtils.executeInDir(ProcessUtils.java:340)
    [junit] 	at org.netbeans.modules.remote.impl.fs.MagicCache.updateCache(MagicCache.java:188)
    [junit] 	at org.netbeans.modules.remote.impl.fs.MagicCache.readCache(MagicCache.java:107)
    [junit] 	at org.netbeans.modules.remote.impl.fs.MagicCache.get(MagicCache.java:77)
    [junit] 	at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getMagic(RemoteDirectory.java:1264)
    [junit] 	at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.getMagic(RemoteFileObjectBase.java:349)
    [junit] 	at org.netbeans.modules.remote.impl.fs.RemoteFileObject.getInputStream(RemoteFileObject.java:377)
    [junit] 	at org.openide.filesystems.MIMESupport$CachedFileObject.getInputStream(MIMESupport.java:402)
    [junit] 	at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.accept(FileElement.java:586)
    [junit] 	at org.netbeans.modules.openide.filesystems.declmime.FileElement$Type.access$300(FileElement.java:156)
    [junit] 	at org.netbeans.modules.openide.filesystems.declmime.FileElement.resolve(FileElement.java:99)
    [junit] 	at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Impl.findMIMEType(MIMEResolverImpl.java:440)
    [junit] 	at org.openide.filesystems.MIMESupport$CachedFileObject.resolveMIME(MIMESupport.java:371)
    [junit] 	at org.openide.filesystems.MIMESupport$CachedFileObject.getMIMEType(MIMESupport.java:312)
    [junit] 	at org.openide.filesystems.MIMESupport.findMIMEType(MIMESupport.java:136)
    [junit] 	at org.openide.filesystems.FileUtil.getMIMEType(FileUtil.java:1302)
    [junit] 	at org.openide.filesystems.FileObject.getMIMEType(FileObject.java:658)
    [junit] 	at org.netbeans.modules.remote.impl.fs.RemoteFileObject.getMIMEType(RemoteFileObject.java:135)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.platform.ExternalUpdateListener.isCOrCpp(ExternalUpdateListener.java:230)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.platform.ExternalUpdateListener.register(ExternalUpdateListener.java:244)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.platform.ExternalUpdateListener.fileDataCreated(ExternalUpdateListener.java:115)
    [junit] 	at org.netbeans.modules.cnd.utils.SuspendableFileChangeListener$Worker.run(SuspendableFileChangeListener.java:115)
    [junit] 	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
    [junit] 	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 Vladimir Kvashin 2013-08-06 23:00:24 UTC
fixed in cnd-main:
http://hg.netbeans.org/cnd-main/rev/072c4bc40190
Comment 2 Quality Engineering 2013-08-08 02:28:51 UTC
Integrated into 'main-silver', will be available in build *201308072300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/072c4bc40190
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #233860 - OutOfMemoryError in new full remote project wizard