Skip to content
New issue

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

The simulator crashes after setting a resolution above a threshold #197

Closed
VicMisael opened this issue Nov 10, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@VicMisael
Copy link
Collaborator

VicMisael commented Nov 10, 2020

Issue Title

The simulator crashes at some resolutions above a threshold

Describe the bug

When setting the simulator resolution to 1203x653 it crashes, but when its 1202x652 it runs fine

To Reproduce

download TCSample and set the TCSampleApplication.java like this

package totalcross.sample;

import totalcross.TotalCrossApplication;
import totalcross.sample.main.TCSample;

public class TCSampleApplication {
	public static void main(String[] args) {
	    TotalCrossApplication.run(
	        TCSample.class, "/r", "<PLACE YOUR KEY>","/scr","1203x653");
	  }
}

Expected behavior

The simulator should at any resolution without any issue

Screenshots or videos

the screen
image
the exception that it's thrown
image

Devices:

Please complete the following information:

  • Device: Simulator
  • OS:Windows
  • JDK:Zulu OpenJDK11

Additional information

Related to the issue #185
Using the last commit of Totalcross SDK and TCSample
Tcsample: https://github.com/TotalCross/tc-sample

@VicMisael VicMisael added the bug Something isn't working label Nov 10, 2020
@VicMisael
Copy link
Collaborator Author

Adding this dependency to the TCSample pom.xml fixes the issue

<dependency>
    <groupId>net.coobird</groupId>
    <artifactId>thumbnailator</artifactId>
    <version>0.4.8</version>
</dependency>

@teras
Copy link
Collaborator

teras commented Nov 13, 2020

Since the crash is due to missing dependency, and adding this dependency fixes the crash, this issue will be closed.

@teras teras closed this as completed Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants