richardsj / netbook-installer

Automatically exported from code.google.com/p/netbook-installer
0 stars 0 forks source link

(source fix included) NBI crashes consistently on Dell Mini 9, 2GB, 8GB STEC #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run NBI 0.8.2 or 0.8.3 RC3/RC4
2. Choose any options you want
3. Click Install.  NBI crashes before starting the ramdisk creation

What netbook are you using this on?

Dell Mini 9, 2GB, 8GB STEC

What is the expected output? What do you see instead?

NBI always crashes

What version of the product are you using? On what operating system?

NBI 0.8.2
NBI 0.8.3 RC3
NBI 0.8.3 RC4

Under OSX 10.5.6 and 10.5.8 and 10.5.6 DVD (via flash drive) boot environment

Please provide any additional information below.

Ran this under Xcode to debug and fix, and found that the following source
change would fix this persistent crash:

$ svn diff
Index: SystemInformation.m
===================================================================
--- SystemInformation.m (revision 93)
+++ SystemInformation.m (working copy)
@@ -185,7 +185,7 @@
    //NSError*  errs;
    NSDictionary* info = [self getFileSystemInformation: @"/"];

-   bootPartition = [[[NSString alloc] initWithString:[info
objectForKey:@"Mounted From"]] substringFromIndex:[@"/dev/" length]];
+   bootPartition = [[NSString alloc] initWithString:[[info
objectForKey:@"Mounted From"] substringFromIndex:[@"/dev/" length]]];
    installPath = [[NSString alloc] initWithString:@"/"];

@@ -211,7 +211,7 @@
 {
    NSDictionary* info = [self getFileSystemInformation: path];

-   bootPartition = [[[NSString alloc] initWithString:[info
objectForKey:@"Mounted From"]] substringFromIndex:[@"/dev/" length]];
+   bootPartition = [[NSString alloc] initWithString:[[info
objectForKey:@"Mounted From"] substringFromIndex:[@"/dev/" length]]];
    installPath = [[NSString alloc] initWithString:path];

    NSLog(@"Target Device: %@\n", bootPartition);

Original issue reported on code.google.com by whirlie6...@gmail.com on 12 Nov 2009 at 5:51

GoogleCodeExporter commented 9 years ago
Source patches make me happy.

I'll take a look when I get home and add the fix.

Original comment by Meklort@gmail.com on 12 Nov 2009 at 6:01

GoogleCodeExporter commented 9 years ago
I've added the fix, will be in NBI 0.8.3.

Original comment by Meklort@gmail.com on 13 Nov 2009 at 5:03