Git Product home page Git Product logo

rainbow's People

Contributors

codecrafter47 avatar pisaiah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rainbow's Issues

Server Crashes when doing 'java -jar Rainbow.jar'

Problem

When running 'java -jar Rainbow.jar' from the command prompt
soon as the world loads the server crashes.

Max-tick-time is set to low by default,
Can be fixed by setting max-tick-time to 200000

Log:

[09:29:49] [INFO]: Preparing spawn area: 95%
[09:29:50] [INFO]: Preparing spawn area: 97%
[09:29:51] [INFO]: Preparing spawn area: 99%
[09:29:51] [INFO]: Done (96.508s)! For help, type "help" or "?"
[09:29:51] [FATAL]: A single server tick took 102.21 seconds (should be max 0.05)
[09:29:51] [FATAL]: Considering it to be crashed, server will forcibly shutdown.
[09:29:52] [ERROR]: This crash report has been saved to: crash-2017-01-21_09.29.52-server.txt
[09:29:52] [INFO]: Stopping server

Full log http://pastebin.com/ekf6Qmh3

Affecting versions:

  • Lastest version

Plugins used:

  • PluginBukkitBridge

System Details:

  • Windows 10
  • Java 1.8.0_65

Formating Issues

There is Formating issues in Rainbow, (Mainly in PluginReference)

Less then min fix for tabs:
In Notepad++:
Search -> Find in Files -> Replace All -> DONE

also most starting brackets are on new lines, example:

public String IamAString()
{ <--- should be on above line!
return "I like Rainbows!"
}

according to CodeBeautify's Java beautifier just moving the bracket to the same line would save 1 byte per bracket, it might seem like a small difference but you save that per bracket.

also according to CodBeautify, removing white spaces would save 5 bytes per whitepace.

  • Replace Tabs
  • Remove whitepaces.
  • Move starting brackets to same line.

_ColorHelper build error

org.projectrainbow._ColorHelper does not download right, and
_ColorHelper.COLOR_CHAR = '§';
reads as:
_ColorHelper.COLOR_CHAR = 'ยง';

[ERROR] /org/projectrainbow/_ColorHelper.java:[30,35] unclosed character literal
[ERROR] /org/projectrainbow/_ColorHelper.java:[30,37] illegal character: \167
[ERROR] /org/projectrainbow/_ColorHelper.java:[30,38] unclosed character literal

Server Crashes

Plugins: PluginBukkitBridge.jar (Loads fine)

Crash Report File:

---- Minecraft Crash Report ----

Time: 7/30/16 6:19 PM
Description: Watching Server

java.lang.Error
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.projectrainbow.plugins.PluginClassLoader.findClass(PluginClassLoader.java:61)
at org.projectrainbow.plugins.PluginManager.getClassByName(PluginManager.java:287)
at org.projectrainbow.plugins.PluginClassLoader.findClass(PluginClassLoader.java:57)
at org.projectrainbow.plugins.PluginClassLoader.findClass(PluginClassLoader.java:49)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at PluginBukkitBridge.WorldManager.refresh(WorldManager.java:21)
at PluginBukkitBridge.MyPlugin.onServerFullyLoaded(MyPlugin.java:192)
at org.projectrainbow.Hooks.onServerFullyLoaded(Hooks.java:394)
at ld.handler$onServerFullyLoaded$0(SourceFile:67)
at ld.j(SourceFile:251)
at net.minecraft.server.MinecraftServer.run(SourceFile:428)
at java.lang.Thread.run(Thread.java:745)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Server Watchdog
Stacktrace:
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.projectrainbow.plugins.PluginClassLoader.findClass(PluginClassLoader.java:61)
at org.projectrainbow.plugins.PluginManager.getClassByName(PluginManager.java:287)
at org.projectrainbow.plugins.PluginClassLoader.findClass(PluginClassLoader.java:57)
at org.projectrainbow.plugins.PluginClassLoader.findClass(PluginClassLoader.java:49)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at PluginBukkitBridge.WorldManager.refresh(WorldManager.java:21)
at PluginBukkitBridge.MyPlugin.onServerFullyLoaded(MyPlugin.java:192)
at org.projectrainbow.Hooks.onServerFullyLoaded(Hooks.java:394)
at ld.handler$onServerFullyLoaded$0(SourceFile:67)
at ld.j(SourceFile:251)

-- Thread Dump --
Details:
Threads: "Server Watchdog" Id=24 RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:446)
at le.run(SourceFile:43)
at java.lang.Thread.run(Thread.java:745)

"Netty Server IO #0" Id=19 RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:296)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:278)
at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:159)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
- locked io.netty.channel.nio.SelectedSelectionKeySet@175d246f
- locked java.util.Collections$UnmodifiableSet@cd3188
- locked sun.nio.ch.WindowsSelectorImpl@262f6ea6
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...

"Server console handler" Id=18 RUNNABLE (in native)
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:272)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
- locked java.io.BufferedInputStream@740967df
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
- locked java.io.InputStreamReader@3210b113
at java.io.InputStreamReader.read(InputStreamReader.java:184)
...

"DestroyJavaVM" Id=17 RUNNABLE

"Server thread" Id=15 RUNNABLE
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
...

"Server Infinisleeper" Id=14 TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at ld$1.run(SourceFile:79)

"Snooper Timer" Id=13 WAITING on java.util.TaskQueue@45c13a68
at java.lang.Object.wait(Native Method)
- waiting on java.util.TaskQueue@45c13a68
at java.lang.Object.wait(Object.java:503)
at java.util.TimerThread.mainLoop(Timer.java:526)
at java.util.TimerThread.run(Timer.java:505)

"Attach Listener" Id=5 RUNNABLE

"Signal Dispatcher" Id=4 RUNNABLE

"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@10e1a59f
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@10e1a59f
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@4e407261
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@4e407261
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)

Stacktrace:
at le.run(SourceFile:59)
at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 363508128 bytes (346 MB) / 532152320 bytes (507 MB) up to 1814036480 bytes (1730 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
Profiler Position: N/A (disabled)
Player Count: 0 / 20; []
Is Modded: Definitely; Server brand changed to 'Rainbow'
Type: Dedicated Server (map_server.txt)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.