Skip to content

Instantly share code, notes, and snippets.

View mudlee's full-sized avatar
🏠
Working from home

mudlee

🏠
Working from home
View GitHub Profile
@mudlee
mudlee / lambdas.java
Created May 30, 2017 19:15
Java 8 Lambdas
batchedEntities.values()
.stream()
.map(BatchedEntities::getEntities)
.collect(Collectors.toList())
.stream()
.flatMap(List::stream)
.collect(Collectors.toList());
Compiling app_dirs v1.1.1
error[E0619]: the type of this value must be known in this context
--> /Users/mudlee/.cargo/registry/src/github.com-1ecc6299db9ec823/app_dirs-1.1.1/src/imp/platform/macos.rs:10:40
|
10 | Ok(Component::RootDir.as_ref().into())
| ^^^^
error: aborting due to previous error
error: Could not compile `app_dirs`.
@mudlee
mudlee / pid.log
Created April 7, 2018 19:30
LWJGL profiling
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000013ed33b82, pid=1177, tid=81935
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.4+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.4+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [GLProfilerFBDisp+0x36b82] gloGetCGLDispatch+0xd3c3
#
@mudlee
mudlee / .java
Created May 3, 2018 05:33
Assimp
OUTPUT
[20:42:27.567] 1095 [main] DEBUG com.intermetto.engine.util.StaticMeshLoader - # Processing 2 materials...
[20:42:27.568] 1096 [main] DEBUG com.intermetto.engine.util.StaticMeshLoader - Processing [0] material...
0.6-0.6-0.6 - result: 0
0.0-0.0-0.0 - result: 0
0.0-0.0-0.0 - result: 0
@mudlee
mudlee / pom.xml
Created August 22, 2018 05:21
building mods
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven.plugins.version}</version>
<configuration>
<outputDirectory>../build/mods</outputDirectory>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
@mudlee
mudlee / render.java
Created November 6, 2018 16:56
Open GL rendering logic
package spck.engine.framework;
import org.lwjgl.opengl.GL41;
import org.lwjgl.system.MemoryUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spck.engine.bus.LifeCycle;
import spck.engine.bus.MessageBus;
import spck.engine.debug.Stats;
import spck.engine.ecs.ECS;
@mudlee
mudlee / gist:ad4d36dfde5ca04d2adf7f2bf76dc2e7
Created December 1, 2019 09:09
OSX lwjgl app gets killed
Process: java [1234]
Path: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java
Identifier: java
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: idea [654]
Responsible: idea [654]
User ID: 501
Date/Time: 2019-12-01 10:01:41.288 +0100
@mudlee
mudlee / .log
Created December 24, 2019 13:24
Nuklear Segfault
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000012c0b0f00, pid=5477, tid=775
#
# JRE version: OpenJDK Runtime Environment (11.0.3+7) (build 11.0.3+7)
# Java VM: OpenJDK 64-Bit Server VM (11.0.3+7, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [liblwjgl_stb.dylib+0x3af00]
[error occurred during error reporting (printing problematic frame), id 0xe0000000, Internal Error (../../src/hotspot/os/bsd/decoder_machO.hpp:43)]
@mudlee
mudlee / log
Created January 18, 2020 06:35
OP OTA update
mudlee@zerg:~/Downloads/ota/output$ ./fastboot update images.zip
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: e5a9f9c
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.001s]
Setting current slot to 'a' OKAY [ 0.007s]
extracting boot.img (64 MB) to disk... took 0.187s
@mudlee
mudlee / hs_err_pid11080.log
Created January 23, 2021 14:58
LWJGL memory issue
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fa7c972fd20, pid=11080, tid=11082
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (15.0.1+9) (build 15.0.1+9)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (15.0.1+9, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libnvidia-glcore.so.450.102.04+0x1279d20]
#