Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
sat4j
sat4j
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SAT4J
  • sat4jsat4j
  • Issues
  • #88

Closed
Open
Created Jan 23, 2013 by Daniel Le Berre@leberreOwner

Avoid calling visualization code when no visualization is needed

When using the sat4j-sat.jar package without option (to discover them) on a machine without X server (a cluster), the app throws an exception because it tries to access X related features.

Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.sat4j.sat.RTSI.findnames(Unknown Source) at org.sat4j.sat.RTSI.find(Unknown Source) at org.sat4j.sat.RTSI.find(Unknown Source) at org.sat4j.sat.RTSI.find(Unknown Source) at org.sat4j.sat.Solvers.showAvailableRestarts(Unknown Source) at org.sat4j.sat.Solvers.usage(Unknown Source) at org.sat4j.sat.Launcher.usage(Unknown Source) at org.sat4j.sat.Launcher.run(Unknown Source) at org.sat4j.sat.Launcher.main(Unknown Source) Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:261) at org.sat4j.sat.RemoteControlFrame.(Unknown Source) ... 11 more

Such code should only be launched when the visualization option is set.

Assignee
Assign to
2.3.3
Milestone
2.3.3 (Past due)
Assign milestone
Time tracking
None
Due date
None