Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Signed Bar crashed on execution #2

Closed
a7omic opened this issue Nov 16, 2011 · 13 comments
Closed

Signed Bar crashed on execution #2

a7omic opened this issue Nov 16, 2011 · 13 comments

Comments

@a7omic
Copy link

a7omic commented Nov 16, 2011

Hey Jeremy,

Have you successfully exported a signed bar for dosbox and run in on you playbook? When I run in debug mode there are no issues but my signed bar file crashes in less then a second after the standard blackberry splash screen appears. I know I am not the only one that has had this issue either.

Are there any logs that I can check or can you think of anything for me to check in the code?

Thx,
W.

@jnicholl
Copy link
Collaborator

Interesting. That's not good. I haven't tried a signed bar yet (been working with developer builds).
Does the log in the sandbox show anything? (logs/log)

----- Original Message -----
From: a7omic [mailto:reply@reply.github.com]
Sent: Tuesday, November 15, 2011 09:06 PM
To: Jeremy Nicholl
Subject: [DosBox] Signed Bar crashed on execution (#2)

Hey Jeremy,

Have you successfully exported a signed bar for dosbox and run in on you playbook? When I run in debug mode there are no issues but my signed bar file crashes in less then a second after the standard blackberry splash screen appears. I know I am not the only one that has had this issue either.

Are there any logs that I can check or can you think of anything for me to check in the code?

Thx,
W.


Reply to this email directly or view it on GitHub:
#2


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@a7omic
Copy link
Author

a7omic commented Nov 16, 2011

Issue resolved...well the cause is identified and I have a work around for my system.

For some reason LD_LIBRARY_PATH is not getting set as an entry point in the manifest.mf file. It is strange because it is set fine in my debug bar files.

I believe this is related to some issues I had with my NDK installation. Initially I had set up NDK and the dosbox project and I had to enter the LD_LIBRARY_PATH in the environment variables in properties. I had originally only set it up for debug.

Then I had some issues with the project and I could not figure out why it was not longer working properly so I removed everything(that I know of) and reinstalled the NDK and then imported the dosbox project from scratch and set the workspace to a completely different location. This time however I did not need to set the LD_LIBRARY_PATH variable, it just worked, but as we see it is only working for the debug bar.

So I wonder if something is left over from the original installation that is overriding my environment variable setting in the current project.

Either way my work around is to export without signing, add the LD_LIBRARY_PATH entry to the manifest.ml file and sign from the command line.

EDIT: The other poerson I know who was having this issue said it was because his manifest.ml file had debug mode = True. When he set it to false he was successful as well.

@jnicholl
Copy link
Collaborator

Thanks for the update. That seems pretty strange. I'll try to reproduce from my end and see if there's a bug to file against the NDK.
Glad it works now, though. :)

