NetLogo / NetLogo/NetLogo

UnmappableCharacterException when reading model index for Asian user

Open
#353 5 comments 0 reactions 0 assignees View on GitHub

@nicolaspayette is already working on this.

Since May 16, 2013.

Dominant language
Scala
Stars
1.2k
Forks
272
PR merge metrics
No merged PRs in 30d

Description

No more detail for the moment. Here is the exception:

java.nio.charset.UnmappableCharacterException: Input length = 2
 at java.nio.charset.CoderResult.throwException(Unknown Source)
 at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
 at sun.nio.cs.StreamDecoder.read(Unknown Source)
 at java.io.InputStreamReader.read(Unknown Source)
 at java.io.BufferedReader.fill(Unknown Source)
 at java.io.BufferedReader.readLine(Unknown Source)
 at java.io.BufferedReader.readLine(Unknown Source)
 at scala.io.BufferedSource$BufferedLineIterator.hasNext(BufferedSource.scala:67)
 at scala.collection.Iterator$GroupedIterator.takeDestructively(Iterator.scala:955)
 at scala.collection.Iterator$GroupedIterator.go(Iterator.scala:971)
 at scala.collection.Iterator$GroupedIterator.fill(Iterator.scala:1011)
 at scala.collection.Iterator$GroupedIterator.hasNext(Iterator.scala:1014)
 at scala.collection.Iterator$$anon$22.hasNext(Iterator.scala:457)
 at scala.collection.Iterator$class.foreach(Iterator.scala:772)
 at scala.collection.Iterator$$anon$22.foreach(Iterator.scala:451)
 at org.nlogo.app.ModelsLibraryIndexReader$$anonfun$readInfoMap$1.apply$mcV$sp(ModelsLibraryIndexReader.scala:16)
 at org.nlogo.app.ModelsLibraryIndexReader$$anonfun$readInfoMap$1.apply(ModelsLibraryIndexReader.scala:16)
 at org.nlogo.app.ModelsLibraryIndexReader$$anonfun$readInfoMap$1.apply(ModelsLibraryIndexReader.scala:16)
 at scala.util.control.Exception$Catch.apply(Exception.scala:88)
 at org.nlogo.util.Exceptions$.handling(Exceptions.scala:41)
 at org.nlogo.app.ModelsLibraryIndexReader$.readInfoMap(ModelsLibraryIndexReader.scala:15)
 at org.nlogo.app.ModelsLibraryIndexReader.readInfoMap(ModelsLibraryIndexReader.scala)
 at org.nlogo.app.ModelsLibraryDialog$5.run(ModelsLibraryDialog.java:128)

NetLogo 5.0.4
Java HotSpot(TM) Client VM 1.6.0_34 (Sun Microsystems Inc.; 1.6.0_34-b04)
operating system: Windows 7 6.1 (x86 processor)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading ModelsLibraryIndexReader.scala around readInfoMap at lines 15–16, then trace the model-index loading path through BufferedSource and the reported Java runtime. Reproduce the failure with the stated Windows 7 and Java 6 environment if available; done means Asian-user model indexes load without UnmappableCharacterException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, scala
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.