Workaround or Fix for AssertionError on create new project?

When creating a new project with EAP 9647 and 9720 (and I believe intermediate versions as well), I obtain the assertion error at the bottom of this message.

Also (not confident this is related), if I try to open a pre-existing IPR attached to an IML/IWS, the IPR content disappears and Idea is unusable (project view shows up empty, and no paths can be added).

Also, I've seen this problem noted on JIRA in a few places, such as here, still listed as open.
http://www.jetbrains.net/jira/browse/IDEADEV-31468

I'm anxious to get the EAP working, since the new Scala plugin requires 9634+.  Please let me know if there is a workaround I can do to get around this on my end, or if I can provide more information (I posted to Exception Tracker, but not sure how to find it.)

Thanks,
Sam Reid

java.lang.AssertionError
    at com.intellij.util.io.storage.RecordsTable.scanForFreeRecords(RecordsTable.java:100)
    at com.intellij.util.io.storage.RecordsTable.ensureFreeRecordsScanned(RecordsTable.java:94)
    at com.intellij.util.io.storage.RecordsTable.createNewRecord(RecordsTable.java:73)
    at com.intellij.util.io.storage.Storage.createNewRecord(Storage.java:203)
    at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.a(FSRecords.java:175)
    at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.access$800(FSRecords.java:59)
    at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$AttributeOutputStream.close(FSRecords.java:1)
    at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
    at com.intellij.util.io.DupOutputStream.close(DupOutputStream.java:40)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$2$1.close(PersistentFS.java:5)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$2.close(PersistentFS.java:7)
    at com.intellij.openapi.components.impl.stores.FileBasedStorage$FileSaveSession.doSave(FileBasedStorage.java:27)
    at com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSession.c(XmlElementStorage.java:72)
    at com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSession.save(XmlElementStorage.java:89)
    at com.intellij.openapi.components.impl.stores.CompoundSaveSession.save(CompoundSaveSession.java:9)
    at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MySaveSession.save(StateStorageManagerImpl.java:15)
    at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.save(ComponentStoreImpl.java:23)
    at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.save(ProjectStoreImpl.java:19)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:17)
    at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:77)
    at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:47)

5 comments
Comment actions Permalink

Hello Sam,

Use the File | Invalidate Caches to rebuild the filesystem cache. Then the
error should go away.

When creating a new project with EAP 9647 and 9720 (and I believe
intermediate versions as well), I obtain the assertion error at the
bottom of this message.

Also (not confident this is related), if I try to open a pre-existing
IPR attached to an IML/IWS, the IPR content disappears and Idea is
unusable (project view shows up empty, and no paths can be added).

Also, I've seen this problem noted on JIRA in a few places, such as
here, still listed as open.
http://www.jetbrains.net/jira/browse/IDEADEV-31468

I'm anxious to get the EAP working, since the new Scala plugin
requires 9634+. Please let me know if there is a workaround I can do
to get around this on my end, or if I can provide more information (I
posted to Exception Tracker, but not sure how to find it.)

Thanks,
Sam Reid
java.lang.AssertionError
at
com.intellij.util.io.storage.RecordsTable.scanForFreeRecords(RecordsTa
ble.java:100)
at
com.intellij.util.io.storage.RecordsTable.ensureFreeRecordsScanned(Rec
ordsTable.java:94)
at
com.intellij.util.io.storage.RecordsTable.createNewRecord(RecordsTable
.java:73)
at
com.intellij.util.io.storage.Storage.createNewRecord(Storage.java:203)
at
com.intellij.openapi.vfs.newvfs.persistent.FSRecords.a(FSRecords.java:
175)
at
com.intellij.openapi.vfs.newvfs.persistent.FSRecords.access$800(FSReco
rds.java:59)
at
com.intellij.openapi.vfs.newvfs.persistent.FSRecords$AttributeOutputSt
ream.close(FSRecords.java:1)
at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
at
com.intellij.util.io.DupOutputStream.close(DupOutputStream.java:40)
at
com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$2$1.close(Pers
istentFS.java:5)
at
com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$2.close(Persis
tentFS.java:7)
at
com.intellij.openapi.components.impl.stores.FileBasedStorage$FileSaveS
ession.doSave(FileBasedStorage.java:27)
at
com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSe
ssion.c(XmlElementStorage.java:72)
at
com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSe
ssion.save(XmlElementStorage.java:89)
at
com.intellij.openapi.components.impl.stores.CompoundSaveSession.save(C
ompoundSaveSession.java:9)
at
com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$My
SaveSession.save(StateStorageManagerImpl.java:15)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSes
sionImpl.save(ComponentStoreImpl.java:23)
at
com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSa
veSession.save(ProjectStoreImpl.java:19)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(Compo
nentManagerImpl.java:17)
at
com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:77
)
at
com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.j
ava:47)
---
Original message URL:
http://www.jetbrains.net/devnet/message/5231744#5231744

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks very much for your prompt attention to this severe problem.  Below follows my log that inicates my use cases for (1) a related existing problem (2) creation of a new project <fixed> and (3) loading af an existing project <fixed>.  Let me know if you have any questions or comments about this.

download and install #9728
Create new project
No module
Finish

(1) New project doesn't open; no exception is thrown.  This seems problematic to me.

File->Invalidate Caches->Restart Now
Create new project->From Scratch->Next
Uncheck create module->Finish

(2) new Project structure dialog appears

File->Close project
Open existing project->select project

(3) pre-existing project opens and works properly without mangling IPR or IML files.

Thanks again,
Sam Reid

0
Comment actions Permalink

Hello Sam,

download and install #9728
Create new project
No module
Finish
(1) New project doesn't open; no exception is thrown. This seems
problematic to me.


I don't quite understand what you see as a problem here. If you create a
project and choose not to create a module in the Project Wizard, you're supposed
to see the Project Structure dialog. Is that what happens?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I don't quite understand what you see as a problem here. If you create a
project and choose not to create a module in the Project Wizard, you're supposed
to see the Project Structure dialog. Is that what happens?


The major problems are all resolved for me.  The remaining problem occurred before I cleared my filesystem cache.  The problem was that when I pressed "create new project" and followed the wizard, after "Finish" the new project did not appear; instead, the welcome screen stayed up, as if I had not created a new project at all.  This was a similar error as before I cleared my filesystem cache, except this time there was no Exception dialog, and no "!" on the bottom right to indicate what error had occurred.

Thanks,
Sam Reid

0
Comment actions Permalink

Hello Sam,

Ah, I see. The exception reporting is disabled in build 9728 (as in all release
builds), so the exception did happen but you didn't see the red exclamation
sign.

I don't quite understand what you see as a problem here. If you
> create a project and choose not to create a module in the Project
> Wizard, you're supposed to see the Project Structure dialog. Is that
> what happens?


The major problems are all resolved for me. The remaining problem
occurred before I cleared my filesystem cache. The problem was that
when I pressed "create new project" and followed the wizard, after
"Finish" the new project did not appear; instead, the welcome screen
stayed up, as if I had not c

reated a new project at all. This was a similar error as before I
cleared my filesystem cache, except this time there was no Exception
dialog, and no "!" on the bottom right to indicate what error had
occurred.

Thanks,
Sam Reid
---
Original message URL:
http://www.jetbrains.net/devnet/message/5231809#5231809

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.