Examples of CrashReport


Examples of net.minecraft.crash.CrashReport

                return chunk.getBlock(this.x & 15, this.y, this.z & 15);
            }
        }
        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

            //Chunk doesn't exist - meaning, it is not loaded
            return Blocks.bedrock;
        }
        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

            //Chunk doesn't exist - meaning, it is not loaded
            return Blocks.bedrock;
        }
        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

                return chunk.getBlock(this.x & 15, this.y, this.z & 15);
            }
        }
        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

            //Chunk doesn't exist - meaning, it is not loaded
            return Blocks.bedrock;
        }
        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

       {
           ForgeVersion.startVersionCheck();
       }

       //Force these classes to be defined, Should prevent derp error hiding.
       new CrashReport("ThisIsFake", new Exception("Not real"));
      
       UsernameCache.load();
   }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

          return; // done!
      }
    }
    catch( Throwable t )
    {
          CrashReport crashreport = CrashReport.makeCrashReport(t, "Ticking GridNode");
          CrashReportCategory crashreportcategory = crashreport.makeCategory( tt.gt.getClass().getSimpleName() + " being ticked." );
            tt.addEntityCrashInfo(crashreportcategory);
            throw new ReportedException(crashreport);
    }
  }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

  public void updateEntities() {
    final Profiler theProfiler = this.theProfiler;
    theProfiler.startSection("updateEntities");
    int var1;
    Entity weatherEffect;
    CrashReport var4;
    CrashReportCategory var5;

    theProfiler.startSection("global");
    final List<Entity> weatherEffects = this.weatherEffects;
    synchronized (weatherEffects) {
      Iterator<Entity> iterator = weatherEffects.iterator();
      while (iterator.hasNext()) {
        weatherEffect = iterator.next();

        if (weatherEffect == null) {
          iterator.remove();
          continue;
        }

        try {
          ++weatherEffect.ticksExisted;
          weatherEffect.onUpdate();
        } catch (Throwable t) {
          Log.severe("Failed to tick weather " + Log.toString(weatherEffect), t);
        }

        if (weatherEffect.isDead) {
          iterator.remove();
        }
      }
    }

    theProfiler.endStartSection("remove");
    int var3;
    int var13;
    final List loadedEntityList = this.loadedEntityList;
    boolean tickTT = loadedEntityList instanceof EntityList;
    if (tickTT) {
      ((EntityList) loadedEntityList).manager.batchRemoveEntities(unloadedEntitySet);
      ((EntityList) loadedEntityList).manager.doTick();
    } else {
      loadedEntityList.removeAll(unloadedEntitySet);

      for (Entity entity : unloadedEntitySet) {
        var3 = entity.chunkCoordX;
        var13 = entity.chunkCoordZ;

        if (entity.addedToChunk) {
          Chunk chunk = getChunkIfExists(var3, var13);
          if (chunk != null) {
            chunk.removeEntity(entity);
          }
        }

        onEntityRemoved(entity);
      }
      unloadedEntitySet.clear();
      theProfiler.endStartSection("entities");
      for (var1 = 0; var1 < loadedEntityList.size(); ++var1) {
        weatherEffect = (Entity) loadedEntityList.get(var1);

        if (weatherEffect.ridingEntity != null) {
          if (!weatherEffect.ridingEntity.isDead && weatherEffect.ridingEntity.riddenByEntity == weatherEffect) {
            continue;
          }

          weatherEffect.ridingEntity.riddenByEntity = null;
          weatherEffect.ridingEntity = null;
        }

        theProfiler.startSection("tick");

        if (!weatherEffect.isDead) {
          try {
            updateEntity(weatherEffect);
          } catch (Throwable var7) {
            var4 = CrashReport.makeCrashReport(var7, "Ticking entity");
            var5 = var4.makeCategory("Entity being ticked");
            weatherEffect.addEntityCrashInfo(var5);

            throw new ReportedException(var4);
          }
        }

        theProfiler.endSection();
        theProfiler.startSection("remove");

        if (weatherEffect.isDead) {
          var3 = weatherEffect.chunkCoordX;
          var13 = weatherEffect.chunkCoordZ;

          if (weatherEffect.addedToChunk) {
            Chunk chunk = getChunkIfExists(var3, var13);
            if (chunk != null) {
              chunk.removeEntity(weatherEffect);
            }
          }

          loadedEntityList.remove(var1--);
          onEntityRemoved(weatherEffect);
        }

        theProfiler.endSection();
      }
      theProfiler.endStartSection("tileEntities");
      scanningTileEntities = true;

      Iterator var14 = loadedTileEntityList.iterator();

      while (var14.hasNext()) {
        TileEntity var9 = (TileEntity) var14.next();

        if (!var9.isInvalid() && var9.hasWorldObj() && blockExists(var9.xCoord, var9.yCoord, var9.zCoord)) {
          try {
            var9.updateEntity();
          } catch (Throwable var8) {
            var4 = CrashReport.makeCrashReport(var8, "Ticking tile entity");
            var5 = var4.makeCategory("Tile entity being ticked");
            var9.func_85027_a(var5);

            throw new ReportedException(var4);
          }
        }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

          }
        }
      } catch (Throwable ignored) {
      }
      FMLLog.log(Level.SEVERE, throwable, "Encountered an unexpected exception" + throwable.getClass().getSimpleName());
      CrashReport crashReport;

      if (throwable instanceof ReportedException) {
        crashReport = this.addServerInfoToCrashReport(((ReportedException) throwable).getCrashReport());
      } else {
        crashReport = this.addServerInfoToCrashReport(new CrashReport("Exception in server tick loop", throwable));
      }

      File var3 = new File(new File(this.getDataDirectory(), "crash-reports"), "crash-" + (new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss")).format(new Date()) + "-server.txt");

      if (crashReport.saveToFile(var3, getLogAgent())) {
        getLogAgent().logSevere("This crash report has been saved to: " + var3.getAbsolutePath());
      } else {
        getLogAgent().logSevere("We were unable to save this crash report to disk.");
      }
View Full Code Here

Examples of net.minecraft.crash.CrashReport

    }

    @Override
    public void haltGame(String message, Throwable t)
    {
        client.displayCrashReport(new CrashReport(message, t));
        throw Throwables.propagate(t);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.