EmuNewz Network

Full Version: Cannot play games with ubuntu linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm trying to play star ocean first departure on jpcsp and I can't get it to work on linux. It works on windows however the screen 'flickers' with shaded blocks and makes it unplayable. I read that it works in Linux. When I try the cube sample I can get it to work the first time, but then if I try to load something afterwards (even if its the same cube example) i get the stack trace:
Code:
java.lang.NullPointerException
    at jpcsp.HLE.modules150.ThreadManForUser.install_idle_threads(ThreadManForUser.java:521)
    at jpcsp.HLE.modules150.ThreadManForUser.start(ThreadManForUser.java:433)
    at jpcsp.HLE.modules.HLEModuleManager.startModules(HLEModuleManager.java:360)
    at jpcsp.Emulator.initCpu(Emulator.java:158)
    at jpcsp.Emulator.load(Emulator.java:133)
    at jpcsp.Emulator.load(Emulator.java:119)
    at jpcsp.MainGUI.loadUMD(MainGUI.java:985)
    at jpcsp.MainGUI.loadUMD(MainGUI.java:1049)
    at jpcsp.GUI.UmdBrowser.loadSelectedfile(UmdBrowser.java:525)
    at jpcsp.GUI.UmdBrowser.access$1000(UmdBrowser.java:74)
    at jpcsp.GUI.UmdBrowser$4.actionPerformed(UmdBrowser.java:327)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6268)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6033)
    at java.awt.Container.processEvent(Container.java:2045)
    at java.awt.Component.dispatchEventImpl(Component.java:4629)
    at java.awt.Container.dispatchEventImpl(Container.java:2103)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
    at java.awt.Container.dispatchEventImpl(Container.java:2089)
    at java.awt.Window.dispatchEventImpl(Window.java:2517)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
    at java.awt.Dialog$1.run(Dialog.java:1072)
    at java.awt.Dialog$3.run(Dialog.java:1126)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1124)
    at java.awt.Component.show(Component.java:1551)
    at java.awt.Component.setVisible(Component.java:1503)
    at java.awt.Window.setVisible(Window.java:881)
    at java.awt.Dialog.setVisible(Dialog.java:1011)
    at jpcsp.MainGUI.openUmdActionPerformed(MainGUI.java:958)
    at jpcsp.MainGUI.access$400(MainGUI.java:94)
    at jpcsp.MainGUI$5.actionPerformed(MainGUI.java:293)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
    at java.awt.Component.processMouseEvent(Component.java:6268)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6033)
    at java.awt.Container.processEvent(Container.java:2045)
    at java.awt.Component.dispatchEventImpl(Component.java:4629)
    at java.awt.Container.dispatchEventImpl(Container.java:2103)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
    at java.awt.Container.dispatchEventImpl(Container.java:2089)
    at java.awt.Component.dispatchEvent(Component.java:4455)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

When I try to run star ocean the first time that the emulator starts and press run the FPS goes to 13, however the screen is black. I've tired messing with the video options but to no avail. I've added xuggler to the classpath when starting the emulator. I start the emulator with the command:
Code:
java -Xmx512m -Djava.library.path=/home/[username]/xuggler/lib:lib/linux-amd64 -jar bin/jpcsp.jar


Does anyone have any suggestions? If you need anymore information I'd be happy to help!

Cheers Big Grin
Make sure your video card drivers are up to date for x11, make sure you can run other opengl programs like glxgears
also what video card do you have?
I believe that they are up to date. I'm using one of the experimental drivers listed in "additional drivers" for nvidia (both listed are experimental). I am using bumblebee to access my nvidia Geforce GT 520MX as the laptop I am using has an standard intel HD graphics card and the nvidia one. JPCSP doesn't seem to work for either. Glxgears seems to work for both.
In the start-linux-x86.sh or start-linux-amd64.sh
change it to look like this
Code:
start-linux-amd64.sh
#!/bin/sh
export PATH=lib/linux-amd64/:$PATH
export LD_LIBRARY_PATH=lib/linux-amd64/:$LD_LIBRARY_PATH
java -Xmx1024m -Xss2m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/linux-amd64 -jar bin/jpcsp.jar $@

if you use the 32bit version then change all the linux-amd64 to linux-x86
Set your options in jpcsp like this
[attachment=10925][attachment=10926]
I don't seem to have all of those options in the linux version of jpcsp which you show in the screenshot. I've attached a screenshot of which is shows on mine. I have version v0.6 1772.

However I did try just editing the script and ticking what options where there but it still didn't work.
you are using an extremely old version get a newer build here
http://buildbot.orphis.net/jpcsp/