Giter Club home page Giter Club logo

glcd-emulator's Introduction

Hi there πŸ‘‹

glcd-emulator's People

Contributors

ribasco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

glcd-emulator's Issues

Display properties in services not updated

When switching between profiles, the properties in DrawTestService and DisplayService does not get updated and selecting a new display on an active profile will propagate to the other existing profiles.

Can't run on Windows 10

Hi, I installed glcd-emulator-setup-amd64.exe but unfortunately it can't launch.

  • Clicking to GLCD Simulator.exe created by the installer gives 3 seperate error messages. First a blank box titled by "Failed to find library.", then Failed to locate JNI_CreateJavaVM and finally Failed to launch JVM.
  • If I manually launch it via java -jar app/glcd-emulator-1.1.0-alpha.jar the main program window launches normally. But when I click the Fonts button, a Java exception pops up shown below.

image

Java version (not sure if it is related but..)

C:\Users\Hazar>java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode)

Am I doing something wrong?

Here is the full trace:

java.lang.ExceptionInInitializerError
	at com.ibasco.ucgdisplay.drivers.glcd.U8g2DriverAdapter.initialize(U8g2DriverAdapter.java:68)
	at com.ibasco.ucgdisplay.drivers.glcd.GlcdBaseDriver.initialize(GlcdBaseDriver.java:124)
	at com.ibasco.ucgdisplay.drivers.glcd.GlcdDriver.<init>(GlcdDriver.java:62)
	at com.ibasco.ucgdisplay.drivers.glcd.GlcdDriver.<init>(GlcdDriver.java:57)
	at com.ibasco.glcdemulator.DriverFactory.createVirtual(DriverFactory.java:119)
	at com.ibasco.glcdemulator.DriverFactory.createVirtual(DriverFactory.java:60)
	at com.ibasco.glcdemulator.utils.FontRenderer.initialize(FontRenderer.java:91)
	at com.ibasco.glcdemulator.utils.FontRenderer.<init>(FontRenderer.java:86)
	at com.ibasco.glcdemulator.utils.FontRenderer.<init>(FontRenderer.java:39)
	at com.ibasco.glcdemulator.utils.FontRenderer$InstanceHolder.<clinit>(FontRenderer.java:82)
	at com.ibasco.glcdemulator.utils.FontRenderer.getInstance(FontRenderer.java:129)
	at com.ibasco.glcdemulator.controllers.GlcdFontBrowserController.<init>(GlcdFontBrowserController.java:165)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at com.ibasco.glcdemulator.Controllers.lambda$getController$0(Controllers.java:91)
	at java.util.HashMap.computeIfAbsent(Unknown Source)
	at com.ibasco.glcdemulator.Controllers.getController(Controllers.java:80)
	at com.ibasco.glcdemulator.Controllers.getController(Controllers.java:53)
	at com.ibasco.glcdemulator.utils.ResourceUtil.lambda$loadFxmlResource$0(ResourceUtil.java:116)
	at javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:929)
	at javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(FXMLLoader.java:971)
	at javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:220)
	at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:744)
	at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2707)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
	at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
	at com.ibasco.glcdemulator.utils.ResourceUtil.loadFxmlResource(ResourceUtil.java:119)
	at com.ibasco.glcdemulator.StageHelper.createStageFromResource(StageHelper.java:76)
	at com.ibasco.glcdemulator.StageHelper.createDialog(StageHelper.java:62)
	at com.ibasco.glcdemulator.StageHelper.createDialog(StageHelper.java:58)
	at com.ibasco.glcdemulator.Stages.getFontBrowserStage(Stages.java:85)
	at com.ibasco.glcdemulator.controllers.GlcdEmulatorController.openFontBrowserAction(GlcdEmulatorController.java:1814)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
	at javafx.event.Event.fireEvent(Event.java:198)
	at javafx.scene.Node.fireEvent(Node.java:8411)
	at javafx.scene.control.Button.fire(Button.java:185)
	at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
	at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
	at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
	at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
	at javafx.event.Event.fireEvent(Event.java:198)
	at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
	at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
	at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
	at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432)
	at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
	at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
	at com.sun.glass.ui.View.notifyMouse(View.java:937)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
	at java.lang.Thread.run(Unknown Source)
Caused by: com.ibasco.ucgdisplay.common.exceptions.NativeLibraryLoaderException: Unable to load required native library
	at com.ibasco.ucgdisplay.core.u8g2.U8g2Graphics.<clinit>(U8g2Graphics.java:163)
	... 87 more
Caused by: java.io.IOException: Couldn't find resource lib/windows/x86/ ucgdisp.dll
	at org.scijava.nativelib.BaseJniExtractor.extractJni(BaseJniExtractor.java:158)
	at com.ibasco.ucgdisplay.common.utils.UCGDJniExtractor.findLibrary(UCGDJniExtractor.java:94)
	at com.ibasco.ucgdisplay.common.utils.UCGDJniExtractor.extractJni(UCGDJniExtractor.java:52)
	at org.scijava.nativelib.NativeLoader.loadLibrary(NativeLoader.java:126)
	at com.ibasco.ucgdisplay.common.utils.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:53)
	at com.ibasco.ucgdisplay.core.u8g2.U8g2Graphics.<clinit>(U8g2Graphics.java:161)
	... 87 more

Failed to open on macOS Catalina 10.15.7

Hi!

Installation went smooth and package was installed into /programs. But when I try to rund the application, it does open and close right away. Any idea if this is a Java issue?

java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

Thanks!
AndrΓ©

Feature request

Really cool tool.
I`ve used it to grab framebuffer of my device.
But It will be good to have LCD rotate feature.

Update draw test examples

Add a more comprehensive draw test procedures covering most of the drawing operations of the graphics library

Font Browser Enhancement

  • Add filtering capability (filter by size, name)
  • Add detailed preview of all available characters for each font
  • Add font information (e.g. max char width, max char height)
  • User should be able to change the display size

Failed to run on Windows 10

Sorry for silly question, but I don't know any Java.
I've install Java SE JavaSetup8u251.exe and jdk-14.0.1_windows-x64_bin.exe but still get this error.
My system is Windows 10.
I've try to run GLCD Simulator.exe from windows command line, but don't get any error message.

Error messages:

Failed to find library

Failed to locate JNI_CreateJavaVM

Failed to launch JVM

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.