- Saved searches
- Use saved searches to filter your results more quickly
- No context is current or a function that is not available in the current context was called. The JVM will abort execution. #28
- No context is current or a function that is not available in the current context was called. The JVM will abort execution. #28
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- «Current context not an object but ARRAY» when encountering nested object and using JsonGenerator.Feature.IGNORE_UNKNOWN = true #19
- «Current context not an object but ARRAY» when encountering nested object and using JsonGenerator.Feature.IGNORE_UNKNOWN = true #19
- Comments
- Minecraft Forums
- Java.lang.runtimeexception No opengl context found in current thread
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No context is current or a function that is not available in the current context was called. The JVM will abort execution. #28
No context is current or a function that is not available in the current context was called. The JVM will abort execution. #28
Comments
Describe the bug
$ ./gradlew run > Task :run FAILED INFO: Initializing raylib 4.0 WARNING: GLFW: Error: 65543 Description: 36103808 WARNING: GLFW: Failed to initialize Window INFO: TIMER: Target time per frame: 16.666666666666668 milliseconds FATAL ERROR in native method: Thread[main,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution. at org.lwjgl.opengl.GL20C.glDisableVertexAttribArray(Native Method) at org.lwjgl.opengl.GL20.glDisableVertexAttribArray(GL20.java:1948) at com.raylib.java.rlgl.RLGL.UnloadRenderBatch(RLGL.java:1527) at com.raylib.java.rlgl.RLGL.rlglClose(RLGL.java:1037) at com.raylib.java.core.rCore.CloseWindow(rCore.java:202) at com.raylib.java.core.rCore.WindowShouldClose(rCore.java:233) at com.raylib.java.Main.main(Main.java:33) FAILURE: Build failed with an exception.
To Reproduce
Steps to reproduce the behavior:
- git clone https://github.com/AKDev21/temporary-repository.git
- cd temporary-repository
- gradlew run
- See error
Expected behavior
core-window example
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
«Current context not an object but ARRAY» when encountering nested object and using JsonGenerator.Feature.IGNORE_UNKNOWN = true #19
«Current context not an object but ARRAY» when encountering nested object and using JsonGenerator.Feature.IGNORE_UNKNOWN = true #19
Comments
I’m trying to generate an Avro record from a Java object, using a Schema which has a subset of the fields present in the object. It looks like something like this is happening:
- The BeanSerializer attempts to serialize a nested Java object within the object I’m trying to serialize to the Schema.
- The AvroGenerator calls writeStartObject() for the nested object.
- AvroContext.createChildObjectContext() is called, which sees that the object is not in the Schema. It generates a NopWriteContext().
- The NopWriteContext’s constructor sets its type to TYPE_ARRAY. (This is where I think the problem begins.)
- The BeanSerializer continues «serializing» the nested object.
- Upon finishing «serialization», the AvroGenerator calls writeEndObject().
- Unfortunately, at this point, the AvroGenerator’s NopWriteContext reports that it is currently within a TYPE_ARRAY, generating the error:
Current context not an object but ARRAY
The text was updated successfully, but these errors were encountered:
EventLog.java: Contains the top-level POJO and all nested POJOs:
package com.demonstration; import java.util.List; class EventID < public String description; public Integer first; public Integer second; public EventID(String description, Integer first, Integer second) < this.description = description; this.first = first; this.second = second; > > class Problem < public Integer x; public Integer y; public Problem(Integer x, Integer y) < this.x = x; this.y = y; > > class Event < public Integer playerCount; public EventID eventID; public Event(Integer playerCount, EventID eventID) < this.playerCount = playerCount; this.eventID = eventID; > > public class EventLog < public Integer version; public final Integer MAX_EVENTS = 255; public Byte eventCount; public ListEvent> events; public ListProblem> problems; public EventLog(Integer version, Byte eventCount, ListEvent> events, ListProblem> problems) < this.version = version; this.eventCount = eventCount; this.events = events; this.problems = problems; > >
demonstration.avsc: Contains the Avro Schema which is a subset of the fields in the POJO:
"fields": [ "default": null, "name": "version", "type": [ "null", "int" ] >, "default": null, "name": "MAX_EVENTS", "type": [ "null", "int" ] >, "default": null, "name": "eventCount", "type": [ "null", "java-class": "java.lang.Byte", "type": "int" > ] >, "default": null, "name": "events", "type": [ "null", "items": "fields": [ "name": "playerCount", "type": [ "null", "int" ] >, "name": "eventID", "type": [ "null", "fields": [ "default": null, "name": "description", "type": [ "null", "string" ] >, "default": null, "name": "first", "type": [ "null", "int" ] >, "default": null, "name": "second", "type": [ "null", "int" ] > ], "name": "EventID", "namespace": "com.demonstration", "type": "record" > ] > ], "name": "Event", "namespace": "com.demonstration", "type": "record" >, "java-class": "java.util.List", "type": "array" > ] > ], "name": "EventLog", "namespace": "com.demonstration", "type": "record" >
And, if you’re interested, I wrote the main program in Scala below:
// Demonstration.scala package com.demonstration import java.io.ByteArrayInputStream import org.apache.avro.Schema import org.apache.avro.generic.GenericDatumReader import org.apache.avro.generic.GenericRecord import org.apache.avro.io.BinaryDecoder import org.apache.avro.io.DecoderFactory import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility import com.fasterxml.jackson.annotation.PropertyAccessor import com.fasterxml.jackson.core.JsonGenerator import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.ObjectWriter import com.fasterxml.jackson.databind.SerializationFeature import com.fasterxml.jackson.dataformat.avro.AvroFactory import com.fasterxml.jackson.dataformat.avro.AvroSchema object Demonstration < val defaultAvscSource = "C:/Dev-Home/scrap/demonstration.avsc" def main(args: Array[String]) < val avsc = readAvsc() val sampleEvents = new java.util.ArrayList[Event](3) sampleEvents.add(new Event(10, new EventID("sample1", 1, 2))) sampleEvents.add(new Event(20, new EventID("sample2", 10, 20))) sampleEvents.add(new Event(30, new EventID("sample3", 100, 200))) val sampleProblems = new java.util.ArrayList[Problem](2) sampleProblems.add(new Problem(800, 801)) sampleProblems.add(new Problem(900, 901)) val obj = new EventLog(9999, sampleEvents.size.toByte, sampleEvents, sampleProblems) mapObjectToSchema(obj, avsc) > def readAvsc(source: String = defaultAvscSource): Schema = < val srcIO = scala.io.Source.fromFile(source) val avscSourceString = try srcIO.getLines mkString "\n" finally srcIO.close new Schema.Parser().setValidate(true).parse(avscSourceString) > val mapper = new ObjectMapper(new AvroFactory) .setVisibility(PropertyAccessor.FIELD, Visibility.PUBLIC_ONLY) .setVisibility(PropertyAccessor.GETTER, Visibility.NONE) .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false) .configure(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES, false) .configure(JsonGenerator.Feature.IGNORE_UNKNOWN, true) .configure(JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT, false) var binaryDecoder: BinaryDecoder = null def mapObjectToSchema(obj: AnyRef, schema: Schema): GenericRecord = < val jacksonWriter = mapper.writer[ObjectWriter](new AvroSchema(schema)) val avroReader = new GenericDatumReader[GenericRecord](schema) // Attempt to reuse the old binary decoder to save time/space binaryDecoder = DecoderFactory.get.binaryDecoder( new ByteArrayInputStream(jacksonWriter.writeValueAsBytes(obj)), binaryDecoder) avroReader.read(null, binaryDecoder) > >
Minecraft Forums
Java.lang.runtimeexception No opengl context found in current thread
the newer versions work only below 1.9 has this error! please help!
—- Minecraft Crash Report —-
// Uh. Did I do that?
Time: 21-10-19 12:16
Description: Unexpected error
java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL11.glGetError(GL11.java:1299)
at bsu.b(SourceFile:822)
at bsu.as(SourceFile:882)
at bsu.a(SourceFile:314)
at net.minecraft.client.main.Main.main(SourceFile:120)
A detailed walkthrough of the error, its code path and all known details is as follows:
—————————————————————————————
— System Details —
Details:
Minecraft Version: 1.8
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 137006800 bytes (130 MB) / 234881024 bytes (224 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.
Using VBOs: No
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: [vanilla, programer_art]
Current Language: English (US)
Profiler Position: N/A (disabled)