-----Original Message-----
From: a7omic [mailto:reply@reply.github.com]
Sent: Wednesday, November 16, 2011 8:41 AM
To: Jeremy Nicholl
Subject: Re: [DosBox] Signed Bar crashed on execution (#2)

Issue resolved...well the cause is identified and I have a work around for my system.

For some reason LD_LIBRARY_PATH is not getting set as an entry point in the manifest.mf file. It is strange because it is set fine in my debug bar files.

I believe this is related to some issues I had with my NDK installation. Initially I had set up NDK and the dosbox project and I had to enter the LD_LIBRARY_PATH in the environment variables in properties. I had originally only set it up for debug.

Then I had some issues with the project and I could not figure out why it was not longer working properly so I removed everything(that I know of) and reinstalled the NDK and then imported the dosbox project from scratch and set the workspace to a completely different location. This time however I did not need to set the LD_LIBRARY_PATH variable, it just worked, but as we see it is only working for the debug bar.

So I wonder if something is left over from the original installation that is overriding my environment variable setting in the current project.

Either way my work around is to export without signing, add the LD_LIBRARY_PATH entry to the manifest.ml file and sign from the command line.


Reply to this email directly or view it on GitHub:
#2 (comment)


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@a7omic a7omic closed this as completed Nov 16, 2011
@jnicholl
Copy link
Collaborator

Here's the answer from the NDK team:

The first beta releases of the NDK did not automatically add the LD_LIBRARY_PATH variable into the bar-descriptor.xml file as the 1.0 release does. The application launch configuration would add it on-the-fly when building development BARs, which is why those worked, but the Export Release Wizard did not.

Adding this into the bar-descriptor.xml ensure that the Export Release was consistent with other BAR packaging methods. However, you may still have a bar-descriptor.xml that doesn't have the LD_LIBRARY_PATH environment variable. In that case, you should see a warning on the file that has a quick-fix (Cmd+1 on Mac, Ctrl+1 on other platforms) that adds it.

In my case, the descriptor XML files do not have this quick fix applied, so that's why you saw the problem. Sorry for the problem, I'll fix it up shortly.

-----Original Message-----
From: a7omic [mailto:reply@reply.github.com]
Sent: Wednesday, November 16, 2011 8:41 AM
To: Jeremy Nicholl
Subject: Re: [DosBox] Signed Bar crashed on execution (#2)

Issue resolved...well the cause is identified and I have a work around for my system.

For some reason LD_LIBRARY_PATH is not getting set as an entry point in the manifest.mf file. It is strange because it is set fine in my debug bar files.

I believe this is related to some issues I had with my NDK installation. Initially I had set up NDK and the dosbox project and I had to enter the LD_LIBRARY_PATH in the environment variables in properties. I had originally only set it up for debug.

Then I had some issues with the project and I could not figure out why it was not longer working properly so I removed everything(that I know of) and reinstalled the NDK and then imported the dosbox project from scratch and set the workspace to a completely different location. This time however I did not need to set the LD_LIBRARY_PATH variable, it just worked, but as we see it is only working for the debug bar.

So I wonder if something is left over from the original installation that is overriding my environment variable setting in the current project.

Either way my work around is to export without signing, add the LD_LIBRARY_PATH entry to the manifest.ml file and sign from the command line.


Reply to this email directly or view it on GitHub:
#2 (comment)


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@a7omic
Copy link
Author

a7omic commented Nov 17, 2011

That solution worked, I can now sign using momentics without issue. Thanks Again.

So what are your plans with dosbox? What amount of contribution are you looking for from the outside world?

@jnicholl
Copy link
Collaborator

That's a tough question. My idea originally was to put dosbox up as more of a sample project to demonstrate an application on PlayBook, not with the intention of forking dosbox but rather stabilizing the port enough that it could be contributed upstream. I figured it might also be useful for people who wanted to package up older games to package up as apps.

In terms of improvements, there's at least the serious problem that the current port doesn't use the fastest ARM core available (it uses the core built for size, not speed). I had been getting crashes with the other one when I first tried it. The other performance issue I noticed was mainly in graphics that fade in/out. There were some suggestions that changing the underlying SDL surface would improve performance here, but that's a problem with the current SDL port - it doesn't support the other surface types that might improve it.

There are also various improvements that could be made to TouchControlOverlay specifically for Dosbox, and it's a bit of a gray area where those changes should be made. For example, control configurations that are selectable for different games.

What were your hopes for dosbox? I was happy to see that you were interested enough to get it working.

-----Original Message-----
From: a7omic [mailto:reply@reply.github.com]
Sent: Wednesday, November 16, 2011 7:58 PM
To: Jeremy Nicholl
Subject: Re: [DosBox] Signed Bar crashed on execution (#2)

That solution worked, I can now sign using momentics without issue. Thanks Again.

So what are your plans with dosbox? What amount of contribution are you looking for from the outside world?


Reply to this email directly or view it on GitHub:
#2 (comment)


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@a7omic
Copy link
Author

a7omic commented Nov 18, 2011

Ultimately I would love to see a stable usable version properly distributed on app world as, I think there is a lot of interest in this.

One of my first thought was about enhancing the interface to allow multiple configuration, I have also seen the performance issues that you mention. I think both of these would have to be cleared up. That said besides the performance it looks like it works quite well with a bluetooth keyboard.

Is this not the latest version of sdl? or is it just the port that is not supporting multiple surfaces?

@jnicholl
Copy link
Collaborator

It is the port that doesn't support overlays and 'hardware' surfaces.

----- Original Message -----
From: a7omic [mailto:reply@reply.github.com]
Sent: Thursday, November 17, 2011 07:14 PM
To: Jeremy Nicholl
Subject: Re: [DosBox] Signed Bar crashed on execution (#2)

Ultimately I would love to see a stable usable version properly distributed on app world as, I think there is a lot of interest in this.

One of my first thought was about enhancing the interface to allow multiple configuration, I have also seen the performance issues that you mention. I think both of these would have to be cleared up. That said besides the performance it looks like it works quite well with a bluetooth keyboard.

Is this not the latest version of sdl? or is it just the port that is not supporting multiple surfaces?


Reply to this email directly or view it on GitHub:
#2 (comment)


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

@a7omic
Copy link
Author

a7omic commented Nov 18, 2011

I have found that the signed release version runs better then then the debug version. In fact there is a significant difference but the fade in fade out is still slower then it should be.

Besides the the touch overlay buttons I a added I also changed the location where it writes the dosbox.conf file. I think this should be a permanent change so that we can modify the conf instead of being stuck with the default settings. I have not played with the settings yet but at least I have the option now(without having to hardcode)

@jnicholl
Copy link
Collaborator

I did some work towards making fades faster, but it doesn't seem to have panned out. I implemented a new SDL video driver using OpenGL ES 2.0 and set up an actual palette texture to handle the changes, but in release mode the speeds are equivalent. Debug mode is much faster, but that's not much of a gain.
Were you planning to submit the change for the configuration file location? Just clone the repo on github and make a pull request, and I'll take a look to review it. Thanks!

@a7omic
Copy link
Author

a7omic commented Dec 1, 2011

Ya I forked the repos but I have not updated them yet. I will though.

Date: Wed, 30 Nov 2011 09:06:11 -0800
From: reply@reply.github.com
To: wes_mrw@hotmail.com
Subject: Re: [DosBox] Signed Bar crashed on execution (#2)

I did some work towards making fades faster, but it doesn't seem to have panned out. I implemented a new SDL video driver using OpenGL ES 2.0 and set up an actual palette texture to handle the changes, but in release mode the speeds are equivalent. Debug mode is much faster, but that's not much of a gain.
Were you planning to submit the change for the configuration file location? Just clone the repo on github and make a pull request, and I'll take a look to review it. Thanks!


Reply to this email directly or view it on GitHub:
#2 (comment)

@a7omic
Copy link
Author

a7omic commented Dec 6, 2011

I have updated my forks: https://github.com/a7omic

-Changed default location of config file
-added ~
-added toggle functionality

The toggle is more of a proof of concept and just the first building block of what I would rather implement but I have not had any time lately to work on this.

I did not do a pull request though.

I find it strange that you said release mode was slower then debug, I found the complete opposite when using the current build.

@jnicholl
Copy link
Collaborator

jnicholl commented Dec 6, 2011

I've seen the same more recently, release mode is much faster. I probably had something wrong in the setup.

----- Original Message -----
From: a7omic [mailto:reply@reply.github.com]
Sent: Tuesday, December 06, 2011 12:18 PM
To: Jeremy Nicholl
Subject: Re: [DosBox] Signed Bar crashed on execution (#2)

I have updated my forks: https://github.com/a7omic

-Changed default location of config file
-added ~
-added toggle functionality

The toggle is more of a proof of concept and just the first building block of what I would rather implement but I have not had any time lately to work on this.

I did not do a pull request though.

I find it strange that you said release mode was slower then debug, I found the complete opposite when using the current build.


Reply to this email directly or view it on GitHub:
#2 (comment)


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants