GithubHelp home page GithubHelp logo

Comments (11)

alkondrashov avatar alkondrashov commented on August 18, 2024

@spuddybike , could you provide your config file named format32-stata please?

from extract2ddi.

spuddybike avatar spuddybike commented on August 18, 2024

agency=uk.closer
ddilang=en-GB
stats=max,min,valid,invalid,freq,stdev
outputfile=test-file-stata-3.2
sumstats=TRUE

from extract2ddi.

alkondrashov avatar alkondrashov commented on August 18, 2024

Just have sent you the recent jar file over the email to try replicating the OutOfMemory error

from extract2ddi.

alkondrashov avatar alkondrashov commented on August 18, 2024

Have replicated it with the recent dta file. Here is why the exception is hapenning:

Screenshot 2024-03-14 at 22 28 36

In essence, the numberOfEntries variable gets to 1818389564 and when we initialise array of ints with that size we get OutOfMemory error.

The exception is hapenning in edu.cornell.ncrn.ced2ar.stata.impl.DtaReader

from extract2ddi.

alkondrashov avatar alkondrashov commented on August 18, 2024

Based on stepping through the code, @spuddybike and I uncovered that OutOfMemory resulted from an incorrect value being read into numberOfEntries variable from a file.

from extract2ddi.

spuddybike avatar spuddybike commented on August 18, 2024

@alkondrashov see https://www.loc.gov/preservation/digital/formats/fdd/fdd000471.shtml This I think might help in resolving the OOM error, as it indicates where the Number ofEntries is stored.

from extract2ddi.

spuddybike avatar spuddybike commented on August 18, 2024

@alkondrashov see also https://www.stata.com/help.cgi?dta section 5

from extract2ddi.

alkondrashov avatar alkondrashov commented on August 18, 2024

As discussed, @spuddybike will provide another sample .dta file to test this error. We discovered that the issue is because the variables are being read incorrectly.

from extract2ddi.

spuddybike avatar spuddybike commented on August 18, 2024

test-file-data-types-118.dta.zip
@alkondrashov file saved to Format 118 missing Stata for testing

from extract2ddi.

spuddybike avatar spuddybike commented on August 18, 2024

Error created by SPSS export to Stata

from extract2ddi.

spuddybike avatar spuddybike commented on August 18, 2024

SPSS Error

from extract2ddi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.