Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Component Corruption Problem - instantly crashes aws

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Component Corruption Problem - instantly crashes aws

    I have been battling corrupt components all day. I have a tabbed ui that - suddenly - started taking out the aws hard. I think it got corrupted. So I rolled back to an older version. But then some of my other grids starting producing the same error. ???

    I was wondering if anyone else has encountered a similar problem? The aws quits immediately and shuts down. Doesn't even try to restart. It issues a message that it "stopped working" and the process is completely gone. No dump files. No errors in the error log - save for a report in the Windows Event Viewer:

    Event ID: 1000
    Level: Error
    Task Category: (100)
    Exception code: 0xc0000005
    Fault offset: 0x0007d0be
    Faulting Application: A5ApplicationServer.exe
    Faulting module: A5ENGINE.dll

    I'm running on windows 8. Current A5 version below. Maybe that has something to do with it? How does 12 stack up? I'll decidedly upgrade if it's more stable.

    ---
    Sarah
    Alpha Anywhere latest pre-release

    #2
    Re: Component Corruption Problem - instantly crashes aws

    No idea if it's related, but from the 6/6/13 v11 prerelease (here):
    Application Server - SSL - Some users who are using SSL have reported server stability issues. We have found and fixed an issue with OpenSSL - the third party library used by Alpha Five to implement SSL - that we believe will address this issue.
    How does 12 stack up? I'll decidedly upgrade if it's more stable.
    Working with Alpha Five since version 9, I'll say that highly unstable builds get replaced pretty quickly, but almost every build I've used has seemed to have some kind of minor bugs in it. So I wouldn't put too much additional confidence in v12 over v11 since it's essentially just newer builds on top of the old.

    Comment


      #3
      Re: Component Corruption Problem - instantly crashes aws

      Probably. Probably not. I'm not running with SSL on, so I don't see how that would potentially fix the issue - especially since I can just rollback the components and re-build them to the same "state" and they're fine. I think it's a problem with component compilation/generation for publishing. But, like I said, the logs are useless. They show activity up to the point of accessing the problem component and then nothing. No errors or anything-I have all the logs. I think I'll send a report into Alpha today - after generating a minimal set of logs - and see what they say. This crash is pretty epic.
      Alpha Anywhere latest pre-release

      Comment


        #4
        Re: Component Corruption Problem - instantly crashes aws

        Hmmm. I fixed my grid? I was pre-pending {grid.componentName} to my js functions defined in the javascript section. I decided that was no longer a good idea and that passing the {grid.object} or whatever I needed into the function was better --- no sense in generating tens of hundreds of the same function when I can just pass the data I need. So I refactored and now my grid is behaving properly. I don't know what caused the AWS to choke and die when this grid was requested, but at any rate...

        This:

        Code:
        var {grid.componentName}_foo = function(stuff)
        {
          {grid.object}.etc...
        }
        Now looks like this:

        Code:
        var foo = function(grid,stuff)
        {
          grid.etc...
        }
        On a completely unrelated note (and because this grid has code to address this particular): $ is present in {grid.componentName} when grid names get long enough. $ make the jQuery go crazy! You try something like this:
        Code:
        var allATagsInNotes = jQuery('#{gridComponentName}\\.V\\.R'+rowNum+'\\.NOTES a');
        allATagsInNotes.attr("target","_blank");
        And it utterly crashes and fails seemingly at random. So you do a lot of debugging and find all these crazy $ in your {grid.componentName} strings! So, then you write code to escape all the crazy:

        Code:
        var validSelector = function(str)
        {
        	return str.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
        
        }
        
        var allATagsInNotes = jQuery('#' + validSelector('{grid.ComponentName}.V.R' + rowNum + '.NOTES') + ' a'); 
        allATagsInNotes.attr("target","_blank");
        Then you pull your hair out some more later because this grid that gave you so much grief for the $ in the jQuery is now randomly corrupt for whatever reason. SO then you refactor your code - trying _anything_ to make it more better without rolling back 8 hours of work and magic sauce everything is fixed.

        I don't know what you call this. Heisenbug?

        Either way, I've mucked around enough to get whatever was broken to fix itself.

        EDIT: I have reworded this because correlation does not imply causation. Original post indicated that using {grid.componentName} to make unique javascript function names caused the crash. I can't prove that. Claiming that was effectively a load of ...
        Last edited by TheSmitchell; 06-21-2013, 05:39 PM. Reason: Correlation does not imply causation
        Alpha Anywhere latest pre-release

        Comment


          #5
          Re: Component Corruption Problem - instantly crashes aws

          I'm quite far behind you in terms of javascript and jQuery knowledge, but I'm curious about the function names with grid component names included. Do I understand correctly that you're suggesting it's a problem for "$$$$" to show up in the function name itself but if "$$$$" was in the "grid" variable of the function it would work correctly?

          And is there a component name length at which the "$$$$" show up?

          Comment


            #6
            Re: Component Corruption Problem - instantly crashes aws

            Oh. Oh yes. $ shows up in component names. Nested. Nested deep. And then your jQueries explode.

            It's not necessarily that $ is not permitted in a javascript function name. Quite the opposite. You can totally put them in function names. But the generated function names were rather long... And my corrupted grid got fixed after I modified them to take a grid variable instead of generating a unique name for each grid instance using the {grid.componentName}. And {grid.componentName} makes me nervous. And I think that approach was generally a bad idea to begin with. Passing the grid makes it mega easier - I could even just put my code in a separate js file that way and there's less code the server has to generate before the data is served up to the client.
            Alpha Anywhere latest pre-release

            Comment


              #7
              Re: Component Corruption Problem - instantly crashes aws

              I guess my question is this: In the code
              Code:
              var foo = function(grid,stuff)
              {
                grid.etc...
              }
              are you setting
              Code:
              var grid = {grid.ComponentName}
              ? If so, wouldn't you just be passing a variable with the same $$$$ problems? And if not, where is "grid" getting its value?

              Comment


                #8
                Re: Component Corruption Problem - instantly crashes aws

                Originally posted by christappan View Post
                I guess my question is this: In the code
                Code:
                var foo = function(grid,stuff)
                {
                  grid.etc...
                }
                are you setting
                Code:
                var grid = {grid.ComponentName}
                ? If so, wouldn't you just be passing a variable with the same $$$$ problems? And if not, where is "grid" getting its value?
                No. I'm passing the grid object. Figured that would be noticed in my first code snippet?

                Originally posted by TheSmitchell View Post
                Code:
                var {grid.componentName}_foo = function(stuff)
                {
                  {grid.object}.etc...
                }
                [...] So I've updated my js to look more like this:

                Code:
                var foo = function(grid,stuff)
                {
                  grid.etc...
                }
                Alpha Anywhere latest pre-release

                Comment


                  #9
                  Re: Component Corruption Problem - instantly crashes aws

                  I did indeed miss that. Sorry. (and thanks btw for all the explaining). So is {grid.object} safe(r) from the added "$$$$"?

                  Comment


                    #10
                    Re: Component Corruption Problem - instantly crashes aws

                    If Alpha was generating a {grid.object} variable with a malformed variable name, you'd have other problems well before any client-side code you wrote was executed.

                    It's not that {grid.object} is safer from the added $, it's that my function names aren't being generated by the AWS before being sent to the client. And that using the parameter/variable "grid" as an alias for {grid.object} achieves the same result - since I'm requiring that the {grid.object} be passed to the function on call rather than having to figure out how to force Alpha to create a unique function object for each instance of my grid.

                    I don't know why effectively "cleaning up" my javascript fixed my crash. It's a mystery. But it did. Most likely what happened was I made enough changes in a number of locations that whatever thing - some control? a linked grid? even maybe the javascript code section itself - that was causing my grid to insta-crash the AWS went away.

                    Here's an image for you:
                    alphaNames.png

                    It doesn't take long for me to find these. The grid object name contains just as many $ as anything else. Something to keep in mind if you ever get into using the jQuery, though. Because $ is a special character in jQuery selector strings. So you have to escape them.

                    Looking back, my post with the jQuery bits was more me rambling on about something completely unrelated and also my grid is working again and I don't know why. Also that passing your {grid.object} or {grid.componentName} to your functions is probably better/easier to think about than trying to figure out how to make unique functions per grid instance. /end more rambling
                    Alpha Anywhere latest pre-release

                    Comment


                      #11
                      Re: Component Corruption Problem - instantly crashes aws

                      I have solved my problem.

                      It's an FTP upload problem. If I try to publish a change to a component while the AWS is under load, sometimes the FTP process doesn't copy the file up cleanly. Then the AWS crashes. I've never had this problem before. If I publish while the AWS isn't running or when nobody is using the system, then uploads are fine. No component is safe.
                      Alpha Anywhere latest pre-release

                      Comment

                      Working...
                      X